[mapserver-dev] MapServer compilation

thomas.bonfort at gmail.com thomas.bonfort at gmail.com
Thu Jan 9 07:36:58 PST 2014


Armand,

As the error message states, they are a mandatory dependency and cannot be disabled.

--
thomas

On 9 janv. 2014, at 16:34, Armand Bahi <armand.bahi at imerir.com> wrote:

> Hello,
> 
> I'm trying to compile mapserver 6.4.1 with CMake, and without JPEG and PNG libraries.
> 
> This is the CMake error : 
> 
> CMake Error at CMakeLists.txt:55 (message):
> PNG library/component could not be found and is a mandatory dependency
> 
> HINT:
> - add the PNG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/PNG-install-dir;/path/to/other/dirs"
> Call Stack (most recent call first):
> CMakeLists.txt:281 (report_mandatory_not_found)
> 
> Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
> CMake Error at CMakeLists.txt:55 (message):
> JPEG library/component could not be found and is a mandatory dependency
> 
> HINT:
> - add the JPEG install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/JPEG-install-dir;/path/to/other/dirs"
> Call Stack (most recent call first):
> CMakeLists.txt:290 (report_mandatory_not_found)
> 
> 
> Why I can tell to CMake for don't try to load this libs ? 
> 
> PS : If I delete lines upon from CMakeLists.txt, the cofigure is done 
> 
> find_package(PNG)
> if(PNG_FOUND)
>   include_directories(${PNG_INCLUDE_DIR})
>   ms_link_libraries( ${PNG_LIBRARIES})
>   set(USE_PNG 1)
> else(PNG_FOUND)
>   report_mandatory_not_found(PNG)
> endif(PNG_FOUND)
> 
> find_package(JPEG)
> if(JPEG_FOUND)
>   include_directories(${JPEG_INCLUDE_DIR})
>   ms_link_libraries( ${JPEG_LIBRARY})
>   set(USE_JPEG 1)
> else(JPEG_FOUND)
>   report_mandatory_not_found(JPEG)
> endif(JPEG_FOUND)
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev



More information about the mapserver-dev mailing list