Hi Richard:

On 2011-05-26 17:23+0100 Richard Jackson wrote:

> I have a Plplot-5.9.7/Qt application running well under Fedora 14 and I am
> now trying to port it to Windows using MinGW.
> Following the instructions at
> http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_M
> inGW/CLI ....
>
> I downloaded and installed Qt_SDK_Windows_online_v1_1_en.exe from
> http://qt.nokia.com/downloads/sdk-windows-cpp and checked I can build Qt
> applications without Plplot OK.
> I downloaded and installed cmake from
> http://www.cmake.org/cmake/resources/software.html.
> I added C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin\ and C:QtSDK\mingw\bin to my
> PATH variable.
>
> In the build directory I ran cmake -G "MinGW Makefiles"
> -DCMAKE_INSTALL_PREFIX=install ..
> It runs through OK until it gets to
>
> Scanning dependencies of target test-drv-info
> [ 83%] Building C object
> drivers/CMakeFiles/test-drv-info.dir/test-drv-info.c.obj
> Linking C executable ..\dll\test-drv-info.exe
> [ 83%] Built target test-drv-info
> Scanning dependencies of target xfig
> [ 85%] Building C object drivers/CMakeFiles/xfig.dir/xfig.c.obj
> Linking C shared module ..\dll\xfig.dll
> [ 85%] Built target xfig
> Scanning dependencies of target test_xfig_dyndriver
> [ 85%] Generating test_dyndrivers_dir/xfig.rc
> [ 87%] Built target test_xfig_dyndriver
> Scanning dependencies of target test_qt_dyndriver
> [ 87%] Generating test_dyndrivers_dir/qt.rc
>
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
>
> Running the make again with VERBOSE=1 I see the line
> [ 87%] Generating test_dyndrivers_dir/qt.rc
> cd C:\plplot-5.9.7\build\drivers && ..\dll\test-drv-info.exe qt >
> C:/plplot-5.9.7/build/drivers/test_dyndrivers_dir/qt.rc
>
> I checked the test-drv-info.c and added some debug printf's to it which
> indicate it is returning normally with no error.
> The contents of qt.rc are:
> bmpqt:Qt Windows bitmap driver:0:qt:66:bmpqt
> jpgqt:Qt jpg driver:0:qt:67:jpgqt
> pngqt:Qt png driver:0:qt:68:pngqt
> ppmqt:Qt ppm driver:0:qt:69:ppmqt
> tiffqt:Qt tiff driver:0:qt:70:tiffqt
> svgqt:Qt SVG driver:0:qt:71:svgqt
> qtwidget:Qt Widget:1:qt:72:qtwidget
> epsqt:Qt EPS driver:0:qt:73:epsqt
> pdfqt:Qt PDF driver:0:qt:74:pdfqt
> extqt:External Qt driver:0:qt:75:extqt
> memqt:Memory Qt driver:0:qt:76:memqt

That result is correct (i.e., the same as I get on Linux).

Could you confirm (1) when you run

..\dll\test-drv-info.exe qt >
C:/plplot-5.9.7/build/drivers/test_dyndrivers_dir/qt.rc

by hand there are no errors and you produce the above good result,
while if (2) you run the same command automatically via cmake and
"make VERBOSE=1" _in a fresh build directory_ you get run-time errors?
If so, then the next question is what (e.g., PATH) is different
between the two cases? Also, for the second case with run-time errors
do you get the above qt.rc result or no result at all?

>
> I am running 64 bit Windows 7.
>
> So, can anyone help me with this, has anyone succeeded in running Plplot
> with Qt under Windows 7?

I am not sure whether it is related or not, but my own tests of the qt
device under wine (the free [in both senses] implementation of Windows
that is available under Linux) have been problematic.  When I tried it
for an old version of MinGW it worked fine.  But once I moved to the
modern version of MinGW (4.5.0-1) installed with the automatic
mingw/msys installer, the qt device driver quit working.  The
(linking) issue was that the nokia downloadable Qt SDK contained an
old version of MinGW that was incompatible with MinGW (4.5.0-1). This
result was for a number of months ago, and I am sure that both MinGW
and Qt SDK have been updated since, and they may be compatible now.
But the point is that the version of MinGW in the Qt SDK should be the
same as the version of MinGW that you have downloaded independently in
order to get reliable results.  Note that independent download and
install of MinGW is necessary if you are interested in more languages
(such as Fortran and Ada) than those supported by the Qt SDK version of
MinGW.  But if you are only interested in C and C++, I assume you
could manipulate your PATH so that you exclusively used the Qt SDK
version of MinGW.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to