[Qt-interest] Problem in compilation for terminal

Jonathan Finlay jmfinlayp at gmail.com
Wed Mar 10 13:42:16 CET 2010


ok, i include QT+network and the output change but i got a new problem:

/usr/bin/qmake-qt4 -unix -o Makefile ftp.pro
g++  -o ftp ftpwindow.o main.o moc_ftpwindow.o    -L/usr/lib/qt4/lib -lQtGui
-L/usr/lib/mysql -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor
-lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lQtCore -lz -lm
-ldl -lpthread
main.o: In function `main':
main.cpp:(.text+0x28): undefined reference to `qInitResources_ftp()'
collect2: ld devolvió el estado de salida 1
make: *** [ftp] Error 1


2010/3/10 Peter M. Groen <pgroen at osdev.nl>

>
> Do you have "network" included in your config-section of your .pro file?
>
> --
> Open Systems Development
> Peter M. Groen
> Het Buitenwater 54
> 2235 TB  Valkenburg (ZH)
> Mob   : +31-6-29563390
> Email : pgroen at osdev.nl
> Skype : peter_m_groen
>
> Jonathan Finlay wrote:
> > Hi, I got a problem when I try  to compile from terminal, i do qmake-qt4
> > &&
> > qmake && make but in the make i have this out put:
> >
> > g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DQT_NO_DEBUG -DQT_GUI_LIB
> > -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I.
> > -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtCore
> > -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtGui
> > -I/usr/lib/qt4/include -I. -I. -I. -o ftpwindow.o ftpwindow.cpp
> > g++  -o ftp ftpwindow.o main.o moc_ftpwindow.o    -L/usr/lib/qt4/lib
> > -lQtGui
> > -L/usr/lib/mysql -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor
> > -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -ldl
> > -lpthread
> > ftpwindow.o: In function `FtpWindow::cdToParent()':
> > ftpwindow.cpp:(.text+0x2e1): undefined reference to `QFtp::cd(QString
> > const&)'
> > ftpwindow.cpp:(.text+0x315): undefined reference to `QFtp::list(QString
> > const&)'
> > ftpwindow.cpp:(.text+0x34b): undefined reference to `QFtp::cd(QString
> > const&)'
> > ftpwindow.o: In function `FtpWindow::processItem(QTreeWidgetItem*, int)':
> > ftpwindow.cpp:(.text+0x11d1): undefined reference to `QFtp::cd(QString
> > const&)'
> >
> > Any body know what is wrong?
> >
> > --
> > Jonathan.
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
>


-- 
Jonathan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100310/4064b81c/attachment.html 


More information about the Qt-interest-old mailing list