Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: averyeng on April 01, 2009, 01:45:27 PM

Title: X11 headers
Post by: averyeng on April 01, 2009, 01:45:27 PM
i am trying to compile giblib and need the X11 header files.
where is the best place to download them so i have the right version?

thank you
Title: Re: X11 headers
Post by: Jason W on April 01, 2009, 05:01:49 PM
The Xorg-7.4-dev.tce is the extension you need.
Title: Re: X11 headers
Post by: averyeng on April 01, 2009, 05:34:48 PM
Thanks

will try it tonight
Title: Re: X11 headers
Post by: averyeng on April 02, 2009, 10:43:06 AM
worked.

but I am having a problem with another program loading the shared library

"libgiblib.so.1: cannot open shared object file: No such file or directory"

libgiblib.so.1 is in /usr/local/lib
i added /usr/local/lib to my PATH and recompiled but i still get the same error.

thanks for the time.
Title: Re: X11 headers
Post by: Juanito on April 02, 2009, 10:54:02 AM
Perhaps you need:
Code: [Select]
$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
Title: Re: X11 headers
Post by: averyeng on April 02, 2009, 11:04:56 AM
i used that from the make tce directions
for both giblib and feh.
Title: Re: X11 headers
Post by: Juanito on April 02, 2009, 11:11:53 AM
You could try having a look at the Makefile after running ./configure.

You might see something like:

giblib -L giblib

that you could change to:

giblib -L /usr/local/lib
Title: Re: X11 headers
Post by: averyeng on April 02, 2009, 11:21:48 AM
found this in the "Makefile"

GIBLIB_CFLAGS = -I/usr/local/include -I/usr/local/include/giblib
GIBLIB_LIBS = -L/usr/local/lib -lgiblib -L/usr/lib -lImlib2 -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl -lm

but it doesn't seem to be used anywhere in the Makefile
Title: Re: X11 headers
Post by: Juanito on April 02, 2009, 11:25:57 AM
It's a long shot, but maybe removing "-L/usr/X11R6/lib" might help?
Title: Re: X11 headers
Post by: ^thehatsrule^ on April 02, 2009, 10:04:29 PM
Maybe running `ldconfig` will help.
Title: Re: X11 headers
Post by: averyeng on April 03, 2009, 12:06:59 AM
Juanito,
removing "-L/usr/X11R6/lib"
worked

thank you

creating tce&tcz will test then post.