WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: X11 headers  (Read 6233 times)

Offline averyeng

  • Newbie
  • *
  • Posts: 6
X11 headers
« on: April 01, 2009, 10:45:27 AM »
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

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: X11 headers
« Reply #1 on: April 01, 2009, 02:01:49 PM »
The Xorg-7.4-dev.tce is the extension you need.

Offline averyeng

  • Newbie
  • *
  • Posts: 6
Re: X11 headers
« Reply #2 on: April 01, 2009, 02:34:48 PM »
Thanks

will try it tonight

Offline averyeng

  • Newbie
  • *
  • Posts: 6
Re: X11 headers
« Reply #3 on: April 02, 2009, 07: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: X11 headers
« Reply #4 on: April 02, 2009, 07:54:02 AM »
Perhaps you need:
Code: [Select]
$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

Offline averyeng

  • Newbie
  • *
  • Posts: 6
Re: X11 headers
« Reply #5 on: April 02, 2009, 08:04:56 AM »
i used that from the make tce directions
for both giblib and feh.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: X11 headers
« Reply #6 on: April 02, 2009, 08: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

Offline averyeng

  • Newbie
  • *
  • Posts: 6
Re: X11 headers
« Reply #7 on: April 02, 2009, 08: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: X11 headers
« Reply #8 on: April 02, 2009, 08:25:57 AM »
It's a long shot, but maybe removing "-L/usr/X11R6/lib" might help?

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: X11 headers
« Reply #9 on: April 02, 2009, 07:04:29 PM »
Maybe running `ldconfig` will help.

Offline averyeng

  • Newbie
  • *
  • Posts: 6
Re: X11 headers
« Reply #10 on: April 02, 2009, 09:06:59 PM »
Juanito,
removing "-L/usr/X11R6/lib"
worked

thank you

creating tce&tcz will test then post.