LibX11 problem in gtk
When I try to install gtk, there is always one problem: first the error: "X development libraries not found" appears. I've found the solution, that I have to use: --x-includes=/... and --x-libraries=/...
then another error appears: *** libX11 not found. Check 'config.log' for more details. Is this because I chose the wrong path? I tried more then one; and although libx11 is correctly installed, it isn't found... I also tried to find solutions in the inet, but none solved the problem Thanks in advance |
I don't know about your specific problem, but if your -do- have the library, there is a workaround (sometimes) by using a symlink.
To do this, you need to open the "./configure" file of the package / program you want to compile. Search for the section that does the check that is failing. For example, I wanted to compile something that was looking for, lets say, libabc.a. I -knew- I had libabc.a, but the package's configure wasn't finding it. So, I went into the configure script and searched for the section trying to compile a program on libabc.a (to check if it is present in the system). I discovered that the configure script was simply looking in the wrong place (/usr/local/lib instead of /usr/lib, if I remember right). So the solutions was to put a symlink to /usr/lib/libabc.a into /usr/local/lib, so when the script called cc to compile the test program, and cc went looking for the library in /usr/local/lib, it will find the symlink there to /usr/lib... So, in effect, you can "trick" the compiler to use a library in a directory that it does not refer to, by putting a symlink to that library in a directory the compiler does refer to. Eg. In /usr/local/lib do ln -s libabc.a /usr/lib/libabc.a So, if the script is looking in /usr/local/lib for libabc.a (where it does not exist, causing the compile to fail) there will be a symlink which will cause it to -actually- look in /usr/lib, and find the library there. Hope this helps! |
I've already tried with symlinks, didn't work.... any other ideas?
|
Quote:
Code:
>$ apt-file search libX11 |
Quote:
If you are feeling adventurous, and the packager (the person putting the application togeteher) included his configure.in and maybe Makefile.am autoconf source files, you might try editing those to find the library correctly - but that is not for the faint of heart. |
hey thanks, i tried your suggestions, they worked
|
hi, I have the same problem.
I followed all your advices, but it still don't work... :confused: I don't know what to do, can someone help me? thank |
Dug up an old post there. You might want to paste in the exact error message.
|
All times are GMT -5. The time now is 04:22 PM. |