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

Error on installation #1

Open
romulofff opened this issue Aug 28, 2022 · 0 comments
Open

Error on installation #1

romulofff opened this issue Aug 28, 2022 · 0 comments

Comments

@romulofff
Copy link

Trying to install this version to work with sound, I'm getting this error when running

python setup.py build && python setup.py install

This is my environment:

  • conda 4.12.0
  • gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  • cmake version 3.21.1
  • Python 3.8.10
running build
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /home/romulofff/miniconda3/envs/sound/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found version "1.76.0") found components: filesystem thread system date_time chrono regex iostreams 
-- Found Threads: TRUE  
CMake Deprecation Warning at src/vizdoom/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at cmake_modules/CreateLaunchers.cmake:48 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  src/vizdoom/CMakeLists.txt:13 (include)


-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Could NOT find GME (missing: GME_INCLUDE_DIR) 
-- Using system zlib
-- Using system jpeg library
-- Using system bzip2 library
-- Using internal gme library
CMake Deprecation Warning at src/vizdoom/game-music-emu/CMakeLists.txt:12 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Performing Test HAVE_NO_ARRAY_BOUNDS
-- Performing Test HAVE_NO_ARRAY_BOUNDS - Success
-- Performing Test __LIBGME_TEST_VISIBILITY
-- Performing Test __LIBGME_TEST_VISIBILITY - Success
CMake Error at src/vizdoom/game-music-emu/CMakeLists.txt:90 (if):
  if given arguments:

    "(" "VERSION_GREATER" "4.1" ")" "OR" "(" "VERSION_EQUAL" "4.1" ")"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/home/romulofff/Documentos/mestrado/code/hedge95/ViZDoom_with_Sound/CMakeFiles/CMakeOutput.log".
See also "/home/romulofff/Documentos/mestrado/code/hedge95/ViZDoom_with_Sound/CMakeFiles/CMakeError.log".

Installation failed, you may be missing some dependencies. 
Please check https://github.com/mwydmuch/ViZDoom/blob/master/doc/Building.md for details

Traceback (most recent call last):
  File "setup.py", line 91, in <module>
    setup(
  File "/home/romulofff/miniconda3/envs/sound/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/romulofff/miniconda3/envs/sound/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/romulofff/miniconda3/envs/sound/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/romulofff/miniconda3/envs/sound/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 81, in run
    subprocess.check_call(['cmake'] + cmake_arg_list)
  File "/home/romulofff/miniconda3/envs/sound/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_BUILD_TYPE=Release', '-DBUILD_PYTHON=ON', '-DPYTHON_EXECUTABLE=/home/romulofff/miniconda3/envs/sound/bin/python3.8', '-DBUILD_PYTHON3=ON']' returned non-zero exit status 1.

So far I haven't found a solution to this. I tried installing all the required libraries using this, but it still didn't work.


# ZDoom dependencies
sudo apt-get install build-essential zlib1g-dev libsdl2-dev libjpeg-dev \
nasm tar libbz2-dev libgtk2.0-dev cmake git libfluidsynth-dev libgme-dev \
libopenal-dev timidity libwildmidi-dev unzip

# Boost libraries
sudo apt-get install libboost-all-dev

# Python 2 dependencies
sudo apt-get install python-dev python-pip
pip install numpy
# or install Anaconda 2 and add it to PATH

# Python 3 dependencies
sudo apt-get install python3-dev python3-pip
pip3 install numpy
# or install Anaconda 3 and add it to PATH

# Lua binding dependencies
sudo apt-get install liblua5.1-dev
# Lua shipped with Torch can be used instead, so it isn't needed if installing via LuaRocks

# Julia dependencies
sudo apt-get install julia
julia
julia> Pkg.add("CxxWrap")
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

1 participant