SCon Mapnik 2.2.0 can get neither the right macro boost version, nor the icuuc for "configure"

234 views
Skip to first unread message

Skyvin

unread,
Nov 20, 2013, 12:24:07 PM11/20/13
to map...@googlegroups.com
Hello,

I tried to compile mapnik2.2.0 in a new machine with a self compiling boost, icu, postgresql, png, jpeg and proj4(etc.) libraries. 
When I launched configure, I get error about the boost version. The message is:

scons: Reading SConscript files ...

Welcome to Mapnik...

Configuring build environment...
Configuring on Linux in *release mode*...
Checking for freetype-config... yes
Checking for xml2-config... yes
Checking for C library z... yes
Checking for C++ library icuuc... yes
Checking for C library jpeg... yes
Checking for C library proj... yes
Checking for C library png... yes
Checking for C library tiff... yes
.sconf_temp/conftest_8: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
Checking for ICU version >= 4.2... (cached) Searching for boost libs and headers... (cached)
Found boost libs: /app/labo/laboYY/mapbuild/tmpworkdir/usr/lib
Found boost headers: /app/labo/laboYY/mapbuild/tmpworkdir/usr/include
Checking for C++ header file boost/version.hpp... yes
.sconf_temp/conftest_10: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
.sconf_temp/conftest_11: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
Checking for Boost version >= 1.47... no
Found boost lib version...
Boost version 1.47 or greater is required
Checking for C++ library boost_system... yes
Checking for C++ library boost_filesystem... yes
Checking for C++ library boost_regex... yes
Checking for C++ library boost_program_options... yes
Checking for C++ library boost_thread... yes
Checking for pkg-config... yes
Checking for requested plugins dependencies...
Checking for pg_config... yes
Checking for cairo... no
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pycairo... no

Exiting... the following required dependencies were not found:
   - icuuc (ICU C++ library | configure with ICU_LIBS & ICU_INCLUDES or use ICU_LIB_NAME to specify custom lib name  | more info: http://site.icu-project.org/)
   - boost version >= 1.47 (more info see: https://github.com/mapnik/mapnik/wiki/Mapnik-Installation & http://www.boost.org)

See '/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/mapnik_2_2_0/mapnik_build/mapnik-v2.2.0/config.log' for details on possible problems.

Also, these OPTIONAL dependencies were not found:
   - cairo (Cairo C library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)
   - pycairo (Python bindings to Cairo library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)

Set custom paths to these libraries and header files on the command-line or in a file called 'config.py'
    ie. $ python scons/scons.py BOOST_INCLUDES=/usr/local/include BOOST_LIBS=/usr/local/lib

Once all required dependencies are found a local 'config.py' will be saved and then install:
    $ sudo python scons/scons.py install

To view available path variables:
    $ python scons/scons.py --help or -h

To view overall SCons help options:
    $ python scons/scons.py --help-options or -H

More info: https://github.com/mapnik/mapnik/wiki/Mapnik-Installation
 
I cannot really understand why BOOST_LIB_VERSION macro is not correctly received. Because it found the boost include directory here:  /app/labo/laboYY/mapbuild/tmpworkdir/usr/include
and the version file is just there:
cat /app/labo/laboYY/mapbuild/tmpworkdir/usr/include/boost/ver                                                                             sion.hpp
//  Boost version.hpp configuration header file  ------------------------------/                                                                             /
//  (C) Copyright John maddock 1999. Distributed under the Boost
//  Software License, Version 1.0. (See accompanying file
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//  See http://www.boost.org/libs/config for documentation
#ifndef BOOST_VERSION_HPP
#define BOOST_VERSION_HPP
//
//  Caution, this is the only boost header that is guarenteed
//  to change with every boost release, including this header
//  will cause a recompile every time a new boost version is
//  released.
//
//  BOOST_VERSION % 100 is the patch level
//  BOOST_VERSION / 100 % 1000 is the minor version
//  BOOST_VERSION / 100000 is the major version
#define BOOST_VERSION 105100
//
//  BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
//  but as a *string* in the form "x_y[_z]" where x is the major version
//  number, y is the minor version number, and z is the patch level if not 0.
//  This is used by <config/auto_link.hpp> to select which library version to li                                                                             nk to.
#define BOOST_LIB_VERSION "1_51"
#endif

In the same time, icuuc is not found by SCon neither. But this lib is there too:
/app/labo/laboYY/mapbuild/tmpworkdir/usr/lib >ll libicuuc.a
-rwxr-xr-x 1  2496648 20 nov.  12:40 libicuuc.a

Any suggestion is welcome. Thank you in advance.

Best regards,
Skyvin
 

Dane Springmeyer

unread,
Nov 20, 2013, 1:43:28 PM11/20/13
to map...@googlegroups.com

On Nov 20, 2013, at 9:24 AM, Skyvin <skyv...@gmail.com> wrote:

libjpeg.so.8: cannot open shared object file: No such file or directory

This is the problem. It looks like you need to rebuild libtiff, which is currently linking to a broken or missing libjpeg.

More details will be evident in your 'config.log'

Dane

s...@truenorthgis.net

unread,
Nov 20, 2013, 2:06:25 PM11/20/13
to map...@googlegroups.com, map...@googlegroups.com

Please remove me from this list.  Thanks!

--
You received this message because you are subscribed to the Google Groups "mapnik" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapnik+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Skyvin

unread,
Nov 21, 2013, 4:38:24 AM11/21/13
to map...@googlegroups.com
Hi Dane,

Thank you for your reply.

With your help, I found the issue of my problem. It's LD_LIBRARY_PATH for run the conftest with the dynamic library.

I have this dynamic library libjpeg compiled, and this file libjpeg.so.8 exists, and libtiff is there in the same place(I did a copy from all dependencies' compiled directory to these ..../usr/lib and ..../usr/include directories).

/app/labo/laboYY/mapbuild/tmpworkdir/usr >ll lib
total 109896
drwxr-sr-x 3       4096 20 nov.  12:40 icu
-rw-r--r-- 1     122622 20 nov.  12:56 libboost_chrono.a
lrwxrwxrwx 1         25 20 nov.  12:56 libboost_chrono.so -> libboost_chrono.so.1.51.0
-rwxr-xr-x 1      43133 20 nov.  12:56 libboost_chrono.so.1.51.0
-rw-r--r-- 1     160712 20 nov.  12:56 libboost_context.a
lrwxrwxrwx 1         26 20 nov.  12:56 libboost_context.so -> libboost_context.so.1.51.0
-rwxr-xr-x 1     109852 20 nov.  12:56 libboost_context.so.1.51.0
-rw-r--r-- 1     141666 20 nov.  12:56 libboost_date_time.a
lrwxrwxrwx 1         28 20 nov.  12:56 libboost_date_time.so -> libboost_date_time.so.1.51.0
-rwxr-xr-x 1      94134 20 nov.  12:56 libboost_date_time.so.1.51.0
-rw-r--r-- 1       1726 20 nov.  12:56 libboost_exception.a
-rw-r--r-- 1     219554 20 nov.  12:56 libboost_filesystem.a
lrwxrwxrwx 1         29 20 nov.  12:56 libboost_filesystem.so -> libboost_filesystem.so.1.51.0
-rwxr-xr-x 1     115338 20 nov.  12:56 libboost_filesystem.so.1.51.0
-rw-r--r-- 1     732176 20 nov.  12:56 libboost_graph.a
lrwxrwxrwx 1         24 20 nov.  12:56 libboost_graph.so -> libboost_graph.so.1.51.0
-rwxr-xr-x 1     425142 20 nov.  12:56 libboost_graph.so.1.51.0
-rw-r--r-- 1    1820260 20 nov.  12:56 libboost_locale.a
lrwxrwxrwx 1         25 20 nov.  12:56 libboost_locale.so -> libboost_locale.so.1.51.0
-rwxr-xr-x 1     842943 20 nov.  12:56 libboost_locale.so.1.51.0
-rw-r--r-- 1     825234 20 nov.  12:56 libboost_math_c99.a
-rw-r--r-- 1     729292 20 nov.  12:56 libboost_math_c99f.a
lrwxrwxrwx 1         28 20 nov.  12:56 libboost_math_c99f.so -> libboost_math_c99f.so.1.51.0
-rwxr-xr-x 1     218942 20 nov.  12:56 libboost_math_c99f.so.1.51.0
-rw-r--r-- 1     742474 20 nov.  12:56 libboost_math_c99l.a
lrwxrwxrwx 1         28 20 nov.  12:56 libboost_math_c99l.so -> libboost_math_c99l.so.1.51.0
-rwxr-xr-x 1     216316 20 nov.  12:56 libboost_math_c99l.so.1.51.0
lrwxrwxrwx 1         27 20 nov.  12:56 libboost_math_c99.so -> libboost_math_c99.so.1.51.0
-rwxr-xr-x 1     235178 20 nov.  12:56 libboost_math_c99.so.1.51.0
-rw-r--r-- 1    3273760 20 nov.  12:56 libboost_math_tr1.a
-rw-r--r-- 1    3424822 20 nov.  12:56 libboost_math_tr1f.a
lrwxrwxrwx 1         28 20 nov.  12:56 libboost_math_tr1f.so -> libboost_math_tr1f.so.1.51.0
-rwxr-xr-x 1     477262 20 nov.  12:56 libboost_math_tr1f.so.1.51.0
-rw-r--r-- 1    3286198 20 nov.  12:56 libboost_math_tr1l.a
lrwxrwxrwx 1         28 20 nov.  12:56 libboost_math_tr1l.so -> libboost_math_tr1l.so.1.51.0
-rwxr-xr-x 1     442784 20 nov.  12:56 libboost_math_tr1l.so.1.51.0
lrwxrwxrwx 1         27 20 nov.  12:56 libboost_math_tr1.so -> libboost_math_tr1.so.1.51.0
-rwxr-xr-x 1     438432 20 nov.  12:56 libboost_math_tr1.so.1.51.0
-rw-r--r-- 1     122226 20 nov.  12:56 libboost_prg_exec_monitor.a
lrwxrwxrwx 1         35 20 nov.  12:56 libboost_prg_exec_monitor.so -> libboost_prg_exec_monitor.so.1.51.0
-rwxr-xr-x 1      81044 20 nov.  12:56 libboost_prg_exec_monitor.so.1.51.0
-rw-r--r-- 1    1155428 20 nov.  12:56 libboost_program_options.a
lrwxrwxrwx 1         34 20 nov.  12:56 libboost_program_options.so -> libboost_program_options.so.1.51.0
-rwxr-xr-x 1     536238 20 nov.  12:56 libboost_program_options.so.1.51.0
-rw-r--r-- 1      12506 20 nov.  12:56 libboost_random.a
lrwxrwxrwx 1         25 20 nov.  12:56 libboost_random.so -> libboost_random.so.1.51.0
-rwxr-xr-x 1      15596 20 nov.  12:56 libboost_random.so.1.51.0
-rw-r--r-- 1    2431182 20 nov.  12:56 libboost_regex.a
lrwxrwxrwx 1         24 20 nov.  12:56 libboost_regex.so -> libboost_regex.so.1.51.0
-rwxr-xr-x 1    1178398 20 nov.  12:56 libboost_regex.so.1.51.0
-rw-r--r-- 1    1282310 20 nov.  12:56 libboost_serialization.a
lrwxrwxrwx 1         32 20 nov.  12:56 libboost_serialization.so -> libboost_serialization.so.1.51.0
-rwxr-xr-x 1     674298 20 nov.  12:56 libboost_serialization.so.1.51.0
-rw-r--r-- 1     191074 20 nov.  12:56 libboost_signals.a
lrwxrwxrwx 1         26 20 nov.  12:56 libboost_signals.so -> libboost_signals.so.1.51.0
-rwxr-xr-x 1     113121 20 nov.  12:56 libboost_signals.so.1.51.0
-rw-r--r-- 1      21686 20 nov.  12:56 libboost_system.a
lrwxrwxrwx 1         25 20 nov.  12:56 libboost_system.so -> libboost_system.so.1.51.0
-rwxr-xr-x 1      17025 20 nov.  12:56 libboost_system.so.1.51.0
-rw-r--r-- 1    2011946 20 nov.  12:56 libboost_test_exec_monitor.a
-rw-r--r-- 1     298348 20 nov.  12:56 libboost_thread.a
lrwxrwxrwx 1         25 20 nov.  12:56 libboost_thread.so -> libboost_thread.so.1.51.0
-rwxr-xr-x 1     179299 20 nov.  12:56 libboost_thread.so.1.51.0
-rw-r--r-- 1      36338 20 nov.  12:56 libboost_timer.a
lrwxrwxrwx 1         24 20 nov.  12:56 libboost_timer.so -> libboost_timer.so.1.51.0
-rwxr-xr-x 1      24079 20 nov.  12:56 libboost_timer.so.1.51.0
-rw-r--r-- 1    2235880 20 nov.  12:56 libboost_unit_test_framework.a
lrwxrwxrwx 1         38 20 nov.  12:56 libboost_unit_test_framework.so -> libboost_unit_test_framework.so.1.51.0
-rwxr-xr-x 1    1078842 20 nov.  12:56 libboost_unit_test_framework.so.1.51.0
-rw-r--r-- 1    3891270 20 nov.  12:56 libboost_wave.a
lrwxrwxrwx 1         23 20 nov.  12:56 libboost_wave.so -> libboost_wave.so.1.51.0
-rwxr-xr-x 1    1986829 20 nov.  12:56 libboost_wave.so.1.51.0
-rw-r--r-- 1     869802 20 nov.  12:56 libboost_wserialization.a
lrwxrwxrwx 1         33 20 nov.  12:56 libboost_wserialization.so -> libboost_wserialization.so.1.51.0
-rwxr-xr-x 1     497394 20 nov.  12:56 libboost_wserialization.so.1.51.0
lrwxrwxrwx 1         24 20 nov.  13:00 libcppunit-1.12.so.1 -> libcppunit-1.12.so.1.0.0
-rwxr-xr-x 1    2944516 20 nov.  13:00 libcppunit-1.12.so.1.0.0
-rw-r--r-- 1    7451966 20 nov.  13:00 libcppunit.a
-rwxr-xr-x 1        900 20 nov.  13:00 libcppunit.la
lrwxrwxrwx 1         24 20 nov.  13:00 libcppunit.so -> libcppunit-1.12.so.1.0.0
-rw-r--r-- 1    4614528 20 nov.  12:57 libfreetype.a
-rwxr-xr-x 1       1009 20 nov.  12:57 libfreetype.la
lrwxrwxrwx 1         21 20 nov.  12:57 libfreetype.so -> libfreetype.so.6.10.0
lrwxrwxrwx 1         21 20 nov.  12:57 libfreetype.so.6 -> libfreetype.so.6.10.0
-rwxr-xr-x 1    2667149 20 nov.  12:57 libfreetype.so.6.10.0
-rw-r--r-- 1     325534 20 nov.  12:59 libhashkit.a
-rwxr-xr-x 1        999 20 nov.  12:59 libhashkit.la
lrwxrwxrwx 1         19 20 nov.  12:59 libhashkit.so -> libhashkit.so.2.0.0
lrwxrwxrwx 1         19 20 nov.  12:59 libhashkit.so.2 -> libhashkit.so.2.0.0
-rwxr-xr-x 1     158990 20 nov.  12:59 libhashkit.so.2.0.0
-rw-r--r-- 1   15193794 20 nov.  12:40 libicudata.a
-rwxr-xr-x 1    4139274 20 nov.  12:40 libicui18n.a
-rwxr-xr-x 1      82060 20 nov.  12:40 libicuio.a
-rwxr-xr-x 1     573902 20 nov.  12:40 libicule.a
-rwxr-xr-x 1      78736 20 nov.  12:40 libiculx.a
-rwxr-xr-x 1     108954 20 nov.  12:40 libicutest.a
-rwxr-xr-x 1     256870 20 nov.  12:40 libicutu.a

-rwxr-xr-x 1    2496648 20 nov.  12:40 libicuuc.a
-rw-r--r-- 1    2022506 20 nov.  12:58 libjpeg.a
-rwxr-xr-x 1        973 20 nov.  12:58 libjpeg.la
lrwxrwxrwx 1         16 20 nov.  12:58 libjpeg.so -> libjpeg.so.8.0.2
lrwxrwxrwx 1         16 20 nov.  12:58 libjpeg.so.8 -> libjpeg.so.8.0.2
-rwxr-xr-x 1    1043702 20 nov.  12:58 libjpeg.so.8.0.2

-rw-r--r-- 1    1693912 20 nov.  13:05 liblog4cpp.a
-rwxr-xr-x 1       1028 20 nov.  13:05 liblog4cpp.la
lrwxrwxrwx 1         19 20 nov.  13:05 liblog4cpp.so -> liblog4cpp.so.5.0.6
lrwxrwxrwx 1         19 20 nov.  13:05 liblog4cpp.so.5 -> liblog4cpp.so.5.0.6
-rwxr-xr-x 1     795481 20 nov.  13:05 liblog4cpp.so.5.0.6
-rw-r--r-- 1    2852344 20 nov.  12:59 libmemcached.a
-rwxr-xr-x 1       1039 20 nov.  12:59 libmemcached.la
lrwxrwxrwx 1         22 20 nov.  12:59 libmemcached.so -> libmemcached.so.11.0.0
lrwxrwxrwx 1         22 20 nov.  12:59 libmemcached.so.11 -> libmemcached.so.11.0.0
-rwxr-xr-x 1    1288897 20 nov.  12:59 libmemcached.so.11.0.0
-rw-r--r-- 1     200672 20 nov.  12:59 libmemcachedutil.a
-rwxr-xr-x 1       1155 20 nov.  12:59 libmemcachedutil.la
lrwxrwxrwx 1         25 20 nov.  12:59 libmemcachedutil.so -> libmemcachedutil.so.2.0.0
lrwxrwxrwx 1         25 20 nov.  12:59 libmemcachedutil.so.2 -> libmemcachedutil.so.2.0.0
-rwxr-xr-x 1     105071 20 nov.  12:59 libmemcachedutil.so.2.0.0
-rw-r--r-- 1    1214656 20 nov.  12:57 libpng16.a
-rwxr-xr-x 1        990 20 nov.  12:57 libpng16.la
lrwxrwxrwx 1         18 20 nov.  12:57 libpng16.so -> libpng16.so.16.0.0
lrwxrwxrwx 1         18 20 nov.  12:57 libpng16.so.16 -> libpng16.so.16.0.0
-rwxr-xr-x 1     708033 20 nov.  12:57 libpng16.so.16.0.0
lrwxrwxrwx 1         10 20 nov.  12:57 libpng.a -> libpng16.a
lrwxrwxrwx 1         11 20 nov.  12:57 libpng.la -> libpng16.la
lrwxrwxrwx 1         11 20 nov.  12:57 libpng.so -> libpng16.so
-rw-r--r-- 1    2451110 20 nov.  13:05 libproj.a
-rwxr-xr-x 1        972 20 nov.  13:05 libproj.la
lrwxrwxrwx 1         16 20 nov.  13:05 libproj.so -> libproj.so.0.7.0
lrwxrwxrwx 1         16 20 nov.  13:05 libproj.so.0 -> libproj.so.0.7.0
-rwxr-xr-x 1    1143747 20 nov.  13:05 libproj.so.0.7.0
-rwxr-xr-x 1        987 20 nov.  13:05 libsigc-2.0.la
lrwxrwxrwx 1         20 20 nov.  13:05 libsigc-2.0.so -> libsigc-2.0.so.0.0.0
lrwxrwxrwx 1         20 20 nov.  13:05 libsigc-2.0.so.0 -> libsigc-2.0.so.0.0.0
-rwxr-xr-x 1     141243 20 nov.  13:05 libsigc-2.0.so.0.0.0
-rw-r--r-- 1    2268532 20 nov.  13:01 libtiff.a
-rwxr-xr-x 1       1232 20 nov.  13:01 libtiff.la
lrwxrwxrwx 1         16 20 nov.  13:01 libtiff.so -> libtiff.so.5.2.0
lrwxrwxrwx 1         16 20 nov.  13:01 libtiff.so.5 -> libtiff.so.5.2.0
-rwxr-xr-x 1    1352864 20 nov.  13:01 libtiff.so.5.2.0

-rw-r--r-- 1      93822 20 nov.  13:01 libtiffxx.a
-rwxr-xr-x 1       1323 20 nov.  13:01 libtiffxx.la
lrwxrwxrwx 1         18 20 nov.  13:01 libtiffxx.so -> libtiffxx.so.5.2.0
lrwxrwxrwx 1         18 20 nov.  13:01 libtiffxx.so.5 -> libtiffxx.so.5.2.0
-rwxr-xr-x 1      61976 20 nov.  13:01 libtiffxx.so.5.2.0
-rw-r--r-- 1    7209430 20 nov.  13:04 libxml2.a
-rwxr-xr-x 1        988 20 nov.  13:04 libxml2.la
lrwxrwxrwx 1         16 20 nov.  13:04 libxml2.so -> libxml2.so.2.7.7
lrwxrwxrwx 1         16 20 nov.  13:04 libxml2.so.2 -> libxml2.so.2.7.7
-rwxr-xr-x 1    4238053 20 nov.  13:04 libxml2.so.2.7.7
-rw-r--r-- 1     125718 20 nov.  12:58 libz.a
lrwxrwxrwx 1         13 20 nov.  12:58 libz.so -> libz.so.1.2.7
lrwxrwxrwx 1         13 20 nov.  12:58 libz.so.1 -> libz.so.1.2.7
-rwxr-xr-x 1      98739 20 nov.  12:58 libz.so.1.2.7
drwxr-sr-x 2       4096 20 nov.  13:43 pkgconfig
-rw-r--r-- 1         44 20 nov.  12:57 ReadMe_mod_map.txt
drwxr-sr-x 3       4096 20 nov.  13:05 sigc++-2.0
-rw-r--r-- 1        320 20 nov.  13:04 xml2Conf.sh


For more details, here is my "config.log". https://gist.github.com/anonymous/7577980

I checked the content of this log. It's true that two of the conftest are in trouble:

1. conftest_8

g++ -o .sconf_temp/conftest_8.o -c -I/app/labo/laboYY/mapbuild/tmpworkdir/usr/include -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_TIFF -Iinclude -I. -I/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/freetype_2_4_11/include/freetype2 -I/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/freetype_2_4_11/include -I/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/libxml2_2_7_7/include/libxml2 -I/app/labo/laboYY/mapbuild/tmpworkdir/usr/include -I/usr/include .sconf_temp/conftest_8.cpp
g++ -o .sconf_temp/conftest_8 -L/app/labo/laboYY/mapbuild/tmpworkdir/usr/lib .sconf_temp/conftest_8.o -Lsrc -L/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/freetype_2_4_11/lib -L/app/labo/laboYY/mapbuild/tmpworkdir/usr/lib -L/usr/lib -lfreetype -lz -lz -licuuc -ljpeg -lproj -lpng -ltiff
.sconf_temp/conftest_8 > .sconf_temp/conftest_8.out
scons: Configure: Checking for ICU version >= 4.2...
scons: Configure: (cached) Searching for boost libs and headers...
scons: Configure: (cached) ^[[94m

It failed to launch the conftest_8.
And I tried to launch in command line

mapnik-v2.2.0 >.sconf_temp/conftest_8
.sconf_temp/conftest_8: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

Then I understood why I got this error. The environ library path has not indicated the path to this library.

I added this path to LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/app/labo/laboYY/mapbuild/tmpworkdir/usr/lib

And then it worked:

mapnik-v2.2.0 >.sconf_temp/conftest_8                       
4.6

And the configure works too.
mapnik-v2.2.0 >./configure PREFIX=$prefix CUSTOM_CXXFLAGS=-I$TMP_INC_LIB_DIR/include CUSTOM_LDFLAGS=-L$TMP_INC_LIB_DIR/lib BOOST_INCLUDES=${TMP_INC_LIB_DIR}/include BOOST_LIBS=${TMP_INC_LIB_DIR}/lib ICU_INCLUDES=${TMP_INC_LIB_DIR}/include ICU_LIBS=${TMP_INC_LIB_DIR}/lib PKG_CONFIG_PATH=$TMP_INC_LIB_DIR/lib/pkgconfig INPUT_PLUGINS=shape,postgis DEMO=False DEBUG=False MAPNIK_STATS=True RENDERING_STATS=True ENABLE_STATS=True DEFAULT_LOG_SEVERITY=debug FREETYPE_CONFIG=${TMP_INC_LIB_DIR}/bin/freetype-config XML2_CONFIG=${TMP_INC_LIB_DIR}/bin/xml2-config PG_CONFIG=/app/labo/laboYY/mapbuild/tmpworkdir/CppExternalLib/postgresql_9_3_1/bin/pg_config --verbose

scons: Reading SConscript files ...
Welcome to Mapnik...
Configuring build environment...
Configuring on Linux in *release mode*...
Checking for freetype-config... yes
Checking for xml2-config... yes
Checking for C library z... yes
Checking for C++ library icuuc... yes
Checking for C library jpeg... yes
Checking for C library proj... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for ICU version >= 4.2... found: icu 4.6

(cached) Searching for boost libs and headers... (cached)
Found boost libs: /app/labo/laboYY/mapbuild/tmpworkdir/usr/lib
Found boost headers: /app/labo/laboYY/mapbuild/tmpworkdir/usr/include
Checking for C++ header file boost/version.hpp... yes
Checking for Boost version >= 1.47... yes
Found boost lib version... 1_51

Checking for C++ library boost_system... yes
Checking for C++ library boost_filesystem... yes
Checking for C++ library boost_regex... yes
Checking for C++ library boost_program_options... yes
Checking for C++ library boost_thread... yes
Checking if boost_regex was built with ICU unicode support... (cached) no

Checking for pkg-config... yes
Checking for requested plugins dependencies...
Checking for pg_config... yes
Checking for cairo... no
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pycairo... no
All Required dependencies found!
Saving new file 'config.py'...
Will hold custom path variables from commandline and python config file(s)...
Note: will build without these OPTIONAL dependencies:
   - boost_regex_icu (libboost_regex built with optional ICU unicode support is needed for unicode regex support in mapnik.)

   - cairo (Cairo C library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)
   - pycairo (Python bindings to Cairo library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)
Checking for C header file Python.h... no
Could not find required header files for the Python language (version 2.6)


That's great. Thank you for your reply.

I've a question there: Is there a way to resolve this problem without touche the env of the OS(add path in LD_LIBRARY_PATH)? I've specified this path in my CUSTOM_LDFLAGS of configure command. Is there a solution to solve this by modify the script SConstruct myself?

Thank you very much.

Best regards,
Skyvin
Reply all
Reply to author
Forward
0 new messages