(Repost with renamed file ending, so that it gets through spam/virus checks)
Hi,
I wrote and tested now a batch file, which assembles a binary package of
plplot for MinGW or Visual C++ and can easily adjusted for other
compilers. It copies the dlls of the gd, libharu and wxwidgets libraries
if available - so you don't need them, but we should add them for a
complete binary package.
You need in any case the zip executable, e.g. from here
http://gnuwin32.sourceforge.net/packages/zip.htm , you need only the
binaries. Put them somewhere in the path.
The batch file awaits, that the plplot library is already configured via
cmake, build and installed. You need to adjust the settings at the top
of the file.
Alan, where should I put this script in the repository? Is the script
directory alright?
I post tomorrow my MinGW package (I can't provide Visual C++, since I
have only Visual C++ 2005), how I made it and I'll also post my 3rd
party libraries package, which allows to compile 6 libraries with one
command.
Regards,
Werner
One small change I would recommend is to use unzip in step b) to reduce the
tool dependencies. I think this is consistent with what cpack does on
windows. See http://cmake.org/HTML/Download.html for an example of zip
results produced by cpack on windows).
Regardless of this minor issue, it appears we have arrived at a viable method
to make binary releases for our windows users, and I think we are going to
see our PLplot efforts have a lot more impact in the windows world as a result.
Alan
--
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
@rem **************************************************************
@rem * This batch file create binary packages for plplot (windows)
@rem *
@rem * Before you run this file modify the configuration part
@rem *
@rem * It is assumed, that before you run this batch file, that
@rem * you have already passed the cmake configuration step,
@rem * and have run "make" and "make install" or equivalent
@rem **************************************************************
@rem **************************************************************
@rem * Configuration
@rem **************************************************************
setlocal
rem set this to 1 if you have mingw
set MINGW=1
if %MINGW%==1 (
@rem *** MINGW SETTINGS ***
@rem * INSTALLDIR is the absolute path to the installed plplot directory
(make install)
set INSTALLDIR=Z:\DevZone\plplot\buildmingw\local
@rem * GDDLLDIR is the absolute path to bgd.dll
set GDDLLDIR=Z:\DevZone\3p_plplot_mingw\lib
@rem * HPDFDLLDIR is the absolute path to libhpdf.dll
set HPDFDLLDIR=Z:\DevZone\3p_plplot_mingw\lib
@rem * WXDLLDIR is the absolute path to wxwidgets dlls
set WXDLLDIR=%WXWIN%\lib\gcc_dll
@rem * Name of the package
set PACKAGE_NAME=plplot-5.7.1-win32-mingw
) else (
@rem *** VISUALC SETTINGS ***
@rem * INSTALLDIR is the absolute path to the installed plplot directory
(make install)
set INSTALLDIR=Z:\DevZone\plplot\buildnmake\local
@rem * GDDLLDIR is the absolute path to bgd.dll
set GDDLLDIR=Z:\DevZone\3p_plplot_vc\lib
@rem * HPDFDLLDIR is the absolute path to libhpdf.dll
set HPDFDLLDIR=Z:\DevZone\3p_plplot_vc\lib
@rem * WXDLLDIR is the absolute path to wxwidgets dlls
set WXDLLDIR=%WXWIN%\lib\vc_dll
@rem * Name of the package
set PACKAGE_NAME=plplot-5.7.1-win32-vc
)
@rem **************************************************************
@rem * Create Zip package
@rem * You need the zip tool for this step (gnuwin32.sf.net)
@rem **************************************************************
echo Creating package %PACKAGE_NAME%.zip
@rem * move package into current folder
if exist %PACKAGE_NAME%.zip (del %PACKAGE_NAME%.zip)
@rem * cd into the install directory
pushd %INSTALLDIR%
@rem * copy 3rd party dlls if they exist
if exist %GDDLLDIR%\bgd.dll (copy %GDDLLDIR%\bgd.dll lib)
if exist %HPDFDLLDIR%\libhpdf.dll (copy %HPDFDLLDIR%\libhpdf.dll lib)
if %MINGW%==1 (
if exist %WXDLLDIR%\wxbase26_gcc_custom.dll (copy
%WXDLLDIR%\wxbase26_gcc_custom.dll lib)
if exist %WXDLLDIR%\wxmsw26_core_gcc_custom.dll (copy
%WXDLLDIR%\wxmsw26_core_gcc_custom.dll lib)
) else (
if exist %WXDLLDIR%\wxbase26u_vc_custom.dll (copy
%WXDLLDIR%\wxbase26u_vc_custom.dll lib)
if exist %WXDLLDIR%\wxmsw26u_core_vc_custom.dll (copy
%WXDLLDIR%\wxmsw26u_core_vc_custom.dll lib)
)
@rem strip debug information from libraries
if %MINGW%==1 (strip lib\*.dll)
@rem * create base package
zip -r9 %PACKAGE_NAME%.zip *.*
@rem * get back to old directory
popd
@rem * move package into current folder
if exist %INSTALLDIR%\%PACKAGE_NAME%.zip (move %INSTALLDIR%\%PACKAGE_NAME%.zip
%PACKAGE_NAME%.zip)
goto end
:error
echo There was an error!
goto :eof
:end
echo.
echo The package %PACKAGE_NAME%.zip was created!
echo.
dir %PACKAGE_NAME%.zip
-------------------------------------------------------------------------
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