LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2004, 07:06 AM   #1
newbie007007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora
Posts: 36

Rep: Reputation: 15
qt not working


Hi,
I am working on a FC2 PC.When I tried to run a qt program,It is giving lot of errors.
Everything is fine with the program.Infact it is a small program.Then I installed qt 3.3 from net.
Even now it is giving errors like undefined reference to QGlist::~QGlist.
Can Anybody tell me how to get rid of this problem.
Or
Any other resource(in windows) to do QT.
thank you.
 
Old 12-18-2004, 11:36 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Please post the commands that you are using to compile the program. Have you specified -lqt on the command-line?

If so, try adding the directory where libqt.so (or libqt-mt.so) resides to your LD_PATH environment variable then re-running
Code:
sudo -c 'ldconfig'
to make sure that the system can find the file.
 
Old 12-18-2004, 01:18 PM   #3
newbie007007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora
Posts: 36

Original Poster
Rep: Reputation: 15
Thank you very much for your response.

I am using the following commands.

1. qmake -project
2. qmake
3. make

I didn't understand what is "-lqt"
Please knidly explain how to do this?

libqt.so is present in LD_PATH directory.
thank you.

PS:Please help .I am in desprate need of qt.
 
Old 12-18-2004, 01:22 PM   #4
Cerulean
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 28

Rep: Reputation: 15
Quote:
I didn't understand what is "-lqt"
Please knidly explain how to do this?
Its a linker flag telling g++ to link the executable with the libqt shared library. qmake adds these for you, so I wouldn't worry about it.
Try running make clean in the directory with the Qt project file and then running make again.
 
Old 12-18-2004, 01:25 PM   #5
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by newbie007007
Thank you very much for your response.

I am using the following commands.

1. qmake -project
2. qmake
3. make

I didn't understand what is "-lqt"
Please knidly explain how to do this?

libqt.so is present in LD_PATH directory.
thank you.
Which version of Qt did you originally write your program with? Undefined symbols mean the definitions of the functions you use in your program are not found in the library you're linking to. If your program used to work fine with an older version of Qt but not with 3.3, then I'd suspect that the functions that now cause the "undefined symbols" error are not supported by the latest version of Qt anymore.

That kind of problem is usually caught when you re-link your program with the new version of the library (Qt in this case). Did you not get any such errors at that time?
 
Old 12-18-2004, 05:35 PM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I've just checked; QGlist seems to have been dropped somewhere between 2.2.0 and 3.3.1. This usually means that there's now a more efficient way of doing the same thing that you should be using instead. (If you upgrade Qt by one minor version at a time, you can expect to get depracation warnings a version before any class or method is dropped. )

You might want to look at the porting.html file in the documentation directory, which gives some advice on how to upgrade from one version to another.
 
Old 12-18-2004, 11:49 PM   #7
newbie007007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora
Posts: 36

Original Poster
Rep: Reputation: 15
I am using qt-3.3 version.
I have downloaded new rpms from net.
Now when I tried to uninstall the rpms ( using rpm -e qt-3.3.2-2 command),It is giving
Error-failed dependencies.
libqt-mt.so.3 is needed by (installed) arts-1.2.2-2
libqt-mt.so.3 is needed by (installed) chromium-0.9.12-25
libqt-mt.so.3 is needed by (installed) kdelibs-3.2.2-4
libqt-mt.so.3 is needed by (installed) kdebase-3.2.2-4
libqt-mt.so.3 is needed by (installed) kdepim-3.2.2-2
libqt-mt.so.3 is needed by (installed) koffice-1.3-6
libqt-mt.so.3 is needed by (installed) k3b-0.11.9-3
libqt-mt.so.3 is needed by (installed) kdemultimedia-3.2.2-2
libqt-mt.so.3 is needed by (installed) kdegames-3.2.2-1
libqt-mt.so.3 is needed by (installed) kdegraphics-3.2.2-1
libqt-mt.so.3 is needed by (installed) quanta-3.2.2-1
libqt-mt.so.3 is needed by (installed) kdeartwork-3.2.2-1
libqt-mt.so.3 is needed by (installed) kdeutils-3.2.2-3
libqt-mt.so.3 is needed by (installed) kdeadmin-3.2.2-2
libqt-mt.so.3 is needed by (installed) kdeaddons-3.2.2-1
libqt-mt.so.3 is needed by (installed) kdenetwork-3.2.2-1

Plz tell me how Can reinstall qt by removing the existing one.
thank you.
 
Old 12-19-2004, 12:25 AM   #8
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by newbie007007
I am using qt-3.3 version.
I have downloaded new rpms from net.
Now when I tried to uninstall the rpms ( using rpm -e qt-3.3.2-2 command),It is giving
Error-failed dependencies.
[snip]
Plz tell me how Can reinstall qt by removing the existing one.
thank you.
You can't unless you uninstall the entire KDE 3.2.2 too. All KDE components rely upon Qt. IMO the easiest path would be to replace the unsupported function(s) with the supported ones and rebuild your application with Qt 3.3.2.
 
Old 12-19-2004, 12:26 AM   #9
newbie007007
Member
 
Registered: Dec 2004
Location: India
Distribution: Fedora
Posts: 36

Original Poster
Rep: Reputation: 15
I forgot write .
It is notonly giving undefined reference to QGlist but also "undefined reference to QPushButton"
and "QString".
thank you.
 
Old 12-19-2004, 01:40 AM   #10
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by newbie007007
I forgot write .
It is notonly giving undefined reference to QGlist but also "undefined reference to QPushButton"
and "QString".
thank you.
Did you read rjlee's and my replies above?

Here's the porting documentation he referred to:

http://doc.trolltech.com/3.2/porting.html

Like I said, you most probably have to rewrite some portions of your application. Let me repeat my question again... which version of Qt did you originally write it with?
 
  


Reply



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
Intel sound not working, usb modem not working. siriusb Linux - Hardware 8 03-04-2006 10:16 PM
After Online update: Hard drive working and working dacosta SUSE / openSUSE 6 11-06-2004 12:14 AM
F1 - F10 not working when F13 - F20 working in Linux haivinay Linux - General 0 09-20-2004 07:31 AM
Link/Applet not working in all Linux browsers, but working in IE MasterPatricko Linux - Software 6 09-04-2004 03:39 AM
cannot download files in mozilla -save dialog not working, galeon not working cmisip Linux - General 0 08-03-2003 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:27 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
Open Source Consulting | Domain Registration