peter-ch / MultiNEAT

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

Install problem #22

Open yanjundream opened 7 years ago

yanjundream commented 7 years ago

Hi, this is Jun. I have read the papers of the Novelty search and it is very awesome. I tried to install MultiNEAT and use the code to do some experiments but I did not make it. I have tried in two different laptops and they are with same problems.

I have already install the boost and Python3.4 as : ./bootstrap.sh --with-python=python3.4 ./b2 -j8 sudo ./b2 install. And install MulitNEAT as the guide in README.

The errors are following.

for command : python setup.py build_ext


cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mrlgn/.pyenv/versions/3.4.0/include/python3.4m -c src/Utils.cpp -o build/temp.linux-x86_64-3.4/src/Utils.o -march=native -std=gnu++11 -g -Wall -w -DUSE_BOOST_PYTHON -DUSE_BOOST_RANDOM cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -shared -L/home/mrlgn/.pyenv/versions/3.4.0/lib build/temp.linux-x86_64-3.4/src/PythonBindings.o build/temp.linux-x86_64-3.4/src/Genome.o build/temp.linux-x86_64-3.4/src/Innovation.o build/temp.linux-x86_64-3.4/src/NeuralNetwork.o build/temp.linux-x86_64-3.4/src/Parameters.o build/temp.linux-x86_64-3.4/src/PhenotypeBehavior.o build/temp.linux-x86_64-3.4/src/Population.o build/temp.linux-x86_64-3.4/src/Random.o build/temp.linux-x86_64-3.4/src/Species.o build/temp.linux-x86_64-3.4/src/Substrate.o build/temp.linux-x86_64-3.4/src/Utils.o -lboost_python3 -lboost_system -lboost_serialization -o build/lib.linux-x86_64-3.4/MultiNEAT/_MultiNEAT.cpython-34m.so /usr/bin/ld: cannot find -lboost_python3 /usr/bin/ld: cannot find -lboost_system collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1

for command: python setup.py install


cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mrlgn/.pyenv/versions/3.4.0/include/python3.4m -c src/Utils.cpp -o build/temp.linux-x86_64-3.4/src/Utils.o -march=native -std=gnu++11 -g -Wall -w -DUSE_BOOST_PYTHON -DUSE_BOOST_RANDOM cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -shared -L/home/mrlgn/.pyenv/versions/3.4.0/lib build/temp.linux-x86_64-3.4/src/PythonBindings.o build/temp.linux-x86_64-3.4/src/Genome.o build/temp.linux-x86_64-3.4/src/Innovation.o build/temp.linux-x86_64-3.4/src/NeuralNetwork.o build/temp.linux-x86_64-3.4/src/Parameters.o build/temp.linux-x86_64-3.4/src/PhenotypeBehavior.o build/temp.linux-x86_64-3.4/src/Population.o build/temp.linux-x86_64-3.4/src/Random.o build/temp.linux-x86_64-3.4/src/Species.o build/temp.linux-x86_64-3.4/src/Substrate.o build/temp.linux-x86_64-3.4/src/Utils.o -lboost_python3 -lboost_system -lboost_serialization -o build/lib.linux-x86_64-3.4/MultiNEAT/_MultiNEAT.cpython-34m.so /usr/bin/ld: cannot find -lboost_python3 /usr/bin/ld: cannot find -lboost_system collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1


But it seems not work. Do you know where I am wrong? I am really new in this field and could explain a little more in detail about how to implement this? Thank you very much in advance.

vchudinov-zz commented 7 years ago

Hi! What OS are you running on? Also have you installed libboost-all-dev and python-dev packages? I think I needed them last time I was building multineat