A
A
al314152014-05-24 15:00:51
Qt
al31415, 2014-05-24 15:00:51

Building qwt and qwtpolar under Windows

Good day. There was a need for an application to draw a polar diagram.
Found a plugin but didn't figure out how to use it.
I assembled qwt normally, when I started building qwtpolar, a message appeared that one of the files was not found, it is in the directory with qwt. I tried to transfer the qwtpolar folder to the qwt folder and compile it,
but nothing happened. Can you suggest what needs to be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
EXL, 2014-05-24
@al31415

@al31415
There is an INSTALL file in the qwtpolar sources, by reading which I figured out how to compile this library.
My config:
Qt 5.2.1, MinGW 4.8.0
Qwt-6.1.0 (qwt-6.1.0.tar.bz2)
Qwtpolar-1.1.0 (qwtpolar-1.1.0.tar.bz2)
I unpacked "qwt-6.1 .0.tar.bz2" to the "C:\Qt\Build" directory, then corrected the "qwtconfig.pri" file as follows:

diff -Naur qwt-6.1.0/qwtconfig.pri qwt-6.1.0_m/qwtconfig.pri
--- qwt-6.1.0/qwtconfig.pri	Thu May 30 22:18:27 2013
+++ qwt-6.1.0_m/qwtconfig.pri	Sun May 25 00:49:50 2014
@@ -23,7 +23,7 @@
 }
 
 win32 {
-    QWT_INSTALL_PREFIX    = C:/Qwt-$$QWT_VERSION
+    QWT_INSTALL_PREFIX    = C:/Qt/Qwt-$$QWT_VERSION
 }
 
 QWT_INSTALL_DOCS      = $${QWT_INSTALL_PREFIX}/doc

After the fix, I launched the command line from the Start menu (Qt 5.2.1->5.2.1->MinGW 4.8 (32-bit)->Qt 5.2.1 for Desktop (MinGW 4.8 32 bit)) with the environment variables necessary for compilation , went to the "C:\Qt\Build\qwt-6.1.0" directory on the command line, built the qwt library and then installed:
qmake qwt.pro
mingw32-make -j3
mingw32-make install

After successfully building qwt, I unpacked the "qwtpolar-1.1.0.tar.bz2" archive into the "C:\Qt\Build" directory, then corrected the "qwtpolarconfig.pri" file as follows:
diff -Naur qwtpolar-1.1.0/qwtpolarconfig.pri qwtpolar-1.1.0_m/qwtpolarconfig.pri
--- qwtpolar-1.1.0/qwtpolarconfig.pri	Fri Jan 31 15:23:39 2014
+++ qwtpolar-1.1.0_m/qwtpolarconfig.pri	Sun May 25 01:06:57 2014
@@ -20,7 +20,7 @@
 }
 
 win32 {
-    QWT_POLAR_INSTALL_PREFIX    = C:/QwtPolar-$$QWT_POLAR_VERSION
+    QWT_POLAR_INSTALL_PREFIX    = C:/Qt/QwtPolar-$$QWT_POLAR_VERSION
 }
 
 QWT_POLAR_INSTALL_DOCS      = $${QWT_POLAR_INSTALL_PREFIX}/doc

Then, on the command line, I went to the directory "C:\Qt\Build\qwtpolar-1.1.0" and started building:
qmake -set QMAKEFEATURES "c:/Qt/Qwt-6.1.0/features"
qmake qwtpolar.pro
mingw32-make -j3
mingw32-make install

Everything compiled and installed fine for me. I didn’t apply patches, I didn’t act according to the article, maybe it’s corny outdated. If there are questions - ask. As I understand it, for normal compilation, you just need to run:
Before building the library.

A
al31415, 2014-05-24
@al31415

just in case, I will indicate the article that I was guided by.
1 logs
2 qwt.pri
3 f:\Qt\Qwt-6.1.0\

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question