LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-07-2009, 07:34 PM   #1
v333k
Member
 
Registered: Apr 2004
Location: 127.0.0.1
Posts: 38

Rep: Reputation: 15
uninstall QT4 (QT Creator)


Hi,
I downloaded QTCreator (.bin file) and I followed the instructions to install it on my Fedora 10.
After that I found out that I already have QT3.3 installed - more precisely, it came with the Fedora 10 OS installation.

I created a project in qt creator but it is not building, and I get this error message:
No valid Qt version set. Set one in Tools/Options
Error while building project qt_test
When executing build step 'QMake'
Canceled build.

I found under /usr/lib qt-3.3 and qt4 folders. Does this mean I have both installed?

Can anyone suggest any solution(s) to what I need to do.

thanks
 
Old 04-07-2009, 10:32 PM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
You certainly may have both and there is no problem with having both. To develop with QT you will need the devl package, I'd recommend that you develop using QT4. In Qt Creator look at Tools->Options... QT4 to add the path to the development libraries.
 
Old 04-08-2009, 09:32 AM   #3
v333k
Member
 
Registered: Apr 2004
Location: 127.0.0.1
Posts: 38

Original Poster
Rep: Reputation: 15
I tried adding the path, but I am not even sure what I need to point to.
When I opened Tools/Options there was a QT tab and I added the path /usr/lib/qt4 to it but I keep getting '/usr/lib/qt4 is not a valid qt directory'.

Is it possible that when I downloaded the bin file from qtsoftware.com it didn't contain the development package?

I have one more observation that might help....
I created a very basic project and in main.cpp, the generated code is:
#include <QtGui/QApplication> but it is underlined and the message says QtGui/QApplication: No such file or directory.

Where should I expect to find this QtGui/QApplication ?
 
Old 04-08-2009, 03:53 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
I think that you need to to install the QT4 development packages, go to the system menu -> administration -> Add remove packages (or which ever package manager you use) and select QT toolkit (for fedora 10 this will be version 4.4.3)
 
  


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
Please - what is QT4 rcc ? GTrax Linux - Software 6 01-24-2009 12:20 PM
Qt4 STARHARVEST Slackware 7 10-08-2008 08:56 AM
Does slackware 12 come with Qt4? Tux-Slack Slackware 1 07-14-2007 01:28 PM
qt4 programming Four Programming 4 02-10-2007 09:15 AM
Compiling qt4 apps for non-qt4 linux, win, mac birdseye Programming 4 10-31-2005 04:45 AM


All times are GMT -5. The time now is 11:09 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration