LinuxQuestions.org
Help answer threads with 0 replies.
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 01-31-2004, 12:08 PM   #1
Dravis
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
Question Can't compile QT tutorial examples


When I try to compile the first example over at http://doc.trolltech.com/3.2/tutorial1-01.html, make bails our with an error.
Here is what happens:
Code:
[ben@localhost:~/src/qt]$ qmake -project
[ben@localhost:~/src/qt]$ qmake
[ben@localhost:~/src/qt]$ make
g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG  -I/usr/lib/qt-3.2.3/mkspecs/default -I. -I. -I/usr/lib/qt-3.2.3/include -o main.o main.cpp
main.cpp:21:2: warning: no newline at end of file
g++  -o qt main.o   -L/usr/X11R6/lib -lXext -lX11 -lm
main.o(.text+0x1d): In function `main':
: undefined reference to `QApplication::QApplication[in-charge](int&, char**)'
main.o(.text+0x30): In function `main':
: undefined reference to `QString::QString[in-charge](char const*)'
main.o(.text+0x44): In function `main':
: undefined reference to `QPushButton::QPushButton[in-charge](QString const&, QWidget*, char const*)'
main.o(.text+0x5c): In function `main':
: undefined reference to `QString::shared_null'
main.o(.text+0x67): In function `main':
: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0x77): In function `main':
: undefined reference to `QPushButton::resize(int, int)'
main.o(.text+0x80): In function `main':
: undefined reference to `QApplication::setMainWidget(QWidget*)'
main.o(.text+0x88): In function `main':
: undefined reference to `QWidget::show()'
main.o(.text+0x90): In function `main':
: undefined reference to `QApplication::exec()'
main.o(.text+0x9b): In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'
main.o(.text+0xa3): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
main.o(.text+0xe5): In function `main':
: undefined reference to `QApplication::~QApplication [in-charge]()'
main.o(.text+0xf3): In function `main':
: undefined reference to `QString::shared_null'
main.o(.text+0xfe): In function `main':
: undefined reference to `QStringData::deleteSelf()'
main.o(.text+0x127): In function `main':
: undefined reference to `QPushButton::~QPushButton [in-charge]()'
main.o(.gnu.linkonce.r._ZTV6QGList+0xc): undefined reference to `QGList::clear()'
main.o(.gnu.linkonce.r._ZTV6QGList+0x10): undefined reference to `QGList::~QGList [in-charge]()'
main.o(.gnu.linkonce.r._ZTV6QGList+0x14): undefined reference to `QGList::~QGList [in-charge deleting]()'
main.o(.gnu.linkonce.r._ZTV6QGList+0x18): undefined reference to `QPtrCollection::newItem(void*)'
main.o(.gnu.linkonce.r._ZTV6QGList+0x20): undefined reference to `QGList::compareItems(void*, void*)'
main.o(.gnu.linkonce.r._ZTV6QGList+0x24): undefined reference to `QGList::read(QDataStream&, void*&)'
main.o(.gnu.linkonce.r._ZTV6QGList+0x28): undefined reference to `QGList::write(QDataStream&, void*) const'
main.o(.gnu.linkonce.r._ZTI6QGList+0x8): undefined reference to `typeinfo for QPtrCollection'
collect2: ld returned 1 exit status
make: *** [qt] Error
I am running Slackware -currnet, with qt-3.2.2 and gcc-3.3.2. Does anyone know what is wrong and how I can get this to compile?

Thanks in advance.
 
Old 01-31-2004, 03:46 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
The makefile qmake creates relys on the environment variable $QTDIR, which wasnt set on my system. So if you do a "qmake -project" when the variable isnt set, it will create a nonworking makefile. You need to do a, "export QTDIR=/usr/lib/qt3", (or wherever your QT3 is installed to), then do a "qmake -project", and "qmake", and "make, then it should build. Also, make sure you name the source file main.cpp and have it in its own directory.
 
Old 02-22-2004, 02:50 PM   #3
End11
Member
 
Registered: Sep 2003
Distribution: slackware 9.1
Posts: 39

Rep: Reputation: 15
i'm havint (amazingly) exactly the same problem. slack -current, same stuff, same tutorial. but jinksys's solution didn't help

did it work for you Dravis? any other ideas? :S
 
Old 02-23-2004, 09:25 AM   #4
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
if its in kdevelop try to:

project->options->linkeroptions-> and mark qt

I hope that helps.
 
Old 03-05-2004, 09:31 PM   #5
Dravis
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 15

Original Poster
Rep: Reputation: 0
OK, I found out how to fix the problem. I'll post it here for the other guy who had this problem, and anyone else who might.

Add -L"$QTDIR"/lib -lqt to the command. For example:
gcc -o main -L"$QTDIR"/lib -lqt main.cpp

More info over at: http://doc.trolltech.com/3.2/commonp...html#linkerror
 
Old 01-11-2006, 01:39 PM   #6
Mariane
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
I tried -lqt, it says it can't find lqt...

To start with it didn't find qvfbhdr.h, because on the
Debian Sarge this file is not included in qt3... Now
I get loads of error messages, the first one being:

undefined reference to `QApplication::QApplication

