PDA

View Full Version : Qwt based project compile problem



MarkoSan
28th September 2009, 15:08
Hi to all!

I have a Qt project using Qwt API. Once I try to compile this project, I get following error:
Running build steps for project PresernMkI... Starting: C:/Qt/2009.03/qt/bin/qmake.exe C:/Documents and Settings/markofr/Desktop/PresernMkI/PresernMkI.pro -spec win32-g++ -r
Exited with code 0.
Starting: C:/Qt/2009.03/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `C:/Documents and Settings/markofr/Desktop/PresernMkI'
C:/Qt/2009.03/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/Desktop/PresernMkI'
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"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"includes" -I"..\..\..\..\qwt\src" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\main.o src\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"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"includes" -I"..\..\..\..\qwt\src" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\mainwindow.o src\mainwindow.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"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"includes" -I"..\..\..\..\qwt\src" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\centralwidget.o src\centralwidget.cpp
C:/Qt/2009.03/qt/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"includes" -I"..\..\..\..\qwt\src" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -D__GNUC__ -DWIN32 includes\mainwindow.h -o debug\moc_mainwindow.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"..\..\..\..\Qt\2009.03\qt\include\QtCore" -I"..\..\..\..\Qt\2009.03\qt\include\QtGui" -I"..\..\..\..\Qt\2009.03\qt\include" -I"includes" -I"..\..\..\..\qwt\src" -I"..\..\..\..\Qt\2009.03\qt\include\ActiveQt" -I"debug" -I"..\..\..\..\Qt\2009.03\qt\mkspecs\win32-g++" -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\PresernMkI.exe debug/main.o debug/mainwindow.o debug/centralwidget.o debug/moc_mainwindow.o -L"c:\Qt\2009.03\qt\lib" -lmingw32 -lqtmaind -Llib -lqwtd5.dll -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/Desktop/PresernMkI'
mingw32-make: Leaving directory `C:/Documents and Settings/markofr/Desktop/PresernMkI'
C:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lqwtd5.dll
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\PresernMkI.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project PresernMkI
When executing build step 'Make'Here is my .pro file:
# -------------------------------------------------
# Project created by QtCreator 2009-09-28T13:58:55
# -------------------------------------------------
TARGET = PresernMkI
TEMPLATE = app
INCLUDEPATH = includes \
/qwt/src
SOURCES += src/main.cpp \
src/mainwindow.cpp \
src/centralwidget.cpp
HEADERS += includes/mainwindow.h \
includes/centralwidget.h
LIBS+=-Llib -lqwtd5.dllHere is my project's dir structure:
c:\Documents and Settings\markofr\Desktop\PresernMkI>tree /f
Folder PATH listing
Volume serial number is 88AD-BE5C
C:.
│ Makefile
│ Makefile.Debug
│ Makefile.Release
│ PresernMkI.pro
│ PresernMkI.pro.user

├───debug
│ centralwidget.o
│ main.o
│ mainwindow.o
│ moc_mainwindow.cpp
│ moc_mainwindow.o

├───includes
│ centralwidget.h
│ mainwindow.h

├───lib
│ libqwtd5.a
│ qwtd5.dll

├───release
├───src
│ centralwidget.cpp
│ main.cpp
│ mainwindow.cpp

└───ui

c:\Documents and Settings\markofr\Desktop\PresernMkI>So, why linker does not find qwt dll file?


Sincerely,
Marko