I have downloaded and installed the Eclipse 3.3 and the Qt Eclipse Integration for Windows. I need a Qt package and I am asking for recommendations.
Thanks,
Bob
I have downloaded and installed the Eclipse 3.3 and the Qt Eclipse Integration for Windows. I need a Qt package and I am asking for recommendations.
Thanks,
Bob
Last edited by satlcard12; 27th November 2007 at 03:11. Reason: updated contents
Jacek,
Now i got debug libreries builded. When i build them i get other errors..
And some other weid error like the ones i got before to link network module to my project.mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and Settings/Eric Draven/workspace/qpop3'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\4.3.2\include\QtCore" -I"d:\Qt\4.3.2\include\QtCore" -I"d:\Qt\4.3.2\include\QtGui" -I"d:\Qt\4.3.2\include\QtGui" -I"d:\Qt\4.3.2\include" -I"core" -I"gui" -I"network" -I"d:\Qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"d:\Qt\4.3.2\mkspecs\win32-g++" -o debug\main.o main.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"d:\Qt\4.3.2\include\QtCore" -I"d:\Qt\4.3.2\include\QtCore" -I"d:\Qt\4.3.2\include\QtGui" -I"d:\Qt\4.3.2\include\QtGui" -I"d:\Qt\4.3.2\include" -I"core" -I"gui" -I"network" -I"d:\Qt\4.3.2\include\ActiveQt" -I"debug" -I"." -I"d:\Qt\4.3.2\mkspecs\win32-g++" -o debug\qpop3.o qpop3.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o "debug\qpop3.exe" debug\main.o debug\qpop3.o -L"d:\Qt\4.3.2\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
debug\qpop3.o(.text+0x11f): In function `ZN5QPop3C2EP7QObject':
C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:7: undefined reference to `vtable for QPop3'
debug\qpop3.o(.text+0x145): In function `ZN5QPop3C1EP7QObject':
C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:7: undefined reference to `vtable for QPop3'
debug\qpop3.o(.text+0x1b5): In function `ZN5QPop37connectER7QStringt':
C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:19: undefined reference to `_imp___ZN10QTcpSocketC1EP7QObject'
debug\qpop3.o(.text+0x239):C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:22: undefined reference to `_imp___ZN15QAbstractSocket13connectToHostERK7QStr ingt6QFlagsIN9QIODevice12OpenModeFlagEE'
debug\qpop3.o(.text+0x2d3): In function `ZN5QPop315socketConnectedEv':
C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:37: undefined reference to `QPop3::ConnStateChanged(int)'
debug\qpop3.o(.text+0x2f5): In function `ZN5QPop311socketErrorEN15QAbstractSocket11SocketE rrorE':
C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:49: undefined reference to `QPop3::ConnStateChanged(int)'
debug\qpop3.o(.text+0x310):C:/Documents and Settings/Eric Draven/workspace/qpop3/qpop3.cpp:52: undefined reference to `QPop3::ConnStateChanged(int)'
collect2: ld returned 1 exit status
mingw32-make[1]: Leaving directory `C:/Documents and Settings/Eric Draven/workspace/qpop3'
mingw32-make[1]: *** [debug\qpop3.exe] Error 1
mingw32-make: *** [debug] Error 2
Thinking that coudl be mingw vesion, i build all ( qt and qt debug ) with the same version but get the same..
Thanks!
Both are done. I got qtnetwork module, and Q_OBJECT declared inside QPop3. This starts just after i builded debug libraries.For some reason you don't link your project with QtNetwork module again. Also make sure that there's Q_OBJECT macro inside QPop3 definition (you will have to run qmake after adding it).
thanks
I done qmake several times, maybe there's something wrong with my code?
Qt Code:
#ifndef __POP3_H_INCLUDED__ #define __POP3_H_INCLUDED__ #include <QtGui/QWidget> //#include "ui_qpop3.h" #include <QDialog> #include <QtCore/QObject.h> //#include <QTnetwork> #include <QTnetwork/QTcpSocket.h> //#include <QTcpSocket> #include <QtCore/qstring.h> { Q_OBJECT private: QTcpSocket *socket; public: enum ConnectState{ CsHostFound, CsConnected, CsClosed, CsHostNotFound, CsConnectionRefused }; // Constructor virtual ~QPop3(); signals: void ConnStateChanged(int); private slots: void socketConnected(); }; #endifTo copy to clipboard, switch view to plain text mode
Thanks once again
I've installed Qt-Eclipse integration on my system. It seems that as long as you have a correct .pro file, "Build Project" or "Build Make Target..." should do the magic. Eclipse is quite unstable on my system and I couldn't make Qt Project Editor to run, so I don't know how it looks like, but you can also open your .proi file in text editor to check if it's OK --- all your .h files should be listed in HEADERS variable, .cpp files in SOURCES and .ui files in FORMS. Also QT should contain at least "core", "gui" and "network".
I created another project, and put back the files and then all worked.
I supposed, as you said, .pro file was wrong but this is the next level :P
Thanks for all![]()
Bookmarks