LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-01-2004, 09:50 AM   #1
naddad
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
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.
 
Old 09-01-2004, 12:28 PM   #2
naddad
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 09-01-2004, 06:04 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Do you use any kind of display amnager like kdm, gdm or xdm?
 
Old 09-12-2004, 01:13 AM   #4
naddad
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I don't know :S i'm really new to this. How would I know? I use KDE... dunno if that answers ur question??
 
Old 09-13-2004, 06:01 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: cannot find -lqt, make xconfig tuxandme Linux - Software 5 06-19-2005 02:04 PM
can't find desktop environment shemjaza Linux - Newbie 7 08-23-2004 08:42 AM
Need help setting right environment variables:configure scripts can't find libraries. z-vet Linux - Newbie 4 08-16-2004 06:10 PM
Having problems with program: cannot find -lqt-mt misfit-x Linux - General 2 01-20-2004 03:29 PM
-lqt problem jayakrishnan Linux - General 1 04-17-2002 04:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration