Re: Gtk compiling woes
Phil Weir <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.dunedin.general |
|---|---|
| Message-ID | <CAE-_39mL0kVdzkTgnpLhLwNwnWs6Sj_4gVbRjRxsbyckjWPj4A@mail.gmail.com> |
I generally use pkg-config for GTK compilation, to make it a bit simpler to keep track of the stream of library dependencies. It provides a little more future proofing, which has caught me out in the past. The example I'm currently looking at uses gtk+-3.0 as the package argument and four lines of Python code are sufficient to incorporate it into setup.py (distutils), so that my custom C module is correctly built (via swig). This supplementary-module method seems to be the most straightforward way to incorporate necessary bits of GTK functionality currently missing through GObject introspection, but I would be interested in other suggestions. Preferably ones that don't involve rebuilding system packages :) PTW On Wed, Jan 30, 2013 at 1:38 AM, Worik Stanton <[email protected]> wrote: > On 30/01/13 14:34, Paul Campbell wrote: >> >> On Wed, 30 Jan 2013 14:24:41 Worik Stanton wrote: >>> >>> Why can gcc not find them? >> >> >> my guess is that you need a -L on your command line - gcc doesn't use the >> ld.so.conf - that's for the run-time linker > > > Actually I had the object files in the wrong place. > > /usr/bin/gcc -Wall -g ProjectName.o Callbacks.o -o ProjectName > -Wl,--export-dynamic -pthread -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 > -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo > -lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0 > > > works fine. I found the answer on Google as soon as I asked here. Ask and > ye shall receive.... > > It has been a long time no C, I had forgotten that ld.so... is run time. > > thanks > > > W >> >> >> Paul >> >> _______________________________________________ >> DunLUG mailing list >> [email protected] >> http://lists.ethernal.org/listinfo/dunlug >> DunLUG Wiki - http://dunlug.kallisti.net.nz/ >> > > > -- > Overcoming poverty is not a task of charity, it is an act of justice > > _______________________________________________ > DunLUG mailing list > [email protected] > http://lists.ethernal.org/listinfo/dunlug > DunLUG Wiki - http://dunlug.kallisti.net.nz/ _______________________________________________ DunLUG mailing list [email protected] http://lists.ethernal.org/listinfo/dunlug DunLUG Wiki - http://dunlug.kallisti.net.nz/