PDA

View Full Version : Problems building qwt



P@u1
4th July 2011, 10:00
Hi everyone,

I just downloaded the newest qwt version (6.0.0) and tried to build it with msvc.
I started the visual studio 2008 command prompt,
cd'ed to the qwt directory and entered
"qmake qwt.pro"
(this worked fine)
and then
"nmake"
It compiled for a while and then this error occured:
Failed to open "c:\Qt\4.7.2\lib\QtDesignerd4.lib" (I translated it from german)
I looked in the folder and indeed there is no such file.
Do I need a newer Qt-Version or what is the problem here?
I'm using 4.7.2, the newest is 4.7.3, is really 4.7.3 required?
Edit: on their website i found:
"Qwt 6.x might be usable in all environments where you find Qt. It is compatible with Qt >= 4.4."

Thanks for help in advance!

hypnotic401
5th July 2011, 20:46
It seems like you are compiling the debug and release versions of the libraries. If you built you Qt in release mode only than you must build the qwt libraries in release mode only. If you ever see a "d" before the lib number (what you have just mentioned as missing). Edit your qwtbuild.pri to disable the debug_and_release and the build_all config like this:


win32 {
# On Windows you can't mix release and debug libraries.
# The designer is built in release mode. If you like to use it
# you need a release version. For your own application development you
# might need a debug version.
# Enable debug_and_release + build_all if you want to build both.

#CONFIG += debug_and_release
#CONFIG += build_all
}


CONFIG += release

VER_MAJ = $${QWT_VER_MAJ}
VER_MIN = $${QWT_VER_MIN}
VER_PAT = $${QWT_VER_PAT}
VERSION = $${QWT_VERSION}

(Note that you should probably remove the else claus-Just the word else and the brackets enclosing the block, if you do not do this I believe it will default back to the debug_and_release options)

That should do it for you. If, later on down the road, you decide to build debug libraries you must reconfigure and re compile Qt as a debug_and_release. The version of Qt should not matter as long as it is 4.7.X.

P@u1
6th July 2011, 08:38
I need both debug and release libraries.

I have a precompiled qt version with both debug and release.

As I wrote in the edit above it now got it working with 4.7.3.
In my 4.7.2 some files where missing for some reason...

hypnotic401
7th July 2011, 17:24
Wierd!! I build my Qt libraries from source so thats probably why I have never encountered a missing files situation. Glad you got it working!