LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing qmake X11/Xlib.h: No such file or directory (https://www.linuxquestions.org/questions/linux-newbie-8/installing-qmake-x11-xlib-h-no-such-file-or-directory-687308/)

eolmsan 11-30-2008 05:06 PM

installing qmake X11/Xlib.h: No such file or directory
 
Hello to everyone, I am trying to install the packet qt-x11 to get qmake, and I am getting the error X11/Xlib.h: No such file or directory

I have in my path a directory with the Xlib library, but I still get the error that library not found, where do I have to add the library to allow make find it?.

And another question I just need the qmake utility is there a way to get it without install X11?

Thanks in advance.

weibullguy 11-30-2008 05:56 PM

You may have the library installed, but do you have the header file installed? qt-x11 is looking for /usr/include/X11/Xlib.h or /usr/X11R6/include/X11/Xlib.h. Do you have that file?

eolmsan 11-30-2008 07:07 PM

Hello, I am working in a cluster and there is no X windows installed, is there any way to tell qt or make to look in the directory in which I have Xlib?, I have them in a local directory from another user. I only want the qmake utility, do you know any package in which I can get qmake without installing qt?.

Thx

weibullguy 12-01-2008 04:09 AM

Qt has hard coded X11 paths in its files. This is how I change them to tell Qt to look elsewhere for the X11 files it needs
Code:

for file in $(grep -lr "X11R6" *)
do
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $file
done

However, as I stated in my first post, Qt is looking for the header file, not the library.


All times are GMT -5. The time now is 11:23 AM.