Coder Social home page Coder Social logo

Comments (9)

SimsGautam avatar SimsGautam commented on May 27, 2024

I get the following error when trying to install in OSX:
ld: library not found for -lrt
clang: error: linker command failed with exit code 1

from vizdoom.

wjaskowski avatar wjaskowski commented on May 27, 2024

This is near to impossible. Are you sure you have the most recent version from the master? Pull it once again. Then execute cmake_clean.sh. Then try again cmake . && make and let me know.

from vizdoom.

jimfleming avatar jimfleming commented on May 27, 2024

@SimsGautam Also make sure you've opened Xcode before and accepted the ToS. Without doing so many random things will break.

EDIT: I believe you can also use sudo xcodebuild -license.

from vizdoom.

allentran avatar allentran commented on May 27, 2024

Thanks for this, I'm having trouble running the the example:

  File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 548, in <module>
    main()
  File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 530, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 266, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 241, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/local/bin/../Cellar/python/2.7.11/bin/../Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 231, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 520, in get_config_var
    return get_config_vars().get(name)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 453, in get_config_vars
    import re
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 108, in <module>
    import _locale

Any ideas?

from vizdoom.

wjaskowski avatar wjaskowski commented on May 27, 2024

Well, I assume that you get SystemError: dynamic module not initialized properly at the end of the output you have shown, right? Then, it is related to #45 and it means that something is wrong with your python. I can see that you are using brew'ed python. I use macports so I cannot check myself but for many people using brew the instruction in #46 did the trick. Could you try it and let me know?

from vizdoom.

allentran avatar allentran commented on May 27, 2024

Thanks, cmake definitely found my brew'd Python but then I get this on running make

[  1%] Built target vizdoomstatic
[  1%] Building CXX object CMakeFiles/vizdoompython.dir/vizdoom_api_bindings/python/ViZDoomPythonBinding.o
In file included from /Users/allen.tran/personal/ViZDoom/vizdoom_api_bindings/python/ViZDoomPythonBinding.cpp:23:
/Users/allen.tran/personal/ViZDoom/vizdoom_api_bindings/python/ViZDoomGamePython.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/vizdoompython.dir/vizdoom_api_bindings/python/ViZDoomPythonBinding.o] Error 1
make[1]: *** [CMakeFiles/vizdoompython.dir/all] Error 2
make: *** [all] Error 2

from vizdoom.

wjaskowski avatar wjaskowski commented on May 27, 2024

It seems that your PYTHON_INCLUDE_DIR was set incorrectly. To verify this:

Find PYTHON_INCLUDE_DIR= in CMakeCache.txt (e.g., PYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7) and check whether it contains Python.h:

ls -l /usr/include/python2.7/ | grep Python.h

It probably does not, so you need to set it correctly according to your system as it reads in the "compiling" section: https://github.com/Marqt/ViZDoom/blob/b0dbb4f74d936bd6ad304515395d887fb58d4ad4/README.md#compiling-2

Let me know whether this helped

from vizdoom.

allentran avatar allentran commented on May 27, 2024

Got it working. The relevant include folder for brew Python is /include/python/2.7 so this line in the readme should be DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.x.x/Frameworks/Python.framework/Versions/2.7/include/python2.7 instead of DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.x.x/Frameworks/Python.framework/Versions/2.7/include (note the additional directory at the end).

Thanks for the help, super excited now.

from vizdoom.

wjaskowski avatar wjaskowski commented on May 27, 2024

Thx for letting us know!

from vizdoom.

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.