Closed swtyree closed 7 years ago
Can you check pkg-config --cflags ale
gives the right location?
If not can you try add the ale directory to INCLUDE_DIR
When I call pkg-config --cflags ale
the result is:
Package ale was not found in the pkg-config search path.
Perhaps you should add the directory containing `ale.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ale' found
When I call PKG_CONFIG_PATH=~/Arcade-Learning-Environment/build/ pkg-config --cflags ale
, I get -I/usr/local/include
.
I've tried adding INCLUDE_DIR += ~/Arcade-Learning-Environment/
, INCLUDE_DIR += ~/Arcade-Learning-Environment/build/
, and INCLUDE_DIR += ~/Arcade-Learning-Environment/src/
to the Makefile, each to no avail. Am I missing something in the ALE build? I built according to the instructions on the website.
Hi! I met the same problem as you.And I solved it by running make install
While building ALE.
Right after the official instruction:
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON .
make -j 4
But I encountered another problem. Here is the log:
$make
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
[dep] python_wrapper.cc ...
[dep] atari_game.cc ...
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
[cc] atari_game.cc ...
atari_game.cc: In member function 'void AtariGame::MainLoop(const std::atomic_bool&)':
atari_game.cc:108:27: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> >' has no member named 'newest'
act = _ai_comm->newest().reply.action;
^
atari_game.cc: In member function 'int AtariGame::_prevent_stuck(std::default_random_engine&, int)':
atari_game.cc:158:17: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> >' has no member named 'newest'
_ai_comm->newest().reply.action = act;
^
make: *** [obj/atari_game.o] Error 1
I am running on macOS Sierra and the default python version is 2.7. So I modified Makefile a single line:
PYTHON_CONFIG ?= python3-config
Before makefile I executed some commands:
$ export CC=/usr/local/bin/gcc-4.9
$ export CXX=/usr/local/bin/g++-4.9
Otherwise I get another error:
clang: error: unsupported option '-fopenmp'
I have tried to fix the error by referring to #23
Changed the code in atari_game.cc to _ai_comm->history().newest().reply;
But it even became worse...
Any idea how to fix this? Thank you so much!
Thanks, @haoxu13. I'm running in Docker with Ubuntu 16.04, and I'm now getting the same error you are:
root@9d0d2101153a:~/ELF/atari# PYTHON_CONFIG=/opt/conda/bin/python3-config make
[cc] atari_game.cc ...
atari_game.cc: In member function 'void AtariGame::MainLoop(const atomic_bool&)':
atari_game.cc:108:27: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> > {aka class AICommT<ContextT<GameOptions, GameState, Reply> >}' has no member named 'newest'
act = _ai_comm->newest().reply.action;
^
atari_game.cc: In member function 'int AtariGame::_prevent_stuck(std::default_random_engine&, int)':
atari_game.cc:158:17: error: 'using AIComm = using AIComm = class AICommT<ContextT<GameOptions, GameState, Reply> > {aka class AICommT<ContextT<GameOptions, GameState, Reply> >}' has no member named 'newest'
_ai_comm->newest().reply.action = act;
^
Makefile:65: recipe for target 'obj/atari_game.o' failed
make: *** [obj/atari_game.o] Error 1
Hi, I run into this issue too, and this is how it was resolved: (1) make sure pkg-config --cflags ale finds the package. (2) in my case, without root, my package is not properly installed. so the /usr/local/include is empty (3) I provide the absolute path for header files to ale_interface.hpp in all relevant code (#include "path/to/Arcade-Learning-Environment/src/ale_interface.hpp")
(but i didn't have additional errors and make worked)
After following the instructions to build ALE (in
~/Arcade-Learning-Environment/
), I attempted to buildatari/
. Here's the error with the default make instruction:Here's the error with
PKG_CONFIG_PATH
set to the alebuild/
directory (which containsale.pc
):Any idea how to fix this? Thanks!