[mapserver-dev] build problem

Alexandre Lessard belug23 at gmail.com
Thu Oct 9 04:53:50 PDT 2014


I've found the Answer!

My harfbuzz was compiled with "--without-glib".

It was easy once I've realized that hb_glib was a part of harfbuzz.

Thanks!

On 14-10-09 06:44 AM, Belug wrote:
> Hi, I have the same problem, but I need the SVG enable.
>
> I'm using Ubuntu 14.04 on vagrant with those packages :
>
> librsvg2-2:amd64  2.40.2-1
> librsvg2-common:amd64  2.40.2-1
> librsvg2-dev  2.40.2-1
> libpango-1.0-0:amd64  1.36.3-1ubuntu1
> libpangocairo-1.0-0:amd64  1.36.3-1ubuntu1
> libpangoft2-1.0-0:amd64  1.36.3-1ubuntu1
>
> Here's the two cmake I've tried :
>
> The first :
>
> cmake -DWITH_CLIENT_WMS=yes -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1
> -DWITH_PHP=1 -DWITH_PYTHON=1 -DWITH_THREAD_SAFETY=1 -DWITH_HARFBUZZ=1
> -DWITH_FRIBIDI=1 -DWITH_FCGI=1 -DWITH_EXEMPI=1 -DCMAKE_BUILD_TYPE=Release
> -DWITH_RSVG=1 -DWITH_CURL=1 -DWITH_CAIRO=1 -DWITH_PHP=1 -DWITH_PYTHON=1
>
>
> and the same used in ubuntu-gis build minus java :
>
> cmake -DCMAKE_EXE_LINKER_FLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wl,-z,now" -DCMAKE_MODULE_LINKER_FLAGS="-Wl,-Bsymbolic-functions
> -Wl,-z,relro -Wl,-z,now"
> -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro
> -Wl,-z,now" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=1
> -DWITH_PROJ=1 -DWITH_KML=1 -DWITH_SOS=1 -DWITH_WMS=1 -DWITH_GD=1
> -DWITH_FRIBIDI=1 -DWITH_ICONV=1 -DWITH_CAIRO=1 -DWITH_SVGCAIRO=0
> -DWITH_RSVG=1 -DWITH_MYSQL=0 -DWITH_FCGI=1 -DWITH_GEOS=1 -DWITH_POSTGIS=1
> -DWITH_GDAL=1 -DWITH_OGR=1 -DWITH_CURL=1 -DWITH_CLIENT_WMS=1
> -DWITH_CLIENT_WFS=1 -DWITH_WFS=1 -DWITH_WCS=1 -DWITH_LIBXML2=1
> -DWITH_THREAD_SAFETY=1 -DWITH_GIF=1 -DWITH_ORACLESPATIAL=0
> -DWITH_ORACLE_PLUGIN=0 -DWITH_MSSQL2008=0 -DWITH_SDE_PLUGIN=0 -DWITH_SDE=0
> -DWITH_EXEMPI=0 -DWITH_XMLMAPFILE=0 -DWITH_PYTHON=1 -DWITH_PHP=1
> -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=0 -DWITH_CSHARP=0
>
>
> and I get this error message :
>
> Linking C executable legend
> /usr/bin/cmake -E cmake_link_script CMakeFiles/legend.dir/link.txt
> --verbose=1
> /usr/bin/cc   -Wall -Wdeclaration-after-statement  -Wl,-Bsymbolic-functions
> -Wl,-z,relro -Wl,-z,now CMakeFiles/legend.dir/legend.c.o  -o legend
> -rdynamic libmapserver.so.6.5-dev -lpng -lz -ljpeg -lfreetype -lproj
> -lfribidi /usr/local/lib/libharfbuzz.so -lcairo -lgeos_c -lpq -lgdal
> -lrsvg-2 -lgobject-2.0 -lcurl -lxml2 -lpthread -lgif -ldl -lm
> -Wl,-rpath,/vagrant/mapserver/build:/usr/local/lib:
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_glib_script_from_script'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_glib_script_to_script'
> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
> `hb_glib_get_unicode_funcs'
> collect2: error: ld returned 1 exit status
>
>
> Same error on master or in branch-6-4
>
> I to use vagrant ubuntu/trusty64
>
> Thanks.
>
>
>
> Peter Freimuth-4 wrote
>> Hi Thomas,
>> thanks for that hint. Disabling both SVG options and cleaning the folder
>> actually resolved the build problem. I used the harfbuzz build settings
>> from the Vagrantfile.
>> Again, thanks for your support.
>> Peter
>> On Sep 29, 2014, at 10:32 AM, thomas bonfort <
>> thomas.bonfort@
>> <mailto:
>> thomas.bonfort@
>> >> wrote:
>>
>> Peter,
>> - Completely unrelated, but the coverage flags are useless for an end
>> user, they are going to slow your execution substantially. Start fresh
>> from an empty build directory as cmake is going to have kept those flags
>> in its cache. (cd build && rm -rf *)
>> - How did you compile harfbuzz? try with ./configure --without-cairo
>> --without-glib --without-icu
>> - What happens if you disable RSVG support (I suspect that is the
>> dependency that is pulling down pango)
>>
>> --
>> thomas
>>
>> On 28 September 2014 15:21, Peter Freimuth <
>> peter.freimuth@
>> <mailto:
>> peter.freimuth@
>> >> wrote:
>> Hi mapserver devs,
>> to verify that some of the bugfixes resolve two of the problems i
>> currently have with map server i try to compile map server from scratch
>> but whatever i tried i cannot resolve this problem:
>>
>> [ 90%] Building CXX object
>> CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o
>> Linking CXX shared library libmapserver.so
>> [ 90%] Built target mapserver
>> [ 91%] Building C object CMakeFiles/legend.dir/legend.c.o
>> Linking C executable legend
>> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
>> `hb_glib_script_from_script'
>> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
>> `hb_glib_script_to_script'
>> //usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined reference to
>> `hb_glib_get_unicode_funcs'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [legend] Error 1
>> make[1]: *** [CMakeFiles/legend.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Seems that the headers or the lib of the  but
>> /usr/local/lib/libharfbuzz.so is available and i set
>> -DCMAKE_PREFIX_PATH=/usr/local:/opt .
>> i used
>> cmake .. -DCMAKE_C_FLAGS="--coverage" -DCMAKE_CXX_FLAGS="--coverage"
>> -DCMAKE_SHARED_LINKER_FLAGS="-lgcov" -DWITH_WCS=1 -DWITH_WFS=1
>> -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1
>> -DWITH_PHP=0 -DWITH_PYTHON=1 -DWITH_JAVA=0 -DWITH_THREAD_SAFETY=1
>> -DWITH_FRIBIDI=1 -DWITH_FCGI=1 -DWITH_EXEMPI=1 -DCMAKE_BUILD_TYPE=Release
>> -DWITH_RSVG=1 -DWITH_CURL=1 -DWITH_HARFBUZZ=1 -DWITH_POINT_Z_M=1
>> -DWITH_XMLMAPFILE=1 -DWITH_GEOS=1 -DWITH_POSTGIS=1 -DWITH_LIBXML2=1
>> -DWITH_OGR=1 -DWITH_GDAL=1 -DWITH_PROJ=1 -DWITH_GIF=1 -DWITH_GD=0
>> -DCMAKE_PREFIX_PATH=/usr/local:/opt
>> -DFCGI_INCLUDE_DIR=/usr/include/fastcgi -DWITH_SVGCAIRO=0
>>
>> on a vagrant ubuntu/trusty64
>>
>> Mapserver was cloned from git master today.
>>
>> __________________________________
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at .osgeo
>> <mailto:
>> mapserver-dev at .osgeo
>> >
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>>
>>
>> Peter Freimuth
>>
>> BlackBridge AG | Sitz Berlin | Amtsgericht Charlottenburg -
>> Registergericht | HRB 152785 | Aufsichtsratsvorsitzender: David Westwood |
>> Vorstand: Ryan Johnson
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/build-problem-tp5164605p5166654.html
> Sent from the Mapserver - Dev mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20141009/5153f6dd/attachment-0001.html>


More information about the mapserver-dev mailing list