LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2011, 07:04 AM   #1
divya s
Member
 
Registered: Mar 2011
Posts: 40

Rep: Reputation: 0
How to install Qt?


I downloaded one but it is a binary file i dunno what to do. I have to install qt on fedora.
 
Old 03-31-2011, 08:53 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# yum search qt

# yum install qt-devel

.. And you will get qt-4.7 installed, if it's Fedora 14.
 
Old 03-31-2011, 08:12 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,926

Rep: Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429Reputation: 2429
on fedora
first is it QT3 or QT4 ?????
both are in the repos
just qt3 or 4
or
the source /headers also ?
for 4
Code:
yum install qt-devel qt
or
do you need kde4 also ?
Code:
yum groupinstall "KDE Desktop Environment"
 
Old 04-01-2011, 01:33 AM   #4
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
how to make

I downloaded qt 4.7 and did till ./configure, after this when i give make it shows *** No targets specified and no makefile found. Stop.Please tell me what should i do. Will be waiting for your reply......
 
Old 04-01-2011, 01:43 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by divya s View Post
and did till ./configure,
Are you sure ./configure's output didn't show any errors?
BTW, if you have installed through yum, on what thing are you doing ./configure?

Last edited by TheIndependentAquarius; 04-01-2011 at 01:45 AM.
 
Old 04-01-2011, 01:50 AM   #6
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
No i didnt use yum.
 
Old 04-01-2011, 02:00 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Then you should use yum, see Knud's post 2.
 
Old 04-01-2011, 02:03 AM   #8
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
ok

now i didnt get errors with make. I typed the general hello qt program and did qmake then make and all, it gives me error saying " error: qapplication.h: No such file or directory". What do you think went wrong.
 
Old 04-01-2011, 02:09 AM   #9
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by divya s View Post
now i didnt get errors with make. I typed the general hello qt program and did qmake then make and all,
Please understand, this thread is for Qt installation only. If you have installed Qt, mark the thread solved. New questions should be in new threads in the appropriate forums.

Quote:
Originally Posted by divya s View Post
it gives me error saying " error: qapplication.h: No such file or directory". What do you think went wrong.
Did you include:
Code:
#include <QApplication>
?
This question should be in the programming section: http://www.linuxquestions.org/questions/programming-9/

You won't get the proper answers if you don't put the new questions in new threads in the appropriate forums: http://www.linuxquestions.org/questions/
 
Old 04-01-2011, 02:11 AM   #10
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
yes i have included

it shows me a list of error msgs.
error: qapplication.h: No such file or directory
p1.cpp:2:25: error: qpushbutton.h: No such file or directory
p1.cpp: In function ‘int main(int, char**)’:
p1.cpp:7: error: ‘QApplication’ was not declared in this scope
p1.cpp:7: error: expected `;' before ‘a’
p1.cpp:9: error: ‘QPushButton’ was not declared in this scope
p1.cpp:9: error: expected `;' before ‘hello’
p1.cpp:10: error: ‘hello’ was not declared in this scope
p1.cpp:12: error: ‘a’ was not declared in this scope
p1.cpp: At global scope:
p1.cpp:5: warning: unused parameter ‘argc’
p1.cpp:5: warning: unused parameter ‘argv’
make: *** [p1.o] Error 1



what should i do?
 
Old 04-01-2011, 02:13 AM   #11
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by divya s View Post
what should i do?
Did you read the post 9, completely?
and secondly you need to post your code (header and the source file) in code tags: http://www.linuxquestions.org/questi...do=bbcode#code
 
Old 04-01-2011, 03:24 AM   #12
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
uninstall

I have installed qt 4.7 but i think it has not properly installed so i want to uninstall it and reinstall again. Please tell me how to uninstall it.
 
Old 04-01-2011, 03:25 AM   #13
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,674
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
You also need to tell them that you have qt 3.x already installed.
 
Old 04-01-2011, 03:31 AM   #14
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
ok

ok.But let me first uninstall Qt4.7 how to do that please let me know i am very new to all these so i am finding difficult.Help me...
 
Old 04-01-2011, 04:47 AM   #15
divya s
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 0
i tried doing yum remove qt it gave removed qt,redhat. Has it removed because i dunno the package name. Can you tell me how to know the name of the package?
 
  


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
Open Office will not install on factory install of Ubuntu 8.04 LTS on Dell Mini 10 trekgirl Linux - Laptop and Netbook 6 08-02-2009 12:37 AM
Uncertain how to configure/install packages & compiler before install VMware on FC8. Azazwa Linux - Newbie 1 03-28-2009 08:27 PM
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 06:49 AM
apt-get install dependency problems with hplip software and kde install for Agnula maybi7 Linux - Software 1 02-03-2007 06:16 PM


All times are GMT -5. The time now is 04:38 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