Compiling QWT Examples on Windows with MingW32 ?
Hi,
I have followed the INSTALL file that comes with QWT 6.0.1.
I have installed QWT after many trials and errors. It also works with QT Creator (I think, from my vague memory, my main problem was I was trying to make in Cygwin instead of DOS prompt and I also needed to use mingw32-make instead of make. As make defaults to a Borland compiler).
I get my apps to build and run and can use QWT in them.
I would now like to compile the examples so I can see the possibilities. As I am now stuck trying to workout more advanced use of QWT.
qmake seems to work well for the examples.pro. No errors
Then when I run mingw32-make it has the good old cant find -lqwtd error. Which reading from other posts I think it means I don't have debug mode installed?
Any help would be appreciated!
Thanks in advance
Brendan
Re: Compiling QWT Examples on Windows with MingW32 ?
wich operating system are you using
Re: Compiling QWT Examples on Windows with MingW32 ?
Re: Compiling QWT Examples on Windows with MingW32 ?
did your mingw32-make install give any error messages?
i think you should make one line in your pro file.
config +=qwt
if this isnt enough make
one line :
LIBS +=c:/ path to qwtd.dll
are you using qt creator? or designer?
reson why i am asking for operation system is that i am struggeling with
mingw32-make install but im using win 7 64bit.
Re: Compiling QWT Examples on Windows with MingW32 ?
I don't think the install had any errors. Not really keen on trying it again in case I break something.
I use designer to setup the forms etc. All the QWT widgets are there. I'm not currently using Creator.
Maybe you need to setup the environment?
Add QT_PLUGIN_PATH set to c:\Qwt-6.0.1\plugins
And add c:\Qwt-6.0.1\lib to PATH
My Windows XP is only 32bit if it makes any difference.
I will have another try at getting the examples going. I would of thought the examples would work without changes. But yeah maybe they don't know where the qwt.dll is.
Re: Compiling QWT Examples on Windows with MingW32 ?
Quote:
Originally Posted by
grantbj74
Then when I run mingw32-make it has the good old cant find -lqwtd error. Which reading from other posts I think it means I don't have debug mode installed?
Something you don't need for building the examples, when you don't want to debug them.
Your environment you should run into the win32 path ( even if you have win 64 ) - if not find out which qmake specs you are using. Then have a look at qwtbuild.pri:
First disable "CONFIG += silent" at the beginning of qwtbuild.pri. Then you will see what is going on when building Qwt and the examples - and probably what is going wrong.
For win32 you find the following lines:
CONFIG += debug_and_release
CONFIG += build_all
These lines are responsible for what versions of Qwt will be built. F.e. you can replace them by "CONFIG += release". See the qmake reference manual for more details.
Note that the examples are linked against the libraries from the local build - not the installed versions. So you can setup a second directory where you do a make ( no make install ) without breaking your installed version. When you enable "QWT_CONFIG += QwtExamples" in qwtconfig.pri the examples are built together with the libs.
Uwe