[Plplot-devel] Windows+python (was Re: Windows+java)

2006-11-25 Thread Werner Smekal
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

Re: [Plplot-devel] CMake-2.4.4 has been released today

2006-11-25 Thread hbabcockos1

On Nov 21, 2006, at 10:40 PM, Alan W. Irwin wrote:

> On 2006-11-21 14:35-0800 Alan W. Irwin wrote:
>
>> If it works for me, and I don't hear about problems from anybody  
>> else today,
>> I plan to make it the minimum version we accept.
>
> I found a straightforward workaround for the python and tcl issues  
> (missing
> example script generation for a separate build tree) that were  
> showing up so
> I have changed the CMake minimum version check to 2.4.4 and removed  
> some
> 2.4.3 workarounds that are no longer necessary for 2.4.4. (I have also
> reported the 2.4.4 issue to the CMake list to see what the  
> developers there
> can make of it.)

I had no problems building PLplot with CMake 2.4.4 on OS-X. However,  
the CMake version check does not seem to be working on OS-X as I did  
not get any error messages when I tried to use CMake 2.4.3.

-Hazen


-
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


Re: [Plplot-devel] Windows+python (was Re: Windows+java)

2006-11-25 Thread Alan W. Irwin
On 2006-11-25 22:47+0100 Werner Smekal wrote:

> I searched the whole plplot tree where we would set python24_d.lib, but I 
> couldn't find anything like that.

We set PYTHON_LIBRARIES in cmake/modules/python.cmake, and I am virtually
positive that is how python24_d.lib is found.  If cmake did not find a
python library, then it would have disabled python completely. To build the
two python interfaces on windows you need to link to PYTHON_LIBRARIES.  (See
/bindings/python/CMakeLists.txt.) So I suspect the real question is why
python24_d.lib is not accessible to the linker on bare windows even though
cmake found it.

Hope that background information helps, and thanks very much for your
continued windows/python efforts.

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


Re: [Plplot-devel] new wxwidgets driver

2006-11-25 Thread hbabcockos1

On Nov 21, 2006, at 3:58 PM, Werner Smekal wrote:

> Hi,
>
> I updated the wxwidgets driver (hopefully it makes the 5.7.0  
> release) a great
> deal. Most important I improved the antialized part of the driver.  
> It is now
> about 4 times faster and not much slower than the non antialized  
> code any
> more. The antialized code can now handle filled polygons and also  
> resizing
> works now.

I updated my copy of wxwidgets on OS-X, but I'm still unable to build  
this driver.

Scanning dependencies of target wxwidgets
[ 25%] Building CXX object drivers/CMakeFiles/wxwidgets.dir/wxwidgets.o
In file included from /usr/local/include/wx-2.6/wx/platform.h:190,
  from /usr/local/include/wx-2.6/wx/defs.h:21,
  from /usr/local/include/wx-2.6/wx/wx.h:15,
  from /Users/hbabcock/Documents/OpenSource/PLplot/ 
plplot-cvs/drivers/wxwidgets.cpp:53:
/usr/local/lib/wx/include/mac-ansi-release-2.6/wx/setup.h:815:1:  
warning: "HAVE_USLEEP" redefined
In file included from /Users/hbabcock/Documents/OpenSource/PLplot/ 
plplot-cvs/include/plplotP.h:100,
  from /Users/hbabcock/Documents/OpenSource/PLplot/ 
plplot-cvs/drivers/wxwidgets.cpp:36:
/Users/hbabcock/Documents/OpenSource/PLplot/plplot-CBS-4/include/ 
plConfig.h:75:1: warning: this is the location of the previous  
definition
/Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/drivers/ 
wxwidgets.cpp: In function 'void plD_init_wxwidgets(PLStream*)':
/Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/drivers/ 
wxwidgets.cpp:499: error: 'antialized' was not declared in this scope
/Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/drivers/ 
wxwidgets.cpp:500: error: 'smooth_text' was not declared in this scope
/Users/hbabcock/Documents/OpenSource/PLplot/plplot-cvs/drivers/ 
wxwidgets.cpp:501: error: 'freetype' was not declared in this scope
make[2]: *** [drivers/CMakeFiles/wxwidgets.dir/wxwidgets.o] Error 1
make[1]: *** [drivers/CMakeFiles/wxwidgets.dir/all] Error 2
make: *** [all] Error 2

Any ideas?

thanks,
-Hazen


-
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


Re: [Plplot-devel] CMake-2.4.4 has been released today

2006-11-25 Thread Alan W. Irwin
On 2006-11-25 20:05-0500 [EMAIL PROTECTED] wrote:

> I had no problems building PLplot with CMake 2.4.4 on OS-X. However, the 
> CMake version check does not seem to be working on OS-X as I did not get any 
> error messages when I tried to use CMake 2.4.3.

I just confirmed the version check works on Linux.  Remember that cmake
caches lots of information to increase the speed.  Are you starting with
an empty build tree when you do your version check?

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