miyosuda / async_deep_reinforce

Asynchronous Methods for Deep Reinforcement Learning
Apache License 2.0
592 stars 192 forks source link

build problems about #cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=OFF . #34

Open 4575759ww opened 7 years ago

4575759ww commented 7 years ago

Hi ,when I build the project. $ git clone https://github.com/miyosuda/Arcade-Learning-Environment.git $ cd Arcade-Learning-Environment $ cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=OFF . $ make -j 4

the third step have an error occurred

-- The C compiler identification is AppleClang 8.0.0.8000042 -- The CXX compiler identification is AppleClang 8.0.0.8000042 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR) CMake Error at CMakeLists.txt:21 (if): if given arguments:

"SDL_FOUND" "AND" "VERSION_LESS" "2"

Unknown arguments specified

-- Configuring incomplete, errors occurred! See also "/usr/local/share/Arcade-Learning-Environment/CMakeFiles/CMakeOutput.log".

jsikyoon commented 7 years ago

Hi,

I got same error, and fixed that by installing libsdl-dev.

Please install libsdl development package and re-try cmake :).

https://github.com/laas/toaster/wiki/FAQ