lab icon indicating copy to clipboard operation
lab copied to clipboard

MacOS DeepMind Problem

Open yeonjeong96 opened this issue 5 years ago • 7 comments

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

yeonjeong96 avatar Dec 04 '19 23:12 yeonjeong96

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?

tkoeppe avatar Dec 05 '19 01:12 tkoeppe

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!

yeonjeong96 avatar Dec 05 '19 04:12 yeonjeong96

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?

tkoeppe avatar Dec 05 '19 12:12 tkoeppe

encounter same issue :( anyone can help?

qianlongqf avatar Jan 07 '20 14:01 qianlongqf

same issue here too. verified the SDL2 installation.

shaktikshri avatar Feb 27 '20 20:02 shaktikshri

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

tkoeppe avatar Mar 03 '20 19:03 tkoeppe

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.

tkoeppe avatar Nov 13 '20 00:11 tkoeppe