Jim Michmerhuizen wrote:
> On 12/12/2012 04:35 PM, Bruce Dubbs wrote:
>
>>
>> Try going to the directory where that is running and do:
>>
>> gcc  -g -O2   -o lxappearance main.o glade-support.o main-dlg-ui.o \
>>     main-dlg.o demo-ui.o demo.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 \
>>     -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo \
>>     -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 \
>>     -lX11
>>
>> Note the last line.
>
> OK, that worked fine.  What's the difference between brute-forcing it
> like this, and adding '-lX11' to the Makefile itself (i.e. to the LIBS
> macro, or to the PACKAGE_LIBS macro -- I tried both of those)?

There really shouldn't be any difference.

>> You could also go into the Makefile and add -lX11 to the place where
>> things like -lfreetype -lfontconfig are specified.
>>
> Like I said, that hadn't worked.

You need to find where the Makefile is construction the link line and 
add it.

When you did configure, there probably was a pkgconfig file that didn't 
add -lX11 when it should have.

You could also try running LIBS=-lX11 ./configure ...

   -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to