[mapserver-users] cmake issue

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Dec 15 11:44:25 PST 2015


In my case I always have to pass the path to the includes and the libs, 
such as:

   -DICONV_INCLUDE_DIR="%ICONVDIR%\include"
   -DICONV_LIBRARY="%ICONVDIR%\lib\iconv.lib"

I agree that it is often confusing how these are discovered through the 
cmake build, I often have to modify the "FindXXX.cmake" code in /cmake, 
which you could look at for your environment (in your case the problem 
file is /cmake/FindICONV.cmake).

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





On 2015-12-15 2:58 PM, kelly elton wrote:
> Yeah so after tinkering with it, if I added my sdk bin directory
> (C:\mapserver\SDK\release-1800\bin in this case) to my PATH
> environmental variable, then it worked. Seems a little weird considering
> every other plugin could properly read the CMAKE_PREFIX_PATH just fine.
>
> On Tue, Dec 15, 2015 at 12:40 PM kelly elton <its.the.doc at gmail.com
> <mailto:its.the.doc at gmail.com>> wrote:
>
>     Having issues running cmake on mapserver on windows using the sdk
>     from gisinternals
>
>     c:\mapserver\mapserver\build>cmake .. -DWITH_POSTGIS=0
>     -DWITH_CSHARP=1
>     -DCMAKE_CURRENT_BINARY_DIR="C:\mapserver\swigwin-1.3.40"
>     -DMSVC_VER=1800 -DMSVC_VERSION=1600
>     -DCMAKE_PREFIX_PATH="C:\mapserver\SDK\release-1800\bin;C:\mapserver\SDK\release-1800\include;C:\mapserver\SDK\release-1800\lib;c:\mapserver\regex-0.12;C:\mapserver\swigwin-1.3.40"
>
>     CMake Error at CMakeLists.txt:69 (message):
>        ICONV library/component/dependency could not be found.
>
>          HINTS:
>          - disable ICONV support by adding -DWITH_ICONV=0
>          - add the ICONV install directory to the CMAKE_PREFIX_PATH
>     variable
>     (-DCMAKE_PREFIX_PATH="/path/to/ICONV-install-dir;/path/to/other/dirs"
>     Call Stack (most recent call first):
>        CMakeLists.txt:429 (report_optional_not_found)
>
>     iconv.dll iconv.h and iconv.lib are all present in the sdk
>
>




More information about the MapServer-users mailing list