[gtkada] Eeeeeeeeeeeeeek!
Chris Sparks
mr_ada at cox.net
Sun Jul 7 19:11:51 CEST 2013
Just to update everyone.. I got past the linking issues. It seems that
some of the necessary "-l.." were omitted from the gpr file for Gtkada.
I am now having issues with Pango in general as I don't know how to set
it up and from what minimal examples I found in C, I cannot easily
convert to Ada. There are methods which mix Pango_Context with
Cairo_Context interchangeably which is making me get seg faults when I
tried to make things work.
Does anyone have a good example (not the one from the gtkdemo) showing
how to use Pango? I don't use Gtk and don't want to bring any of that
stuff into my code.
Chris Sparks
> Hello everyone,
>
> Been trying to get my software to run again after the switch to GTK 3
> instead of GTK 2! I finally got to a link point and got this:
>
> gnatlink Z:\Software\Test\Widgets\_build\s.ali -g -g -Wl,--gc-sections
> -m64 C:\GNAT\GtkAda\lib\gtkada\static\libgtkada.a
> -L/burgos.a/gnatmail/gcc-47/build-burgos/x86-windows/gtkada-gtk3/install/lib/gtkada/static
> -Wl,-luuid -L/burgos.a/gnatmail/gcc-47/install-burgos/gtk3/lib -lgtk-3
> -lgdk-3 -limm32 -lshell32 -lole32 -latk-1.0 -lgio-2.0 -lpangocairo-1.0
> -lgdk_pixbuf-2.0 -lcairo-gobject -lpangowin32-1.0 -lgdi32 -lpango-1.0
> -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -luser32
> -lglu32 -lopengl32 -lgdi32 -Lc:\gnat\gtkada\lib\gnat\\..
> -Lc:\gnat\gtkada\lib\gnat\\../../include/gtkada/ -o
> Z:\Software\Test\Widgets\_exec\s.exe
> *C:\GNAT\GtkAda\lib\gtkada\static\libgtkada.a(pango-language.o):pango-language.adb:(.text+0x3ab):
> undefined reference to `ada_g_object_get_ulong'**
> **C:\GNAT\GtkAda\lib\gtkada\static\libgtkada.a(pango-language.o):pango-language.adb:(.text+0x437):
> undefined reference to `ada_g_object_set_ulong'**
> **c:/gnat/2013/bin/../libexec/gcc/i686-pc-mingw32/4.7.4/ld.exe:
> C:\GNAT\GtkAda\lib\gtkada\static\libgtkada.a(pango-language.o): bad
> reloc address 0x48 in section `.rdata'**
> **c:/gnat/2013/bin/../libexec/gcc/i686-pc-mingw32/4.7.4/ld.exe: final
> link failed: Invalid operation*
> collect2.exe: error: ld returned 1 exit status
> gnatlink: error when calling C:\GNAT\2013\bin\gcc.exe
> gnatmake: *** link failed.
> [2013-07-05 10:46:15] process exited with status 4 (elapsed time: 01.15s)
>
> I don't know why I would get any Pango errors. Granted I had to
> switch over to Pango from Gdk.Text and I am sure I need to understand
> how to convert it but I wasn't expecting an issue with the delivered
> software from AdaCore.
>
> To me this says the GTKAda on Libre is broken and I probably should go
> back to version 2.24 which I know worked.
>
> Hopefully someone will have a good suggestion as I am so "spent" with
> my energies trying to refactor my software.
>
> Chris
>
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
More information about the gtkada
mailing list