From: Arjen M. <arj...@wl...> - 2006-11-27 07:41:28
|
Werner Smekal wrote: >Hi, > >I just committed a small change to plplot which should make life for >windows developing easier (thanks for the hint, Alan): > >In CMakeLists.txt of the plplot main directory I added > >if(BUILD_SHARED_LIBS AND WIN32 AND NOT CYGWIN) > SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/dll) >endif(BUILD_SHARED_LIBS AND WIN32 AND NOT CYGWIN) > >If we have shared libraries, Windows but not cygwin, all created >libraries go into the dll directory. If you > >set PATH=path_to_plplot_build_dir\dll;%PATH% > >and > >set PLPLOT_LIB=path_to_plplot_dir\data > >all examples run without further copying of dlls, fonts, maps, etc. Both >variables could be set in a batch file, which you run at CLI startup. >Arjen, could you please check if this also works for you? Do you also >need other stuff (exes?) to be copied or so? > > Hi Werner, I checked your changes using bare Windows (MSVC 6.0 and ordinary makefiles but that should not really matter): - It works for C and Fortran 95 - all relevant DLLs are stored in the dll subdirectory and by expanding the PATH, the examples work fine. - The directory I have to set PLPLOT_LIB to is the one in the _source_ tree - we need to install/copy the font files to a "data" subdirectory in the build/install tree - I get a failure for the Tcl examples, but I have not been able yet to trace what is causing it (did not have the time). I will look into this ASAP. - We may need to include MinGW somehow in the condition, but I am not sure how ... Anyway: this is a big step forward. Regards, Arjen |