Hi, I downloaded QT from nokia.qt.com(the version 4.6.3) and at first, I didn't configure it(because I didn't knew it had to be done), added the environment vars and everything worked fine. Then I wanted to try Phonon, so I googled it, and tried configuring it and everything, and since then, everything went downhill, I get lots of errors trying to compile files that I had compiled and runned before. I uninstalled and re-installed QT, configured it in different ways and now I dont seem to get it work. It opens QT Creator and everything, but the code(if Im doing pure code) doesn't compile.
Trying to compile this simple code:
#include <QtGui>
int main(int argc, char *argv[])
{
QLabel label
("Hello, world!");
label.show();
return app.exec();
}
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel label("Hello, world!");
label.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
here's what I get:
make -f Makefile.Debug all
make[1]: Entering directory `C:/Qt/4.6.3/qt/pa'
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"..\in
clude\QtCore" -I"..\include\QtGui" -I"..\include" -I"." -I"..\include\ActiveQt"
-I"tmp\moc\debug_shared" -I"c:\Program Files (x86)\Microsoft DirectX SDK (June 2
010)\Include" -I"c:\Program Files\Microsoft SDKs\Windows\v7.1\Include" -I"c:\Pro
gram Files\Microsoft SDKs\Windows\v6.1\Include" -I"c:\Program Files (x86)\Glade\
include" -I"..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
main.cpp:9:2: warning: no newline at end of file
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\pa.exe tmp/obj/debug_shared/mai
n.o -L"c:\Qt\4.6.3\qt\lib" -L"c:\Program Files\Microsoft SDKs\Windows\v6.1\Lib"
-L"c:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" -L"c:\Program Files (x86)\
Microsoft DirectX SDK (June 2010)\Lib" -L"c:\Qt\4.6.3\qt\lib" -lmingw32 -lqtmain
d -lQtGuid4 -lQtCored4
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x64):../../include/QtCore/.
./../src/corelib/tools/qvector.h:410: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x12a):C:\qt-greenhouse\Trol
ltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\win
main/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
Vector<char*>::realloc(int, int)]+0x1a1):../../include/QtCore/../../src/corelib/
tools/qvector.h:482: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
Vector<char*>::realloc(int, int)]+0x1dc):../../include/QtCore/../../src/corelib/
tools/qvector.h:483: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.eh_frame+0x12): In function `Z4qM
inIiERKT_S2_S2_':
../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:95: undefined refer
ence to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make[1]: *** [debug\pa.exe] Error 1
make[1]: Leaving directory `C:/Qt/4.6.3/qt/pa'
make: *** [debug-all] Error 2
make -f Makefile.Debug all
make[1]: Entering directory `C:/Qt/4.6.3/qt/pa'
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"..\in
clude\QtCore" -I"..\include\QtGui" -I"..\include" -I"." -I"..\include\ActiveQt"
-I"tmp\moc\debug_shared" -I"c:\Program Files (x86)\Microsoft DirectX SDK (June 2
010)\Include" -I"c:\Program Files\Microsoft SDKs\Windows\v7.1\Include" -I"c:\Pro
gram Files\Microsoft SDKs\Windows\v6.1\Include" -I"c:\Program Files (x86)\Glade\
include" -I"..\mkspecs\win32-g++" -o tmp\obj\debug_shared\main.o main.cpp
main.cpp:9:2: warning: no newline at end of file
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\pa.exe tmp/obj/debug_shared/mai
n.o -L"c:\Qt\4.6.3\qt\lib" -L"c:\Program Files\Microsoft SDKs\Windows\v6.1\Lib"
-L"c:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" -L"c:\Program Files (x86)\
Microsoft DirectX SDK (June 2010)\Lib" -L"c:\Qt\4.6.3\qt\lib" -lmingw32 -lqtmain
d -lQtGuid4 -lQtCored4
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x64):../../include/QtCore/.
./../src/corelib/tools/qvector.h:410: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x12a):C:\qt-greenhouse\Trol
ltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\win
main/qtmain_win.cpp:135: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
Vector<char*>::realloc(int, int)]+0x1a1):../../include/QtCore/../../src/corelib/
tools/qvector.h:482: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[Q
Vector<char*>::realloc(int, int)]+0x1dc):../../include/QtCore/../../src/corelib/
tools/qvector.h:483: undefined reference to `_Unwind_Resume'
c:\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o)(.eh_frame+0x12): In function `Z4qM
inIiERKT_S2_S2_':
../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:95: undefined refer
ence to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make[1]: *** [debug\pa.exe] Error 1
make[1]: Leaving directory `C:/Qt/4.6.3/qt/pa'
make: *** [debug-all] Error 2
To copy to clipboard, switch view to plain text mode
And here are my environment variables:
Include .- C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;C:\Program Files\Microsoft SDKs\Windows\v7.1\Include;C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;C:\Program Files (x86)\Glade\include
Lib .- C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib;;C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib
Path .- C:\Program Files (x86)\java\jre6\bin;C:\MinGW;C:\Qt\4.6.3\qt\bin;C: \Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files (x86)\Dev-Cpp\bin;C:\Program Files (x86)\Glade\bin
QMAKESPEC .- win32-g++
and QTDIR.- C:\Qt\4.6.3
Can anybody point me as to what I did wrong? Thanks for taking the time to read this and trying to help
Bookmarks