[gtkada] GTKAda GPL 2013 on MacOS.

Pascal p.p14 at orange.fr
Sun Aug 11 22:28:53 CEST 2013


Hello I've build GTKAda GPL2013 (based on x86_64-linux source) on MacOS 10.8 with XQuartz 2.7.

When executing TestCairo I've the following error:
$ /usr/local/xadalib-2013/share/examples/gtkada/testgtk/testcairo 
dyld: Library not loaded: libgtkada-3.4.dylib.2
  Referenced from: /usr/local/xadalib-2013/share/examples/gtkada/testgtk/testcairo
  Reason: image not found
Trace/BPT trap: 5
-> libgtkada-3.4.dylib.2 is not found.

I thought that the default was static mode rather dynamic lib.

Thus, I set DYLD_LIBRARY_PATH:
$ export DYLD_LIBRARY_PATH=/usr/local/xadalib-2013/lib
$ /usr/local/xadalib-2013/share/examples/gtkada/testgtk/testcairo 
dyld: Library not loaded: /opt/X11/lib/libcairo.2.dylib
  Referenced from: /usr/local/xadalib-2013/lib/libgtk-3.0.dylib
  Reason: Incompatible library version: libgtk-3.0.dylib requires version 11203.0.0 or later, but libcairo.2.dylib provides version 11003.0.0
Trace/BPT trap: 5
-> libgtkada-3.4.dylib.2 is now found but libcairo.2.dylib is not taken from path provided in DYLD_LIBRARY_PATH but from /opt/X11/lib which is not the correct version!?

How to take the one which I have built?

Nevertheless, I've compiled again TestCairo with static option:
$ gnatmake testcairo `gtkada-config --static`
gcc -c -I/usr/local/xadalib-2013/include/gtkada testcairo.adb
gnatbind -aI/usr/local/xadalib-2013/include/gtkada -aO/usr/local/xadalib-2013/lib/gtkada/static -x testcairo.ali
gnatlink testcairo.ali -L/usr/local/xadalib-2013/lib/gtkada/static -lgtkada -L/usr/local/xadalib-2013/lib -L/usr/X11/lib -lgtk-3 -lgdk-3 -lXinerama -lXext -lX11 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
$ ./testcairo 
dyld: Library not loaded: /opt/X11/lib/libcairo.2.dylib
  Referenced from: /usr/local/xadalib-2013/lib/libgtk-3.0.dylib
  Reason: Incompatible library version: libgtk-3.0.dylib requires version 11203.0.0 or later, but libcairo.2.dylib provides version 11003.0.0
Trace/BPT trap: 5

Same error! What I've forgot?

Thanks for help, Pascal.
http://blady.pagesperso-orange.fr




More information about the gtkada mailing list