gbm19 / qwt5-qt5

Qwt5 using Qt5
Other
2 stars 3 forks source link

Building issue with Visual Studio 2017 #3

Open Suthiro opened 4 years ago

Suthiro commented 4 years ago

I tried to build the library with MSVC x64 compiler (Visual Studio 2017) under Windows 7 x64. The QT is built in the same environment. The simple way

SET PATH=%PathToQt%\bin;%PATH%
qmake
nmake

does not work, nmake exits with code 0x2 when building a designer plugin. It fails looking for qwt5-qt5.lib file. At this step there are qwt5-qt55.dll and qwt5-qt5.prl in \lib. There is nothing more. I tried to manually edit qwt.pro to prevent building of plugin, nmake exits successfully, no lib files appear. nmake install fails copying \lib\pkgconfig\qwt5-qt5.pc since there is no pkgconfig directory (or anything except two files listed above) in lib. Is this behaviour correct? I expected to get qwt5-qt5.dll (without trailing 5) and qwt5-qt5.lib for linker. Could you please clarify how one is supposed to correclty build the library under Windows using MSVC compiler? Thank you very much!

gbm19 commented 4 years ago

Modify lines 91 and 130 in file 'qwtconfig.pri' to get a static lib without designer plugins.

Suthiro commented 4 years ago

It is not exactly what I'd like to achieve, but looks like it is the best variant, thank you! Also please note that with CONFIG+=QwtDll the qwt5-qt55.dll has size of 97KB (compared to 2985KB of qwt5-qt5.lib) and exports nothing (checked it with dumpbin). nmake install fails with the same error even using the edited qwtconfig.pri.