matthieu637 / ddrl

Deep Developmental Reinforcement Learning
MIT License
29 stars 3 forks source link

Error when compile ddrl #3

Closed huangjiancong1 closed 5 years ago

huangjiancong1 commented 5 years ago

System: ubuntu 16: Caffe: use the package your sharing

 ./fullBuild.bash 
optional install : astyle
optional install : cppcheck
optional install : cpplint
optional install : valgrind
optional install : xml
INFO : 8 CPU used
INFO : cmake well founded. Look what following to know if you need other software.
QUESTION : if a subdirectory already contains a build, should I remove it ? (y/n) [y]:
y
---------------------------------------------------------------------------------
INFO : common well builed. Congratz.
---------------------------------------------------------------------------------
INFO : environment/ode-env well builed. Congratz.
---------------------------------------------------------------------------------
Scanning dependencies of target humanoid
Scanning dependencies of target humanoid-env
[ 28%] Building CXX object CMakeFiles/humanoid-env.dir/src/test/Humanoid.cpp.o
[ 28%] Building CXX object CMakeFiles/humanoid.dir/src/HumanoidWorldView.cpp.o
[ 42%] Building CXX object CMakeFiles/humanoid-env.dir/src/HumanoidWorldView.cpp.o
[ 57%] Building CXX object CMakeFiles/humanoid.dir/src/HumanoidWorld.cpp.o
[ 71%] Building CXX object CMakeFiles/humanoid-env.dir/src/HumanoidWorld.cpp.o
[ 85%] Linking CXX shared library ../../lib/libhumanoid.so
[ 85%] Built target humanoid
[100%] Linking CXX executable humanoid-env
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFSetTagExtender@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFGetTagListCount@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFTileRowSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldTag@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFSwabArrayOfLong@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFCurrentDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFLastDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFIsByteSwapped@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldPassCount@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldDataType@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFStripSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFSetSubDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFReadRGBAImage@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `_TIFFDataSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFComputeStrip@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFReadTile@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFMergeFieldInfo@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFSetField@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFDataWidth@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFGetField@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldWithTag@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFWriteDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFTileSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldName@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFFieldReadCount@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFReadEXIFDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFGetTagListEntry@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libfreeimage.so.3: undefined reference to `TIFFClientOpen@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
CMakeFiles/humanoid-env.dir/build.make:181: recipe for target 'humanoid-env' failed
make[2]: *** [humanoid-env] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/humanoid-env.dir/all' failed
make[1]: *** [CMakeFiles/humanoid-env.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
huangjiancong1 commented 5 years ago

Is it about the question I using anconda env?

huangjiancong1 commented 5 years ago

Can you explain more detail about this number?

#DEBUG :/home/jim/ddrl/environment/humanoid/src/HumanoidWorld.cpp.171 : total mass : 39.6458
(25,50)-CMA-ES(mu_eff=14.2), Ver="3.20.00.beta", dimension=1592, diagonalIterations=0, randomSeed=1497845244 (Sat Jun 22 09:01:00 2019)
#DEBUG :/home/jim/ddrl/agent/cmaes/include/CMAESAg.hpp.107 : 50 1592 50 1592
#INFO :/home/jim/ddrl/agent/cmaes/../../common/include/arch/Simulator.hpp.235 : L 0     24      83.06460 0.00000 0.0364421772
#INFO :/home/jim/ddrl/agent/cmaes/../../common/include/arch/Simulator.hpp.235 : T 0     20      40.55401 0.00000 0.0043892198
#INFO :/home/jim/ddrl/agent/cmaes/../../common/include/arch/Simulator.hpp.235 : L 100   22      57.45529 0.00000 0.0166281666

And, I found that it seems I miss some dependency software because when I run the --view option, the simulator is always black.

matthieu637 commented 5 years ago

I just tried a compilation on a fresh Ubuntu 16 and it worked well. So I guess it's because of anaconda. You shouldn't activate anaconda during the compilation or when you run internal C++ ODE environments.

You may activate anaconda after the compilation, if you want to use the algorithms on OpenAI gym. I updated the readme accordingly.