LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Cannot find -lqt when in X environment (https://www.linuxquestions.org/questions/programming-9/cannot-find-lqt-when-in-x-environment-225241/)

naddad 09-01-2004 08:50 AM

Cannot find -lqt when in X environment
 
Hi,

I installed qt libraries in usr/local/qt and updated the ld.so.conf file to include that directory:
/usr/local/qt/lib

and i also updated my .bash_profile to include the proper paths.

However, when the X environment (i use GNOME) is off, and i compile a file that requires the -lqt library, it works. But when i startx the X enviroment, i open a terminal window, i do the exact same command to compile, but it says that " ld: -lqt not found".

Actually what i did, is install the package that came with mandrake 10, qt3, AND i installed the package from trolltech.com for qt libraries. So i have qt AND qt3. qt3 was installed in usr/lib/qt3.
Anyone have a clue? I'm kind of a newbie by the way... Thnks.

naddad 09-01-2004 11:28 AM

Me again,

I uninstalled qt3 that came with the mandrake 10 CD using the pacakge installer in GNOME and I kept qt in usr/local/qt
So after running "startx', i type "echo $QTDIR" and it still points to /usr/lib/qt3 ! So i check the ld.so.conf file, it has no qt3 entries, it only points to qt, and i check my .bash_profile file, it assigned QTDIR to usr/local/qt. What is going on?? Where else could qt3 be defined other than ld.so.conf and bash_profile?

Note: when X is shutdown, echo $QTDIR points correctly to /usr/local/qt

Mara 09-01-2004 05:04 PM

Do you use any kind of display amnager like kdm, gdm or xdm?

naddad 09-12-2004 12:13 AM

I don't know :S i'm really new to this. How would I know? I use KDE... dunno if that answers ur question??

Mara 09-13-2004 05:01 PM

kdm, xdm and such are programs used for graphical login. They allow you to log in but also to choose which window manager (KDE, GNOME, other) to use for that session (also in graphical mode).


All times are GMT -5. The time now is 10:38 AM.