PDA

View Full Version : QWT install for Windows with MINGW



porucznik
12th August 2009, 14:36
I have similar problem to described here http://www.qtcentre.org/forum/f-qwt-23/t-qwt-install-for-windows-with-visual-studio-2005-23037.html but with MINGW. I execute following from cmd:

qmake qwt.pro

C:\Qt\qwt-5.2.0>mingw32-make
cd src\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/qwt-5.2.0/src'
mingw32-make -f Makefile.Release
mingw32-make[2]: Entering directory `C:/Qt/qwt-5.2.0/src'
g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -s
hared -Wl,--out-implib,..\lib\libqwt5.a -o ..\lib\qwt5.dll object_script.qwt.Release -L"c:\Qt\2009.
03\qt\lib" obj\qwt_resource_res.o -lQtDesigner -lQtScript -lQtXml -lQtGui -lgdi32 -lcomdlg32 -loleau
t32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladv
api32 -lws2_32
C:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\. .\..\..\..\mingw32\bin\ld.exe: cannot find -lQtDes
igner
collect2: ld returned 1 exit status
mingw32-make[2]: *** [..\lib\qwt5.dll] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/qwt-5.2.0/src'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/qwt-5.2.0/src'
mingw32-make: *** [sub-src-make_default] Error 2

C:\Qt\qwt-5.2.0>

QT 2009.03 is installed in C:\qt\2009.03\ (static compilation!)

I edited qwtconfig.pri file as following:

unix {
INSTALLBASE = /usr/local/qwt-5.2.0
}

win32 {
INSTALLBASE = C:\Qt\qwt-5.2.0
}

target.path = $$INSTALLBASE/lib
headers.path = $$INSTALLBASE/include
doc.path = $$INSTALLBASE/doc

INCLUDEPATH += C:\Qt\2009.03\qt\include\QtDesigner
CONFIG += designer plugin
TARGET = $$qtLibraryTarget($$TARGET)
TEMPLATE = lib
INSTALLS += target

and added C:\Qt\2009.03\mingw\bin;C:\Qt\2009.03\qt\bin;C:\Qt \CMake 2.6\bin;C:\Qt\2009.03\qt\lib to PATH.

I asked for help on QWT Mailing list but no one can help me :( :( :(

If anyone have any idea what to do with this problem, please write!

rockballad
22nd October 2009, 07:44
Why don't you try Qt Creator? It's much easier.

z_enoch
25th July 2011, 04:34
hello!, The QWT exemple can not run, "The process could not be started!", and I am hoping to give some guidance
I am using win7 +Qt Creator,
Download QWT from https://qwt.svn.sourceforge.net/svnroot/qwt by SVN,using "qmake && mingw32-make &&mingw32-make install " to build it.

3Q.

rajeevsahu
25th July 2011, 09:24
hi,

I followed the following link, to build qwt library for symbian devcies, I mean for Nokia Qt SDK using Qt creator:
http://www.qtcentre.org/archive/index.php/t-41470.html?

but i am getting build errors...

Any idea how to use qwt-6.0.0 library in Qt creator for symbian devices...

Thanks...

Uwe
25th July 2011, 10:38
but i am getting build errors...
What about posting these errors ?

Uwe

rajeevsahu
25th July 2011, 12:14
What about posting these errors ?

Uwe

Hey,

I am getting the error like:


moc qwt_designer_plugin.h

qwt_designer_plugin.h(24): Error: Undefined interface

make[3]: *** [moc\moc_qwt_designer_plugin.cpp] Error 1

followed by other errors.
Please let me know if you are able to figure out the reason.

Note: As mentioned I am building this qwt library to be used for Symbian devices build.

Thanks a lot....

Uwe
25th July 2011, 13:01
Exclude building the designer plugin - it is of no use in your environment ( there is no designer ).
Simply remove the line"QWT_CONFIG += QwtDesigner" from qwtconfig.pri.

Uwe

rajeevsahu
25th July 2011, 14:16
Exclude building the designer plugin - it is of no use in your environment ( there is no designer ).
Simply remove the line"QWT_CONFIG += QwtDesigner" from qwtconfig.pri.

Uwe

I just commented the line and build the library again. Now I am getting following errors and the warnings:



WARNING: Frozen .def file \Qt\QwtLibrary\qwt\src\eabi\qwtu.def not found - project not frozen
WARNING: Frozen .def file \Qt\QwtLibrary\qwt\textengines\mathml\eabi\qwtmath mlu.def not found - project not frozen

multiple definition of 'vtable for QwtScaleTransformation' ...
.....
.....Similar errors in .o files


Any clues...

Uwe
25th July 2011, 14:23
Remove "CONFIG += silent" from qwtbuild.pri an check the command you are using for linking.

Uwe

PS: Guess nobody ever tried to build Qwt for symbian