Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scons: *** [bindings/python/mapnik_geometry.os] Error 1 #2545

Closed
Dmitry1987 opened this issue Oct 23, 2014 · 7 comments
Closed

scons: *** [bindings/python/mapnik_geometry.os] Error 1 #2545

Dmitry1987 opened this issue Oct 23, 2014 · 7 comments

Comments

@Dmitry1987
Copy link

Hi guys, I'm really sorry if I should not duplicate my posts, but it's my 1st time here. I posted my issue in an old 'topic' from 2011, and now noticed it is 'closed'.
So, now when I figured out what's-where on this site, here is my problem:

google brought me here after I searched:

scons: *** [bindings/python/mapnik_geometry.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

I have installed boost_1_56, and all other libs I found related (from guides of others).

./configure of mapnik shows: All Required dependencies found!

then on "make" it starts with:
....................
scons: warning: Support for pre-2.7.0 Python version (2.6.6) is deprecated.
File "scons/scons.py", line 192, in
scons: Building targets ... [ ====> and here goes "g++ bla bla bla....." a lot <=====]
..................=====> and stops with <=== ............
scons: *** [bindings/python/mapnik_geometry.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2
...........................
what can be wrong? I installed python 2.7 with "make & make altinstall" as guided somewhere. but it didn't help.

Also, something tells me this lines will explain where is the problem (......no matching function for call to ‘eval(const boost........): so i guess it has something to do with boost library?

=> include/mapnik/util/geometry_to_svg.hpp:42: instantiated from here
=> /usr/local/include/boost/phoenix/statement/if.hpp:62: error: no matching function for call to
=> ‘eval(const boost::phoenix::actor >, 0l>,

Thank you!

@springmeyer
Copy link
Member

What Mapnik version are you trying to install?

@Dmitry1987
Copy link
Author

it is 2.2.0 i guess because I used:
git clone https://github.com/mapnik/mapnik.git
cd mapnik
git checkout v2.2.0

I'm actually a bit noob in linux, only 1 year experience.

thanks for quick reply :) I appreciate.

@Dmitry1987
Copy link
Author

I follow a mix of guides in russian and this one: http://duemafoss.blogspot.co.il/2014/02/installation-of-openstreetmap-server-on.html

@springmeyer
Copy link
Member

try:

git checkout 2.2.x

or:

git checkout 2.3.x

Which have fixes for what you are hitting.

@Dmitry1987
Copy link
Author

Thanks! It helped to pass the 'geometry..' file problem. but then stopped after some long time on:
.........................................
bindings/python/mapnik_font_engine.os -Ldeps/agg -Lsrc -L/usr/local/lib -L/usr/lib -lmapnik -lboost_python -lboost_thread

/usr/bin/ld: cannot find -lboost_python

collect2: ld returned 1 exit status
scons: *** [bindings/python/mapnik/_mapnik.so] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2
......................................
(what's the "cannot find -lboost_python" ? seems like linked library missing? in my ld.so.conf i have ----> include ld.so.conf.d/*.conf
/usr/local/lib <-----
and a lot of stuff in "ld.so.conf.d/" folder. )

thank you.

@springmeyer
Copy link
Member

You need to install boost_python.

@Dmitry1987
Copy link
Author

Thanks :) after installing boost-python, boost-devel, and coz i was frustrated boost-* :D it worked.

Is there a list of 'all needed dependencies' somewhere? I didn't find it in README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants