Compiling projects
-
Hi,
I'm new of this forum.I try to compile a project made by an other one. I've installed QT Creator 2.0.1 and mingw 4.5.2 to build it.
I obtained this error messages:c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lQtXml4
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lQtGui4
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lQtCore4
How can I manage this?
Thanks!!
-
bq. I try to compile a project made by an other one. I’ve installed QT Creator 2.0.1 and mingw 4.5.2 to build it.
Have you installed Qt?
-
"QT += xml" was originally written in the pro file.
this is what I've done:- install the QT SDK
- install mingw
- run configure.exe under "C:\Qt\2010.05\qt"
- open project
- build->run qmake and it return this messages:
Starting: "c:/qt/2010.05/qt/bin/qmake.exe" C:/Develop/TEST/J6PROJ/J6PROJ.pro -r -spec win32-g++ c:\Qt\2010.05\qt\bin\rcc.exe: File does not exist '..\J6PROJ.qrc'
c:\Qt\2010.05\qt\bin\rcc.exe: File does not exist '..\J6PROJ.qrc'
The process "c:/qt/2010.05/qt/bin/qmake.exe" exited normally.
And this warning:
Qmake does not support build directories below the source directory- After that I build project build->Build Project and obtain that errors.
Thanks.
-
Here the pro file:
@
-------------------------------------------------
Project created by QtCreator 2009-07-02T09:25:39
-------------------------------------------------
QT += xml
TARGET = MNCF
TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += ./COM
INCLUDEPATH += ./DIO
QMAKE_LIBDIR += ../COM
QMAKE_LIBDIR += ../DIO
SOURCES += main.cpp
mainwindow.cpp
com.cpp
db.cpp
rf.cpp
pf.cpp
pmf.cpp
wf.cpp
cf.cpp
kf.cpp
kb.cpp
jp.cpp
pfm.cpp
ppfm.cpp
mf.cpp
bcf.cpp
stf.cpp
lng.cpp
jc.cpp
HEADERS += mainwindow.h
com.h
db.h
rf.h
pf.h
pmf.h
wf.h
cf.h
kf.h
kb.h
jp.h
pfm.h
ppfm.h
mf.h
bcf.h
stf.h
lng.h
jc.h
FORMS += mainwindow.ui
rf.ui
pf.ui
pmf.ui
wf.ui
cf.ui
kf.ui
pfm.ui
ppfm.ui
mf.ui
bcf.ui
stf.ui
OTHER_FILES += big
imm
a.jpg
med
imm.jpg
RESOURCES += J6PROJ.qrc
LIBS += -lqextserialport
LIBS += -lEIODll
unix:DEFINES = TTY_POSIX
win32:DEFINES = TTY_WIN
QWT_DLL
QT_DLL
win32:RC_FILE = app.rc
@ -
-
IMO, this sounds like the path doesn't contain the route to the libraries, so they aren't being found. If this is the case, maybe using -Lfulllibroute instead of -llibname could be useful (-L full lib route, -l library name). Also, I don't know which $PATH(s) mingw's ld looks into...
--
-
I've uninstall Qt sdk and minigw and reinstall only Qt sdk.
I've load my project, run qmake and build project obtaining a lot of error like:_undefined reference to
__gxx_personality_sj0'_ _undefined reference to
Unwind_SjLj_Register'
_undefined reference to_Unwind_SjLj_Unregister'_ _undefined reference to
Unwind_SjLj_Resume'It seems like a non correct library link.
-
After such a tremendous software removal and reinstallation... a full clean build is recommended, IMHO.
--
-
I have reinstalled the Qt SDK and after compile my project I obtained this errors:
./release\moc_mainwindow.o:moc_mainwindow.cpp:(.text+0xb7): undefined reference to `__gxx_personality_sj0'
./release\moc_mainwindow.o:moc_mainwindow.cpp:(.text+0xca): undefined reference to `_Unwind_SjLj_Register'
./release\moc_mainwindow.o:moc_mainwindow.cpp:(.text+0x113): undefined reference to `_Unwind_SjLj_Unregister'
./release\moc_mainwindow.o:moc_mainwindow.cpp:(.text+0xa76): undefined reference to `_Unwind_SjLj_Resume'
for each file.
How can manage this? Which library contain that reference?
Please help!