It took me some effort to get PLplot to actually use Shapelib, but I followed
the following steps:
1. Extract shapelib-1.3.0.zip to "C:\"
2. Copy CMakeLists.txt from PLPlot's directory
"\plplot-trunk\cmake\build_projects\shapelib" to "C:\shapelib-1.3.0"
3. Executed:
cmake C:\shapelib-1.3.0 -G "NMake Makefiles" -DBUILD_SHARED_LIBS=OFF
nmake
nmake install
In my case this installs Shapelib to "C:\Program Files\shapelib"
Then, PLplot is to be built with
cmake C:\plplot-trunk -G "NMake Makefiles"
-DwxWidgets_LIB_DIR=%WXWIN%\lib\vc_lib -DwxWidgets_CONFIGURATION=mswu
-DBUILD_SHARED_LIBS=OFF -DSHAPELIB_INCLUDE_DIR="C:\Program
Files\shapelib\include" -DSHAPELIB_LIBRARY="C:\Program
Files\shapelib\lib\shp.lib"
This FORCES plplot to find use the provided shapelib library.
Question: Is there a 'better' way to let plplot automatically find shapelib?
I continued with nmake anyway, and found the following:
[ 47%] Building C object src/CMakeFiles/plplotd.dir/plmap.c.obj
cl : Command line warning D9024 : unrecognized source file type
'Files/shapelib/include', object file assumed
cl : Command line warning D9027 : source file 'Files/shapelib/include' ignored
plmap.c
C:\plplot-trunk\src\plmap.c(47) : fatal error C1083: Cannot open include file:
'shapefil.h': No such file or directory
NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~2.0\VC\bin\cl.exe' : return code
'0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Thus there's some issues, probably related to filepaths with spaces in them?
Unfortunately I don't know much about the internals of plplot or the cmake
procedures on how to fix this... Hope this report helps in identifying the
problem? Please let me know if more information is needed. For now, I'll work
without shapelib, but it would be nice if it would work to compile together.
Regards, Joost
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel