peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

install problem: python setup.py build_ext #53

Open langongjin opened 5 years ago

langongjin commented 5 years ago

hi, when I run "python setup.py build_ext" in the terminal, I got:

ld: library not found for -lboost_python
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang++' failed with exit status 1

Do you have any ideas to solve this problem?

Thanks a lot!

anton-matosov commented 5 years ago

hi @langongjin, it depends where you have installed boost from and which version. it has different naming conventions for libraries. please check what is the name for boost python library on your system and tweak setup.py accordingly

langongjin commented 5 years ago

hi, @anton-matosov I installed the boost-python. The name for boost python in

if is_python_2:
            libs += ['boost_python', "boost_numpy"]
        else:
            libs += ['boost_python3', "boost_numpy3"]

Therefore, can you give me some ideas?