Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.