[mapserver-users] mapserver 7.6.2

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Dec 30 06:56:23 PST 2020


Hi Stephane,

Be sure to compile GEOS (3.9.0 is recommended from 
http://download.osgeo.org/geos/geos-3.9.0.tar.bz2 ), and then add into 
your cmake command: -DWITH_GEOS=1

Wishing you a happy new year,

-jeff



-- 
Jeff McKenna
GatewayGeo: MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/



On 2020-12-30 9:48 a.m., Stephane Poissant wrote:
> Good morning gentlemen and Merry Xmas to everyone!
> 
> I need some help with compiling mapserver.
> I have been hammering this for a while without a perfect success yet!
> When proceeding with make, it should complete the process.
> There are no errors at beginning of compilation. Only a few warnings as 
> I am compiling from cmake3 (mandatory)
> 
> Here are the environment details:
> 
>  From yum (important ones but not limited to…):
> - System is running on Amazon Linux 2 (CentOS 7) virtual server
> - centos-sclo-rh repo activated
> - Proj72 w/devel
> - gdal32 w/devel
> - postgis31_12 w/devel
> - postgis31_12 w/devel contrib libs server
> - SFCGAL (1.3.1.2) w/devel
> - gmp w/devel
> - mpfr w/devel
> - boost (1.53) w/devel
> 
>  From pip (important ones but not limited to…):
> - Cmake3
> - boost
> 
> 
> My Makefile flags:
> CMAKEFLAGS=-DCMAKE_C_FLAGS="" -DCMAKE_CXX_FLAGS="" \
>   -DCMAKE_SHARED_LINKER_FLAGS="-lgcov" -DWITH_CLIENT_WMS=1 \
>   -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DWITH_CSHARP=1 
> -DWITH_PHP=0 -DWITH_PERL=0 \
>   -DWITH_PYTHON=0 -DWITH_JAVA=0 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 
> -DWITH_FCGI=0 -DWITH_EXEMPI=0 \
>   -DCMAKE_BUILD_TYPE=Release -DWITH_RSVG=0 -DWITH_CURL=1 
> -DWITH_HARFBUZZ=1 -DWITH_POINT_Z_M=1 \
>   -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32;/usr/local/lib64/“
> 
> 
> 
> 
> [ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o
> [ 83%] Building CXX object 
> CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
> [ 84%] Linking CXX shared library libmapserver.so
> make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
> [ 84%] Built target mapserver
> make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
> Scanning dependencies of target shptreetst
> make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
> make[3]: Entering directory `/root/inst/mapserver-7.6.2/build'
> [ 85%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o
> [ 85%] Linking C executable shptreetst
> //usr/lib64/libSFCGAL.so.1: undefined reference to 
> `boost::archive::text_oarchive_impl<boost::archive::text_oarchive>::save(std::string 
> const&)'
> //usr/lib64/libSFCGAL.so.1: undefined reference to 
> `boost::archive::basic_binary_oprimitive<boost::archive::binary_oarchive, char, 
> std::char_traits<char> >::save(std::string const&)'
> /usr/gdal32/lib/libgdal.so: undefined reference to `GEOSMakeValid_r'
> //usr/lib64/libSFCGAL.so.1: undefined reference to 
> `boost::archive::text_iarchive_impl<boost::archive::text_iarchive>::load(std::string&)'
> collect2: error: ld returned 1 exit status
> make[3]: *** [shptreetst] Error 1
> make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build'
> make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2
> make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build'
> make: *** [cmakebuild] Error 2
> 
> 
> [root at mapserver-0291 mapserver-7.6.2]# ls -al /usr/lib64/libSF*
> lrwxrwxrwx 1 root root      14 Dec 29 21:38 /usr/lib64/libSFCGAL.so -> 
> libSFCGAL.so.1
> lrwxrwxrwx 1 root root      18 Dec 29 21:38 /usr/lib64/libSFCGAL.so.1 -> 
> libSFCGAL.so.1.3.1
> -rwxr-xr-x 1 root root 9193952 Sep 30  2019 /usr/lib64/libSFCGAL.so.1.3.1
> 
> Any suggestions would be welcomed as I am running out of ideas.
> 
> Cheers!
> 
> 
> Stéphane Poissant
> Portable: 514-793-3506
> spoissantca at gmail.com <mailto:spoissantca at gmail.com>
> 
> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



More information about the mapserver-users mailing list