Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build DeepMind Lab without SDL Library #215

Open
jw447 opened this issue May 3, 2021 · 5 comments
Open

Build DeepMind Lab without SDL Library #215

jw447 opened this issue May 3, 2021 · 5 comments

Comments

@jw447
Copy link

jw447 commented May 3, 2021

Hi,

I'm trying to build the Lab without SDL library. I'm wondering if it is at all possible. I'm trying to run the Lab in a command-line-only environment so no graphics are available.

Thanks,

@tkoeppe
Copy link
Collaborator

tkoeppe commented May 3, 2021

I think if you only build the relevant targets that don't depend on SDL (e.g. the Python module), you shouldn't need SDL.

@jw447
Copy link
Author

jw447 commented May 3, 2021

Thanks. Does that mean I can just get rid of the SDL-related targets in the BUILD file?

such as:
https://github.com/deepmind/lab/blob/2f21c07371e0f2a2c8e6a039b330c44b97d418ff/BUILD#L891

@tkoeppe
Copy link
Collaborator

tkoeppe commented May 3, 2021

Well, you could, sure, but why does it even matter? Just don't build the targets you don't want to build. You only need the dependencies when they're needed, so as long as you don't build anything that needs SDL, nothing requires you to have SDL installed.

@jw447
Copy link
Author

jw447 commented May 3, 2021

I'm not very familiar with the Bazel build system. Could you please direct me on how to build the selected target (python module) with minimal change to the BUILD file?

@ghost
Copy link

ghost commented May 20, 2021

It looks like if you run lab$ bazel build -c opt //:deepmind_lab.so that should build a "headless" version with no SDL. Are you getting an SDL build error? You can also turn off rendering if you can build and the client starts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants