./configure cant find libXext
whenever i go to compile some source i have to change the location of the Xincludes and Xlibraries. that overcame my problem of gcc not being able to find those. now it says that it can't find a working libXext file. i am running suse 9.2 pro 64 bit edition, and was able to locate the libXext file (don't remember exactly where right now, will be able to update once i get home tonight).
what command will allow me to change where ./configure looks for my libXext file? this is keeping me from compiling pretty much everything from source. thanks |
Code:
./configure CPPFLAGS=-I/path/to/header/files Code:
./configure LDFLAGS=-L/path/to/library/files |
First choice:
Code:
./configure --help | less Second choice: If there is no special configure parameter, configure will try to find its needed include (and other) files. If you installed into a location configure does not expect, it will need a little help finding it. Most products create a file with a ".pc" extension and leave it in "<path>/lib/pkgconfig", where "<path>" is the --prefix= path you specified when you built libXext. Locate it. Then set up the environment variable $PKG_CONFIG_PATH with the path to that file. Example: Code:
export PKG_CONFIG_PATH=some_path/lib/pkgconfig Hopefully, this gets you past the "configure" step ind into the "make" step. If you have a dumb ./configure script, it may be necessary to use additional compiler directives to instruct the compiler where to search. This is done through environment variables. Use one or more of these environment variables: Code:
Some influential environment variables: One final environment variable might be helpful: Code:
export LD_LIBRARY_PATH=some_path/lib Hope this helps... |
I guess I don't understand what you said here. I made libXext? I thought it was just a library file that was already there.
You said: "Most products create a file with a ".pc" extension and leave it in "<path>/lib/pkgconfig", where "<path>" is the --prefix= path you specified when you built libXext." Also, I was not able to find the pkgconfig.pc file that you said would probably be generated by whatever package I'm trying to install. I set the install directory (prefix right?) to /opt/kde3 Its not in /opt/kde3/bin |
kde does not use pkg-config. mostly pkg-config is used by gnome ( but some other libs and programs use it too).
look in /usr/X11R6/lib for libXext.so.*, make sure you have /usr/X11R6/lib in /etc/ld.so.conf and have run ldconfig to update the cache. if you still have problems, either use the LDFLAGS or LD_LIBRARY_PATH variables above. ( though you shouldn't need to do these if you have the path in /etc/ld.so.conf and have run ldconfig). |
All times are GMT -5. The time now is 08:29 AM. |