#48 A Windows Port of GDL

closed-out-of-date
nobody
None
5
2012-09-18
2012-09-07
Sylwester Arabas
No

I'm pasting below a message from Jeongbin Park with a patch for compiling GDL on Windows.
Big thanks Jeongbin!!

I have no experience at all with developing on windows, though.
Help welcome with handling this contribution!

Sylwester

---------

Dear Sylwester,

I'm Jeongbin Park, a graduate student studying bio-physics.

Today I just successfully ported GDL on windows (based on SVN version). It looks working well, at least some of the online tutorials work.

But, the plotting functionality is not fully implemented yet. For now, it only can print the plot as a file format (e.g. Postscript), but Plplot is not working. I could find that current driver setting of Plplot is 'win3', but this driver looks not working well. I think the wxWidgets can be a good replacement of the current driver?

Anyway, I tried to post this on the GDL sourceforge forum, but it rejects uploading and only keep saying that my topic is caught in spam net. So I tried the Tracker, but the patch file is too big to be uploaded.

So I uploaded the file in my personal blog.

http://cyfinity.egloos.com/1720995

I also attached the file in this mail too.

You may need following libraries to compile:

fftw - http://www.fftw.org/install/windows.html
gsl - http://gnuwin32.sourceforge.net/packages/gsl.htm
pcre - http://gnuwin32.sourceforge.net/packages/pcre.htm
pdcurses - http://gnuwin32.sourceforge.net/packages/pdcurses.htm
readline - http://gnuwin32.sourceforge.net/packages/readline.htm
zlib - http://gnuwin32.sourceforge.net/packages/zlib.htm
xdr - http://code.google.com/p/bsd-xdr/

and plplot, wxWidgets, etc.

I tested Visual Studio 2010, with following build options :

cmake.exe ..\gdl -G "Visual Studio 10" -DCURSES_LIBRARY=..\pdcurses\lib\curses.lib -DCURSES_INCLUDE_PATH=..\pdcurses\include -DREADLINEDIR=..\readline -DZLIBDIR=..\zlib -DGSLDIR=..\gsl -DPCRE_LIBRARY=..\pcre\lib\pcre.lib -DPCRE_INCLUDE_DIR=..\pcre\include -DPLPLOTDIR="C:\Program Files (x86)\plplot" -DWXWIDGETSDIR=C:\wxWidgets-2.8.12 -DWXWIDGETSDIR="C:\wxWidgets-2.8.12" -DXDR_LIBRARY=..\xdr\lib\xdr.lib -DXDR_INCLUDE_DIR=..\xdr\include -DMAGICK=OFF -DNETCDF=OFF -DHDF=OFF -DHDF5=OFF -DFFTW=OFF -DPYTHON=OFF -DPSLIB=OFF -DX11=OFF -DOPENMP=OFF

If you have questions about the patch, please don't hesitate contact me.

Thank you.

--
Jeongbin Park
Single Molecule Biophysics Lab.
Dept. of Physics and Astronomy
Seoul National University

Discussion

  • patch

     
    Attachments
  • Jeongbin Park
    Jeongbin Park
    2012-09-08

    Thank you, Sylwester!

    Almost all of the patched things are wrapped with #ifdef _MSC_VER so after applying this patch, the patched source code should be able to be compiled on both windows and posix, with proper CMakeLists.txt.
    (I don't know the syntax of CMake, so these lists files are hardcoded, though)

    Can you test this patch in posix too?

     
  • Jeongbin Park
    Jeongbin Park
    2012-09-18

    I've just uploaded a new version of this patch.

    Can you test the new one instead of this?

     
  • Marc Schellens
    Marc Schellens
    2012-09-18

    • status: open --> closed-out-of-date