LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-03-2004, 04:09 PM   #1
huno
Member
 
Registered: May 2002
Distribution: Slackware 9.1
Posts: 161

Rep: Reputation: 30
compile C++ source file


how can i compile C++ source file with qt desgner or kdeveloper ..

i'm sure i'm installing the GCC Library files ..

thanks
 
Old 10-03-2004, 04:18 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if the relevant libraries are already installed, then you would just need to link the approriate libraries, e.g.

gcc file.cpp -lqt -o file
 
Old 10-03-2004, 09:41 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
If what you mean is KDevelop ( I don't know anything called KDeveloper ), simply select Build Project, in the Build menu. or press F8. If may ask you if you want to run automake and friends, and configure say yes.

Qt Designer is diffrent, as its mainly for designing UI's so you can't compile directly with it. For using the two programs in concert see this tutorial.
 
Old 10-04-2004, 06:49 AM   #4
bahramH
Member
 
Registered: Apr 2004
Location: France
Distribution: Mandrake
Posts: 67

Rep: Reputation: 15
if your C++ code uses QT objects such as windows and buttons and so on... you have first issue an
"qmake"
comand, which will generate a normal "Makefile". You can then just issue a
"Make"
Normally, all system variables/libs/headers are then correctly initialized.
 
  


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
can't compile from source.... garyozzy Ubuntu 7 11-30-2005 04:00 PM
Can't compile C++ source file mohbana Programming 1 11-22-2004 09:05 AM
Compile from source meodihia Debian 5 09-11-2004 12:29 PM
How do I compile a source file? Mal495 Debian 6 07-20-2004 07:07 AM
Compile from source? Gamezace Linux - Newbie 4 04-18-2004 01:31 AM

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

All times are GMT -5. The time now is 12:07 AM.

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