[mapserver-dev] MapServer compilation

Armand Bahi armand.bahi at imerir.com
Thu Jan 9 07:34:31 PST 2014


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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20140109/ca38d57b/attachment.html>


More information about the mapserver-dev mailing list