Git Product home page Git Product logo

Comments (6)

qucheng avatar qucheng commented on August 15, 2024

Can you check pkg-config --cflags ale gives the right location?
If not can you try add the ale directory to INCLUDE_DIR

from elf.

swtyree avatar swtyree commented on August 15, 2024

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.

from elf.

haoxu13 avatar haoxu13 commented on August 15, 2024

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!

from elf.

swtyree avatar swtyree commented on August 15, 2024

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

from elf.

yuandong-tian avatar yuandong-tian commented on August 15, 2024

@swtyree fixed in 60d9533

from elf.

WendyShang avatar WendyShang commented on August 15, 2024

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)

from elf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.