Hi, I also managed to make python bindings work on windows, at least for the MinGW compiler. How did I get there:
* Download and install Python 2.4.4 ! (not 2.5) from http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi * Download and install the old Numeric package Numeric-24.2.win32-py2.4.exe from http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=1351 The numeric package is not available for 2.5 * Than, as usual we need to set some variables: set PYTHONDIR=C:\DevZone\Python24 set PATH=%PYTHONDIR%;%PATH% set CMAKE_INCLUDE_PATH=%PYTHONDIR%\Lib\site-packages\Numeric\Numeric_headers\Numeric * Cmake should than find everything and turn python bindings on, if SWIG is installed and set up correctly. * Don't forget to have -DBUILD_SHARED_LIBS=ON and -DBUILD_TEST=ON * compile with mingw32-make * cd examples\python * if you run "python pythondemos.py" we get an error message Traceback (most recent call last): File "pythondemos.py", line 28, in ? from plplot import * File "C:/DevZone/plplot/bindings/python\plplot.py", line 20, in ? from plplotc import * File "C:/DevZone/plplot/buildmingw/bindings/python\plplotc.py", line 5, in ? import _plplotc ImportError: No module named _plplotc * If I copy the dll _plplotcmodule.dll from bindings/python I get the same error message. After I rename this dll to _plplotc.dll I get further and also need to copy other dlls (plplot.dll, etc.) and font files: "python pythondemos.py" works. * So this is also a quite success here, though why is this dll called _plplotcmodule.dll and not _plplotc.dll as python wants it to be called? Has someone some ideas? On MSVC/nmake it's the same procedure, but we get soon into trouble: Linking C shared module _plplotcmodule.dll LINK : fatal error LNK1104: cannot open file 'python24_d.lib' NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x450' Stop. I searched the whole plplot tree where we would set python24_d.lib, but I couldn't find anything like that. Cmake looks for this library but can't find it and sets the variables accordingly. And the makefiles for nmake are only temporary, so I can't check them :(. No idea, where the problem is here. Any ideas? Anyway, python is also "working" here in Windows. Regards, Werner PS: Thanks for the hint with the Numeric library. Alan W. Irwin wrote: > On 2006-11-24 22:34+0100 Werner Smekal wrote: > >> Hi, >> >> today I managed to make plplot work together with Java on Windows. It >> wasn't that hard actually, if I only would know Java ;). > > Good work, Werner! > >> * line 76 of java.cmake needs to be changed to >> set(PLPLOTJAVAC_WRAP_DLL plplotjavac_wrap${CMAKE_SHARED_LIBRARY_SUFFIX}) >> (already cvsed), Alan please check and tweak commentary > > This change works fine on Linux, and I expect it should work fine on Mac OS > X as well. I have changed the commentary accordingly. > > Werner, to momentarily change topic to the Python interface generated by > swig, I just discovered Numeric is available for windows users at > http://sourceforge.net/project/showfiles.php?group_id=1369. Do you want to > give it a try to see if that solves the remaining python issues? > > Werner, I assume you will be updating > http://www.miscdebris.net/plplot_wiki/index.php?title=Overview_of_the_status_on_Windows > soon to reflect all the additional PLplot features (now java and hopefully > python soon) that are accessible from windows. > > Hazen, your release announcement should point to that website so our windows > users who are trying out the new release have a clear idea of all the > additional PLplot features accessible to them with our new CBS. > > 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 Yorick front-end to PLplot (yplot.sf.net); the > Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > <__________________________ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Dipl. Ing. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: [EMAIL PROTECTED] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel