On Thu, Nov 20, 2008 at 1:13 AM, Gilles Bassière
<[EMAIL PROTECTED]> wrote:
> Hi Vu Hung,
>
> I often had troubles with boost names, it's somewhat confusing I agree.
> Regarding the gcc version mention, I believe the BOOST_TOOLKIT has been
> added to scons option to solve this problem.
>
Thanks for your information.  BOOST_TOOLKIT seems to work for me.
I did not need to specify BOOST_VERSION=1_37.

cf:
https://trac.mapnik.org/ticket/90

my build comands now look like:

# to clean
/usr/bin/python scons/scons.py
BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37
BOOST_LIBS=$HOME/opt/boost/lib BOOST_TOOLKIT=gcc41 -c

# to complie
/usr/bin/python scons/scons.py
BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37
BOOST_LIBS=$HOME/opt/boost/lib BOOST_TOOLKIT=gcc41

# to install
sudo /usr/bin/python scons/scons.py
BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37
BOOST_LIBS=$HOME/opt/boost/lib BOOST_TOOLKIT=gcc41 install

> Regards
> Gilles
>
> Nguyen Vu Hung wrote:
>>
>> Never mind, I fixed it myself.
>>
>> At some point, I've rebuilt boost but I didn't rebuild mapnik.
>>
>> I clean mapnik by running
>>
>> /usr/bin/python scons/scons.py  -c
>>
>> and then
>>
>> /usr/bin/python scons/scons.py
>> /usr/bin/python scons/scons.py  install
>>
>> and it worked.
>>
>> Btw, under CentOs 5, the libraries generated by boost have *gcc41* in
>> their names,
>> so I had to do:
>>
>> cd /home/vuhung/opt/boost/lib
>> ln -s libboost_filesystem-gcc41-mt.solibboost_filesystem-mt.so
>> ln -s libboost_regex-gcc41-mt.solibboost_regex-mt.so
>> ln -s libboost_iostreams-gcc41-mt.solibboost_iostreams-mt.so
>> ln -s libboost_program_options-gcc41-mt.solibboost_program_options-mt.so
>> ln -s libboost_thread-gcc41-mt.solibboost_thread-mt.so
>> ln -s libboost_python-gcc41-mt.solibboost_python-mt.so
>>
>> If you think this worths to be added to:
>> http://trac.mapnik.org/wiki/InstallationTroubleshooting
>> I will do.
>>
>> On Wed, Nov 19, 2008 at 10:39 PM, Nguyen Vu Hung <[EMAIL PROTECTED]>
>> wrote:
>>
>>>
>>> Hi all,
>>>
>>> I've tried to install mapnik and import it from python. Here is what I
>>> did:
>>>
>>> 1. CentOs 5.0, gcc 4.1.2, libstdc++-4.1.2, python  2.4.3( default).
>>>
>>> 2. boost_1_37_0]$ cat vh-config.sh
>>> make clean
>>> sh ./configure --prefix=$HOME/opt/boost --with-icu
>>> --with-python=/usr/bin/python
>>> make
>>> make install
>>>
>>> 3. mapnik-0.5.1]$ cat vh-scons.sh
>>> /usr/bin/python scons/scons.py
>>> BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37
>>> BOOST_LIBS=$HOME/opt/boost/lib
>>> sudo /usr/bin/python scons/scons.py
>>> BOOST_INCLUDES=$HOME/opt/boost/include/boost-1_37
>>> BOOST_LIBS=$HOME/opt/boost/lib install
>>>
>>> Then I tried to import mapnik, but ended up with an error.
>>> 4. $ /usr/bin/python
>>> Python 2.4.3 (#1, May 24 2008, 13:47:28)
>>> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
>>> Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>>>>
>>>>>> from mapnik import *
>>>>>>
>>>
>>> Traceback (most recent call last):
>>>  File "<stdin>", line 1, in ?
>>>  File "/usr/lib/python2.4/site-packages/mapnik/__init__.py", line 31, in
>>> ?
>>>   from _mapnik import *
>>> ImportError:
>>> /home/vuhung/opt/boost/lib/libboost_python-gcc41-mt-1_37.so.1.37.0:
>>> undefined symbol: _Py_RefTotal
>>>
>>> I am new to both boost, python and mapnik.
>>>
>>> Any ideas?
>>>
>>>
>>> --
>>> Best Regards,
>>> Nguyen Hung Vu ( Nguyễn Vũ Hưng )
>>> [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg
>>> A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html
>>>
>>>
>>
>>
>>
>>
>
> --
> Gilles Bassiere
> MAKINA CORPUS
> 30 rue des Jeuneurs
> FR-75002 PARIS
> +33 (0) 1 44 82 00 80
> http://www.makina-corpus.com
>
>



-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
[EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to