Any ideas, please?

I'm trying to compile the first tutorial found:
http://doc.trolltech.com/3.3/tutorial1-01.html

If someone could tell what to do, something which
would look like:

g++ -DQT_NO_DEBUG -L/usr/include/qt3 -I/usr/include/qt3 hello.cpp -o hello

(I don't understand Makefiles at all, and I'm not sure
how to set $SOMETHING variables, either... I know, I'm
hopeles... :-( )

Mariane

Last edited by Mariane; 01-11-2006 at 01:48 PM.
 
Old 01-11-2006, 01:57 PM   #7
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I have the following in my .bash_profile file (it may be a different file for you distribution) however first you can try each line from your console

Code:
PATH=/usr/local/Trolltech/Qt-4.1.0/bin:$PATH
QTDIR=/usr/local/Trolltech/Qt-4.1.0

export PGDATA
export PATH
the export will then be valid for the life of the console. Please not these path are correct for my system, but check your first!

graeme.
 
Old 01-11-2006, 03:25 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
Quote:
Originally Posted by Mariane
I tried -lqt, it says it can't find lqt...

To start with it didn't find qvfbhdr.h, because on the
Debian Sarge this file is not included in qt3.
Any ideas, please?


If someone could tell what to do, something which
would look like:

g++ -DQT_NO_DEBUG -L/usr/include/qt3 -I/usr/include/qt3 hello.cpp -o hello

(
Mariane
install the header files ( look for a " qt-development " package ).
how to compile is already written in this thread.

egag
 
Old 01-11-2006, 04:52 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally Posted by Mariane
I tried -lqt, it says it can't find lqt...
locate libqt.so to see if you have it. If not, look for libqt-mt (linker option would be -mqt-mt). The difference is that qt-mt is multithreaded.

Quote:
undefined reference to `QApplication::QApplication

Any ideas, please?
The compilation line definitelly misses -lqt (or -lqt-mt). You need it. Look at my package list:
Code:
mara@mara:~$ dpkg-query -l 'qt*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  qt-designer    <none>         (no description available)
un  qt-designer-do <none>         (no description available)
un  qt-doc         <none>         (no description available)
ii  qt3-assistant  3.3.4-3        The Qt3 assistant application
ii  qt3-designer   3.3.4-3        Qt3 Designer
ii  qt3-dev-tools  3.3.4-3        Qt3 development tools
ii  qt3-doc        3.3.4-3        Qt3 API documentation
ii  qt3-linguist   3.3.4-3        The Qt3 Linguist
un  qt3-linquist   <none>         (no description available)
un  qt3-tools      <none>         (no description available)
It looks you need qt3-dev-tools.

Quote:
If someone could tell what to do, something which
would look like:

g++ -DQT_NO_DEBUG -L/usr/include/qt3 -I/usr/include/qt3 hello.cpp -o hello

(I don't understand Makefiles at all, and I'm not sure
how to set $SOMETHING variables, either... I know, I'm
hopeles... :-( )
I think you don't want to know the commands this time. Qt requires not only
just g++ (with options), but also usage of moc and uic. The makefiles are quite complicated.

In your case it should be, using Qt standards, quite simple. Please post the makefile you get after running qmake.
 
Old 01-12-2006, 09:26 AM   #10
Mariane
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
The Makefile I get after running qmake: (You asked for it :-)).

#############################################################################
# Makefile for building: hello
# Generated by qmake (1.07a) (Qt 3.3.4) on: Wed Jan 11 22:07:32 2006
# Project: hello.pro
# Template: app
# Command: $(QMAKE) -o Makefile hello.pro
#############################################################################

####### Compiler, tools and options

CC = gcc
CXX = g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
CXXFLAGS = -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3
LINK = g++
LFLAGS =
LIBS = $(SUBLIBS) -L/usr/share/qt3/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
AR = ar cqs
RANLIB =
MOC = /usr/share/qt3/bin/moc
UIC = /usr/share/qt3/bin/uic
QMAKE = qmake
TAR = tar -cf
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p

####### Output directory

OBJECTS_DIR = ./

####### Files

HEADERS = hello.h
SOURCES = hello.cpp
OBJECTS = hello.o
FORMS =
UICDECLS =
UICIMPLS =
SRCMOC =
OBJMOC =
DIST = hello.pro
QMAKE_TARGET = hello
DESTDIR =
TARGET = hello

first: all
####### Implicit rules

.SUFFIXES: .c .o .cpp .cc .cxx .C

.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: hello.pro /usr/share/qt3/mkspecs/default/qmake.conf /usr/share/qt3/lib/libqt-mt.prl
$(QMAKE) -o Makefile hello.pro
qmake:
@$(QMAKE) -o Makefile hello.pro

dist:
@mkdir -p .tmp/hello && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .tmp/hello/ && ( cd `dirname .tmp/hello` && $(TAR) hello.tar hello && $(GZIP) hello.tar ) && $(MOVE) `dirname .tmp/hello`/hello.tar.gz . && $(DEL_FILE) -r .tmp/hello

mocclean:

uiclean:

yaccclean:
lexclean:
clean:
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)


FORCE:

####### Compile

hello.o: hello.cpp /usr/include/qt3/qapplication.h \
/usr/include/qt3/qpushbutton.h \
/usr/include/qt3/qt.h \
/usr/include/qt3/qdesktopwidget.h \
/usr/include/qt3/qasciidict.h \
/usr/include/qt3/qpalette.h \
/usr/include/qt3/qtranslator.h \
/usr/include/qt3/qstrlist.h \
/usr/include/qt3/qstringlist.h \
/usr/include/qt3/qwidget.h \
/usr/include/qt3/qwindowdefs.h \
/usr/include/qt3/qobject.h \
/usr/include/qt3/qpaintdevice.h \
/usr/include/qt3/qfont.h \
/usr/include/qt3/qfontmetrics.h \
/usr/include/qt3/qfontinfo.h \
/usr/include/qt3/qsizepolicy.h \
/usr/include/qt3/qwinexport.h \
/usr/include/qt3/qobjectdefs.h \
/usr/include/qt3/qstring.h \
/usr/include/qt3/qnamespace.h \
/usr/include/qt3/qglobal.h \
/usr/include/qt3/qconfig.h \
/usr/include/qt3/qmodules.h \
/usr/include/qt3/qfeatures.h \
/usr/include/qt3/qcstring.h \
/usr/include/qt3/qmemarray.h \
/usr/include/qt3/qgarray.h \
/usr/include/qt3/qshared.h \
/usr/include/qt3/qevent.h \
/usr/include/qt3/qregion.h \
/usr/include/qt3/qmime.h \
/usr/include/qt3/qpair.h \
/usr/include/qt3/qrect.h \
/usr/include/qt3/qsize.h \
/usr/include/qt3/qpoint.h \
/usr/include/qt3/qmap.h \
/usr/include/qt3/qptrlist.h \
/usr/include/qt3/qdatastream.h \
/usr/include/qt3/qvaluelist.h \
/usr/include/qt3/qiodevice.h \
/usr/include/qt3/qtl.h \
/usr/include/qt3/qtextstream.h \
/usr/include/qt3/qglist.h \
/usr/include/qt3/qptrcollection.h \
/usr/include/qt3/qcolor.h \
/usr/include/qt3/qbrush.h \
/usr/include/qt3/qgdict.h \
/usr/include/qt3/qbutton.h \
/usr/include/qt3/qiconset.h \
/usr/include/qt3/qkeysequence.h \
/usr/include/qt3/qpixmap.h \
/usr/include/qt3/qbitarray.h \
/usr/include/qt3/qsql.h \
/usr/include/qt3/qdatetime.h \
/usr/include/qt3/qdict.h \
/usr/include/qt3/qhostaddress.h \
/usr/include/qt3/qdom.h \
/usr/include/qt3/qdrawutil.h \
/usr/include/qt3/qjpunicode.h \
/usr/include/qt3/qtextcodec.h \
/usr/include/qt3/qstyle.h \
/usr/include/qt3/qframe.h \
/usr/include/qt3/qfile.h \
/usr/include/qt3/qfileinfo.h \
/usr/include/qt3/qurlinfo.h \
/usr/include/qt3/qwidgetlist.h \
/usr/include/qt3/qcombobox.h \
/usr/include/qt3/qgroupbox.h \
/usr/include/qt3/qdialog.h \
/usr/include/qt3/qdataview.h \
/usr/include/qt3/qdockwindow.h \
/usr/include/qt3/qcommonstyle.h \
/usr/include/qt3/qnetworkprotocol.h \
/usr/include/qt3/qeuckrcodec.h \
/usr/include/qt3/qgb18030codec.h \
/usr/include/qt3/qgcache.h \
/usr/include/qt3/qgif.h \
/usr/include/qt3/qglcolormap.h \
/usr/include/qt3/qcache.h \
/usr/include/qt3/qdropsite.h \
/usr/include/qt3/qgplugin.h \
/usr/include/qt3/qgrid.h \
/usr/include/qt3/qrangecontrol.h \
/usr/include/qt3/qbuttongroup.h \
/usr/include/qt3/qdatetimeedit.h \
/usr/include/qt3/qgvector.h \
/usr/include/qt3/qhbox.h \
/usr/include/qt3/qhbuttongroup.h \
/usr/include/qt3/qhgroupbox.h \
/usr/include/qt3/qsocketnotifier.h \
/usr/include/qt3/qeventloop.h \
/usr/include/qt3/qhttp.h \
/usr/include/qt3/qaction.h \
/usr/include/qt3/qbuffer.h \
/usr/include/qt3/qimage.h \
/usr/include/qt3/qimageformatplugin.h \
/usr/include/qt3/qlineedit.h \
/usr/include/qt3/qintcache.h \
/usr/include/qt3/qintdict.h \
/usr/include/qt3/qmotifstyle.h \
/usr/include/qt3/qpicture.h \
/usr/include/qt3/qjiscodec.h \
/usr/include/qt3/qeucjpcodec.h \
/usr/include/qt3/qkeycode.h \
/usr/include/qt3/qaccel.h \
/usr/include/qt3/qlabel.h \
/usr/include/qt3/qlayout.h \
/usr/include/qt3/qlcdnumber.h \
/usr/include/qt3/qlibrary.h \
/usr/include/qt3/qinputdialog.h \
/usr/include/qt3/qscrollbar.h \
/usr/include/qt3/qscrollview.h \
/usr/include/qt3/qdir.h \
/usr/include/qt3/qwindowsstyle.h \
/usr/include/qt3/qconnection.h \
/usr/include/qt3/qbitmap.h \
/usr/include/qt3/qvariant.h \
/usr/include/qt3/qsignal.h \
/usr/include/qt3/qmessagebox.h \
/usr/include/qt3/qmetaobject.h \
/usr/include/qt3/qheader.h \
/usr/include/qt3/qmotifplusstyle.h \
/usr/include/qt3/qcdestyle.h \
/usr/include/qt3/qmovie.h \
/usr/include/qt3/qptrvector.h \
/usr/include/qt3/qmutex.h \
/usr/include/qt3/qnetwork.h \
/usr/include/qt3/qftp.h \
/usr/include/qt3/qguardedptr.h \
/usr/include/qt3/qobjectcleanuphandler.h \
/usr/include/qt3/qsqlfield.h \
/usr/include/qt3/qobjectdict.h \
/usr/include/qt3/qobjectlist.h \
/usr/include/qt3/qcolordialog.h \
/usr/include/qt3/qpaintdevicemetrics.h \
/usr/include/qt3/qpointarray.h \
/usr/include/qt3/qmenudata.h \
/usr/include/qt3/qlistview.h \
/usr/include/qt3/qpen.h \
/usr/include/qt3/qdragobject.h \
/usr/include/qt3/qiconview.h \
/usr/include/qt3/qpixmapcache.h \
/usr/include/qt3/qplatinumstyle.h \
/usr/include/qt3/qpngio.h \
/usr/include/qt3/qcursor.h \
/usr/include/qt3/qerrormessage.h \
/usr/include/qt3/qpolygonscanner.h \
/usr/include/qt3/qpopupmenu.h \
/usr/include/qt3/qprintdialog.h \
/usr/include/qt3/qprinter.h \
/usr/include/qt3/qprocess.h \
/usr/include/qt3/qprogressbar.h \
/usr/include/qt3/qsemimodal.h \
/usr/include/qt3/qasciicache.h \
/usr/include/qt3/qptrdict.h \
/usr/include/qt3/qcleanuphandler.h \
/usr/include/qt3/qptrqueue.h \
/usr/include/qt3/qptrstack.h \
/usr/include/qt3/qstylesheet.h \
/usr/include/qt3/qradiobutton.h \
/usr/include/qt3/qdial.h \
/usr/include/qt3/qdockarea.h \
/usr/include/qt3/qregexp.h \
/usr/include/qt3/qclipboard.h \
/usr/include/qt3/qrtlcodec.h \
/usr/include/qt3/qlistbox.h \
/usr/include/qt3/qgridview.h \
/usr/include/qt3/qsemaphore.h \
/usr/include/qt3/qprogressdialog.h \
/usr/include/qt3/qsocketdevice.h \
/usr/include/qt3/qsessionmanager.h \
/usr/include/qt3/qsettings.h \
/usr/include/qt3/qsgistyle.h \
/usr/include/qt3/qfontdialog.h \
/usr/include/qt3/qtimer.h \
/usr/include/qt3/qsignalmapper.h \
/usr/include/qt3/qsignalslotimp.h \
/usr/include/qt3/qsimplerichtext.h \
/usr/include/qt3/qwmatrix.h \
/usr/include/qt3/qsizegrip.h \
/usr/include/qt3/qabstractlayout.h \
/usr/include/qt3/qsjiscodec.h \
/usr/include/qt3/qslider.h \
/usr/include/qt3/qsocket.h \
/usr/include/qt3/qserversocket.h \
/usr/include/qt3/qdns.h \
/usr/include/qt3/qsortedlist.h \
/usr/include/qt3/qsound.h \
/usr/include/qt3/qspinbox.h \
/usr/include/qt3/qsplashscreen.h \
/usr/include/qt3/qsplitter.h \
/usr/include/qt3/qsqlerror.h \
/usr/include/qt3/qeditorfactory.h \
/usr/include/qt3/qsqlquery.h \
/usr/include/qt3/qsqlrecord.h \
/usr/include/qt3/qsqldriverplugin.h \
/usr/include/qt3/qsqlindex.h \
/usr/include/qt3/qsqlcursor.h \
/usr/include/qt3/qsqldriver.h \
/usr/include/qt3/qsqlform.h \
/usr/include/qt3/qtable.h \
/usr/include/qt3/qsqlpropertymap.h \
/usr/include/qt3/qsqldatabase.h \
/usr/include/qt3/qdatabrowser.h \
/usr/include/qt3/qsqlresult.h \
/usr/include/qt3/qsqlselectcursor.h \
/usr/include/qt3/qstatusbar.h \
/usr/include/qt3/qmenubar.h \
/usr/include/qt3/qcanvas.h \
/usr/include/qt3/qstrvec.h \
/usr/include/qt3/qinterlacestyle.h \
/usr/include/qt3/qstylefactory.h \
/usr/include/qt3/qstyleplugin.h \
/usr/include/qt3/qtextedit.h \
/usr/include/qt3/qsyntaxhighlighter.h \
/usr/include/qt3/qtabbar.h \
/usr/include/qt3/qtabdialog.h \
/usr/include/qt3/qsqleditorfactory.h \
/usr/include/qt3/qtabwidget.h \
/usr/include/qt3/qtextbrowser.h \
/usr/include/qt3/qbig5codec.h \
/usr/include/qt3/qtextcodecfactory.h \
/usr/include/qt3/qtextcodecplugin.h \
/usr/include/qt3/qmultilineedit.h \
/usr/include/qt3/qtoolbar.h \
/usr/include/qt3/qtextview.h \
/usr/include/qt3/qwaitcondition.h \
/usr/include/qt3/qasyncio.h \
/usr/include/qt3/qfontdatabase.h \
/usr/include/qt3/qmainwindow.h \
/usr/include/qt3/qtoolbox.h \
/usr/include/qt3/qtoolbutton.h \
/usr/include/qt3/qtooltip.h \
/usr/include/qt3/qtsciicodec.h \
/usr/include/qt3/qurl.h \
/usr/include/qt3/qurloperator.h \
/usr/include/qt3/qfiledialog.h \
/usr/include/qt3/qutfcodec.h \
/usr/include/qt3/quuid.h \
/usr/include/qt3/qvalidator.h \
/usr/include/qt3/qasyncimageio.h \
/usr/include/qt3/qvaluestack.h \
/usr/include/qt3/qvaluevector.h \
/usr/include/qt3/qdatatable.h \
/usr/include/qt3/qvbox.h \
/usr/include/qt3/qvbuttongroup.h \
/usr/include/qt3/qvfbhdr.h \
/usr/include/qt3/qvgroupbox.h \
/usr/include/qt3/qthread.h \
/usr/include/qt3/qwhatsthis.h \
/usr/include/qt3/qwidgetintdict.h \
/usr/include/qt3/qfocusdata.h \
/usr/include/qt3/qwidgetplugin.h \
/usr/include/qt3/qwidgetstack.h \
/usr/include/qt3/qcheckbox.h \
/usr/include/qt3/qcompactstyle.h \
/usr/include/qt3/qwizard.h \
/usr/include/qt3/qpainter.h \
/usr/include/qt3/qworkspace.h \
/usr/include/qt3/qlocalfs.h \
/usr/include/qt3/qxml.h \
/usr/include/qt3/private/qcom_p.h \
/usr/include/qt3/private/qucom_p.h \
/usr/include/qt3/private/qgfxdriverinterface_p.h \
/usr/include/qt3/private/qimageformatinterface_p.h \
/usr/include/qt3/private/qisciicodec_p.h \
/usr/include/qt3/private/qkbddriverinterface_p.h \
/usr/include/qt3/private/qlayoutengine_p.h \
/usr/include/qt3/private/qcomlibrary_p.h \
/usr/include/qt3/private/qmousedriverinterface_p.h \
/usr/include/qt3/private/qeffects_p.h \
/usr/include/qt3/private/qgpluginmanager_p.h \
/usr/include/qt3/private/qinternal_p.h \
/usr/include/qt3/private/qsqldriverinterface_p.h \
/usr/include/qt3/private/qsqlmanager_p.h \
/usr/include/qt3/private/qlock_p.h \
/usr/include/qt3/private/qcomponentfactory_p.h \
/usr/include/qt3/private/qstyleinterface_p.h \
/usr/include/qt3/private/qrichtext_p.h \
/usr/include/qt3/private/qsvgdevice_p.h \
/usr/include/qt3/private/qfontcodecs_p.h \
/usr/include/qt3/private/qtextcodecinterface_p.h \
/usr/include/qt3/private/qpsprinter_p.h \
/usr/include/qt3/private/qtitlebar_p.h \
/usr/include/qt3/private/qucomextra_p.h \
/usr/include/qt3/private/qpluginmanager_p.h \
/usr/include/qt3/private/qdir_p.h \
/usr/include/qt3/private/qsettings_p.h \
/usr/include/qt3/private/qsqlextension_p.h \
/usr/include/qt3/private/qdialogbuttons_p.h \
/usr/include/qt3/private/qwidgetinterface_p.h \
/usr/include/qt3/private/qwidgetresizehandler_p.h \
/usr/include/qt3/private/qlibrary_p.h \
/usr/include/qt3/private/qtextengine_p.h

####### Install

install:

uninstall:
 
Old 01-12-2006, 09:46 AM   #11
Mariane
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
This works but it's incredibly slow... About 5 seconds to re-compile 10 lines of code
with one little modification in it...

Well, typing "make" is always slower than typing "g++ <something>", but sometimes it's
only marginally slower. This one is horrible. How long it will take to compile heavier
programs doesn't bear thinking of.

By the way, I tried including -lqt in the g++ command line options, I just didn't include
it here because it didn't work. I tried quite a few permutations (eg changing -L to -I)
but I didn't find any way to make g++ run from the command line with this program.

Thank you to everybody for your help.

Mariane
 
Old 08-26-2006, 07:21 PM   #12
jakob.bebop
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Here's what fixed the same problem for me, only I have Ubuntu:

Code:
qmake -project
qmake
QTDIR=/usr/share/qt3/ make
 
Old 01-13-2008, 07:54 PM   #13
darkbyte
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Slackware 12 works fine

Hello slackware people!!!
I've seen the post, and i decided try the tutorials as a way to remember those times when younger i used to compile manually programs, (4 years ago) and as i can see things have changed...

Anyway, I've been having the same problem, because my linker didn't work fine, until i replace the old-style "-lqt3" for "-lqt-mt". Actually i don't know what "mt" tag means but the next command line compiled all tutorials.

Code:
darkbyte@mobilelinux:~/apps/01$ g++ 01.cpp -o 01 -lX11     -L"$QTDIR"/lib -lqt-mt
Hope, this to be usefull.
 
  


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
Application examples of cdrdao satimis Linux From Scratch 2 09-25-2005 11:43 PM
Mass-Compile C++ examples Worstje Linux - Newbie 0 04-03-2004 04:54 AM
Working examples of dd command satimis Linux - Newbie 2 01-05-2004 07:23 AM
kernel compling examples deneme1984 Linux From Scratch 3 09-15-2003 03:51 AM
IPTables examples? tarballed Linux - Security 7 12-27-2002 10:07 AM

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

All times are GMT -5. The time now is 03:44 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
Open Source Consulting | Domain Registration