LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-01-2006, 09:35 AM   #1
sharapchi
Member
 
Registered: Nov 2004
Location: Turkey
Distribution: slackware
Posts: 119

Rep: Reputation: 15
compiling with QT


i want to develop applications with qt, but i cannot use gcc with -lqt parameter.

Code:
bash-3.00$ gcc -Wall -I $QTDIR/include -L $QTDIR/lib qt1.cpp -lqt
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: -lqt bulunamadı (cannot find -lqt)
collect2: ld çıkış durumu 1 ile döndü (returns with 1)
here is an exapmle, i exported $QTDIR. I am using slackware...

Code:
QTDIR=/usr/lib/qt-3.3.4/

Last edited by sharapchi; 08-01-2006 at 09:37 AM.
 
Old 08-01-2006, 09:46 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Possibly this will help?

http://lists.trolltech.com/qt-intere...ad00397-0.html

I'd suggesting have a look around in the Qt and KDE dev areas if this doesn't help.
- Piete.
 
Old 08-01-2006, 06:05 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
to answer your question i think you might need to do -lqt-mt instead of -lqt. but i am not so sure really.. however....

why compile directly and not use the qmake utility that comes with qt?
qmake -o Makefile myproject.pro creates the makefile based on info it gets from the myproject.pro file..
basically it makes more sense if you use qt designer (very useful especially since you would generally use qt library to make GUIs) and let it generate the project file automatically for you, but u can also write it on your own.. its very simple... check out /usr/lib/qt/examples for some project files or open qt designer by typing 'designer' in ur shell. should be easy enough to find your way around..
also here is a a few qt related help sites:
http://www.qtforum.org/
www.qtcentre.org
nass

Last edited by nass; 08-01-2006 at 06:08 PM.
 
  


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
compiling 2.6 srinis Linux - Newbie 7 11-27-2004 10:36 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
Compiling 2.4.21 ... fasta Slackware 3 11-18-2003 05:16 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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