google-deepmind / lab

A customisable 3D platform for agent-based AI research
Other
7.11k stars 1.37k forks source link

MacOS DeepMind Problem #181

Open yeonjeong96 opened 4 years ago

yeonjeong96 commented 4 years ago

I am also following macos deep mind as instructed but keep getting SDL_openg1.h problem. I fixed the Python.h error but am not quite sure if I got it right.

$ bazel run :python_random_agent --define graphics=sdl -- \
>                --length=10000 --width=640 --height=480
INFO: Analyzed target //:python_random_agent (4 packages loaded, 304 targets configured).
INFO: Found 1 target...
ERROR: /Users/ong/Downloads/lab/BUILD:790:1: C++ compilation of rule '//:game_lib_sdl' failed (Exit 1) wrapped_clang failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG -iquote . -iquote ... (remaining 76 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from engine/code/renderergl1/tr_world.c:22:
In file included from engine/code/renderergl1/tr_local.h:31:
In file included from engine/code/renderergl1/../renderercommon/tr_common.h:28:
engine/code/renderergl1/../renderercommon/qgl.h:32:11: fatal error: 'SDL_opengl.h' file not found
#       include <SDL_opengl.h>
                ^~~~~~~~~~~~~~
1 error generated.
Target //:python_random_agent failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3.520s, Critical Path: 1.65s
INFO: 26 processes: 26 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
tkoeppe commented 4 years ago

Could you look around your system to locate SDL_opengl.h? I don't know what exactly is needed to make this work, but you can take a look in the Travis script (https://github.com/deepmind/lab/blob/macos/.travis.yml) to see what we're installing to get this to compile with Travis. It may well be that you need to install different packages on your particular distribution, but I can't really test that. See if you can find out how?

yeonjeong96 commented 4 years ago

I'm not sure if I found the correct file but SDL_opengl.h only exists in qgl.h file located in 'downloads>lab>engine>code>renderercommon' was this what I was supposed to find? I've downloaded everything that I should using brew and also downloaded numpy as instructed. I will try to find more of Travis packages needed but if you can give me any suggestions I'd be happy to try it out!

tkoeppe commented 4 years ago

No, the SDL_opengl.h file should be part of the SDL library. Can you do something like find -L /usr -name SDL_opengl.h or so to look for it? And also look for SDL.h, as a sanity check that SDL2 is indeed installed?

qianlongqf commented 4 years ago

encounter same issue :( anyone can help?

shaktikshri commented 4 years ago

same issue here too. verified the SDL2 installation.

tkoeppe commented 4 years ago

@shaktikshri: did you look for the file? Where is it?

tkoeppe commented 3 years ago

Does anyone here need any help with anything? I haven't looked at the Mac branch for a while, but let me know if there are remaining problems.