Farama-Foundation / ViZDoom

Reinforcement Learning environments based on the 1993 game Doom :godmode:
https://vizdoom.farama.org/
1.75k stars 405 forks source link

Issue while installing ViZDomm on Ubuntu 16.04 #167

Closed giuseppebonaccorso closed 2 years ago

giuseppebonaccorso commented 7 years ago

I'm trying to install ViZDoom on Ubuntu 16.04, but I experience always the same issue. Does it depend on FMOD? I've tried to follow the instructions for ZDoom but building fails with the same errors. Can you help me? Thanks!

Collecting vizdoom Using cached vizdoom-1.1.0.tar.gz Requirement already satisfied: numpy in ./anaconda2/lib/python2.7/site-packages (from vizdoom) Building wheels for collected packages: vizdoom Running setup.py bdist_wheel for vizdoom ... error Complete output from command /home/giuseppe/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-OVqJCc/vizdoom/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpOJtUJ3pip-wheel- --python-tag cp27: running bdist_wheel running build -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.58.0 -- Found the following Boost libraries: -- filesystem -- thread -- system -- date_time -- chrono -- regex -- iostreams -- atomic -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found JPEG: /home/giuseppe/anaconda2/lib/libjpeg.so -- Found ZLIB: /home/giuseppe/anaconda2/lib/libz.so (found version "1.2.8") -- Could NOT find GME (missing: GME_INCLUDE_DIR) -- Using system zlib -- Using system jpeg library -- Using system bzip2 library -- Using internal gme library -- Performing Test HAVE_NO_ARRAY_BOUNDS -- Performing Test HAVE_NO_ARRAY_BOUNDS - Success -- Performing Test LIBGME_TEST_VISIBILITY -- Performing Test LIBGME_TEST_VISIBILITY - Success -- Looking for strdup -- Looking for strdup - found -- Looking for strndup -- Looking for strndup - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of char -- Check size of char - done -- Check size of short -- Check size of short - done -- Check size of int -- Check size of int - done -- Check size of long -- Check size of long - done -- /home/giuseppe/anaconda2/include -- /usr/include -- /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/lzma/C -- Looking for itoa -- Looking for itoa - not found -- Performing Test DUMB_CAN_USE_SSE -- Performing Test DUMB_CAN_USE_SSE - Success -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'gtk+-2.0' -- Found gtk+-2.0, version 2.24.30 -- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so -- FMOD include files found at /usr/include -- Could not find FMOD library -- Found SndFile: /usr/lib/x86_64-linux-gnu/libsndfile.so -- Found MPG123: /usr/lib/x86_64-linux-gnu/libmpg123.so -- Found FluidSynth: /usr/lib/x86_64-linux-gnu/libfluidsynth.so -- Selected assembler: /usr/bin/as -- Looking for filelength -- Looking for filelength - not found -- Looking for strupr -- Looking for strupr - not found -- Looking for stricmp -- Looking for stricmp - not found -- Looking for strnicmp -- Looking for strnicmp - not found -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Performing Test HAS_VA_COPY -- Performing Test HAS_VA_COPY - Success -- Boost version: 1.58.0 -- Found the following Boost libraries: -- thread -- system -- date_time -- chrono -- atomic -- Fluid synth libs: /usr/lib/x86_64-linux-gnu/libfluidsynth.so -- Found PythonInterp: /home/giuseppe/anaconda2/bin/python2 (found suitable version "2.7.12", minimum required is "2") -- Found PythonLibs: /home/giuseppe/anaconda2/lib/python2.7/config/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7") -- Boost version: 1.58.0 -- Found the following Boost libraries: -- python -- Found NUMPY: /home/giuseppe/anaconda2/lib/python2.7/site-packages/numpy/core/include -- Found components for NumPy -- NUMPY_ROOT_DIR = /usr/local -- NUMPY_INCLUDES = /home/giuseppe/anaconda2/lib/python2.7/site-packages/numpy/core/include -- NUMPY_LIBRARIES = -- NUMPY_API_VERSION = 1.11.3 -- Configuring done -- Generating done -- Build files have been written to: /tmp/pip-build-OVqJCc/vizdoom Scanning dependencies of target lemon Scanning dependencies of target arithchk [ 0%] Building C object src/vizdoom/tools/lemon/CMakeFiles/lemon.dir/lemon.o [ 0%] Building C object src/vizdoom/gdtoa/CMakeFiles/arithchk.dir/arithchk.o Scanning dependencies of target libvizdoom_shared Scanning dependencies of target libvizdoom_static Scanning dependencies of target lzma [ 0%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomConfigLoader.cpp.o [ 0%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomConfigLoader.cpp.o [ 1%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zArcIn.o [ 1%] Linking C executable arithchk Scanning dependencies of target dumb [ 1%] Built target arithchk [ 1%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zBuf.o [ 1%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/unload.o [ 1%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/rendsig.o [ 2%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomSharedMemory.cpp.o Scanning dependencies of target gme [ 2%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Blip_Buffer.cpp.o [ 2%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/rendduh.o [ 3%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/register.o [ 3%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/readduh.o [ 3%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zCrc.o [ 3%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Classic_Emu.cpp.o [ 3%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/rawsig.o [ 3%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zCrcOpt.o [ 3%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/makeduh.o [ 3%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zDec.o [ 3%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Data_Reader.cpp.o [ 3%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/loadduh.o [ 4%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/dumbfile.o Scanning dependencies of target re2c [ 4%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Dual_Resampler.cpp.o [ 5%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/7zStream.o [ 5%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/actions.o [ 5%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/duhtag.o [ 5%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Bcj2.o [ 5%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/duhlen.o /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/lzma/C/Bcj2.c: In function ‘Bcj2Dec_Decode’: /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/lzma/C/Bcj2.c:235:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] SetUi32(p->temp, val); ^ [ 6%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Effects_Buffer.cpp.o [ 6%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/core/atexit.o [ 6%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Bra.o [ 6%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/stdfile.o [ 6%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Bra86.o [ 6%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/silence.o [ 6%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/BraIA64.o [ 7%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/sampbuf.o [ 7%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/CpuArch.o [ 7%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/riff.o [ 7%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Fir_Resampler.cpp.o [ 8%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Delta.o [ 8%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/resample.o [ 8%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/LzFind.o [ 8%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/gme.cpp.o [ 9%] Linking C executable lemon /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/tools/lemon [ 9%] Built target lemon [ 9%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Lzma2Dec.o [ 9%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomMessageQueue.cpp.o [ 9%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gme_File.cpp.o [ 9%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/LzmaDec.o [ 9%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/M3u_Playlist.cpp.o [ 9%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Multi_Buffer.cpp.o [ 9%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/code.o [ 9%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/LzmaEnc.o [ 10%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Music_Emu.cpp.o [ 10%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Ay_Apu.cpp.o [ 10%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Ym2612_Emu.cpp.o [ 10%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Sms_Apu.cpp.o [ 11%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Ppmd7.o [ 11%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomSharedMemory.cpp.o [ 11%] Building C object src/vizdoom/lzma/CMakeFiles/lzma.dir/C/Ppmd7Dec.o [ 11%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomMessageQueue.cpp.o [ 11%] Linking C static library liblzma.a [ 11%] Built target lzma Scanning dependencies of target freedoom2 [ 11%] Built target freedoom2 Scanning dependencies of target updaterevision [ 11%] Building C object src/vizdoom/tools/updaterevision/CMakeFiles/updaterevision.dir/updaterevision.o [ 12%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomController.cpp.o [ 12%] Linking C executable updaterevision [ 12%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomController.cpp.o [ 12%] Built target updaterevision Scanning dependencies of target output_sdl [ 12%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Ay_Cpu.cpp.o [ 12%] Building C object src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/output_sdl.o /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:86:86: error: unknown type name ‘FMOD_CAPS’ static FMOD_RESULT F_CALLBACK GetDriverCaps(FMOD_OUTPUT_STATE output_state, int id, FMOD_CAPS caps) ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:197:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion] "SDL Output", // name ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:197:2: note: (near initialization for ‘Desc.apiversion’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:197:2: error: initializer element is not computable at load time /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:197:2: note: (near initialization for ‘Desc.apiversion’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:198:2: warning: initialization makes pointer from integer without a cast [-Wint-conversion] 1, // version ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:198:2: note: (near initialization for ‘Desc.name’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:200:2: warning: initialization makes integer from pointer without a cast [-Wint-conversion] GetNumDrivers, ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:200:2: note: (near initialization for ‘Desc.polling’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:200:2: error: initializer element is not computable at load time /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:200:2: note: (near initialization for ‘Desc.polling’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:201:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] GetDriverName, ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:201:2: note: (near initialization for ‘Desc.getnumdrivers’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:202:2: error: ‘GetDriverCaps’ undeclared here (not in a function) GetDriverCaps, ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:203:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] Init, ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:203:2: note: (near initialization for ‘Desc.init’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:206:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] GetHandle, ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:206:2: note: (near initialization for ‘Desc.close’) /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:212:1: error: unknown type name ‘F_DECLSPEC’ F_DECLSPEC F_DLLEXPORT FMOD_OUTPUT_DESCRIPTION F_API FMODGetOutputDescription() ^ /tmp/pip-build-OVqJCc/vizdoom/src/vizdoom/output_sdl/output_sdl.c:212:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘FMOD_OUTPUT_DESCRIPTION’ F_DECLSPEC F_DLLEXPORT FMOD_OUTPUT_DESCRIPTION F_API FMODGetOutputDescription() ^ src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/build.make:62: set di istruzioni per l'obiettivo "src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/output_sdl.o" non riuscito make[2]: [src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/output_sdl.o] Errore 1 CMakeFiles/Makefile2:955: set di istruzioni per l'obiettivo "src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/all" non riuscito make[1]: [src/vizdoom/output_sdl/CMakeFiles/output_sdl.dir/all] Errore 2 make[1]: * Attesa per i processi non terminati.... [ 13%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Ay_Emu.cpp.o [ 13%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/memfile.o [ 13%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gb_Apu.cpp.o [ 13%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/clickrem.o [ 13%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gb_Cpu.cpp.o [ 14%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/dfa.o [ 14%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gb_Oscs.cpp.o [ 15%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/barray.o [ 15%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gbs_Emu.cpp.o [ 15%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Gym_Emu.cpp.o [ 15%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/xmeffect.o [ 15%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readxm2.o [ 15%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readxm.o [ 16%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Hes_Apu.cpp.o [ 16%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Hes_Cpu.cpp.o [ 16%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Hes_Emu.cpp.o [ 16%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Kss_Cpu.cpp.o [ 16%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readstm2.o [ 16%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readstm.o [ 16%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/main.o [ 16%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/mbo_getopt.o [ 16%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Kss_Emu.cpp.o [ 17%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/reads3m2.o [ 17%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/reads3m.o [ 17%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomPathHelpers.cpp.o [ 18%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Kss_Scc_Apu.cpp.o [ 18%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Apu.cpp.o [ 18%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Cpu.cpp.o [ 18%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readriff.o [ 18%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Fme7_Apu.cpp.o [ 18%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readptm.o [ 18%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Namco_Apu.cpp.o [ 18%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readpsm.o [ 19%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readoldpsm.o [ 19%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Oscs.cpp.o [ 20%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nes_Vrc6_Apu.cpp.o [ 20%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/parser.o [ 20%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/scanner.o [ 20%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readokt2.o [ 20%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readokt.o [ 20%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nsf_Emu.cpp.o [ 20%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readmtm.o [ 20%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Nsfe_Emu.cpp.o [ 20%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readmod2.o [ 20%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readmod.o [ 20%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Sap_Apu.cpp.o [ 21%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readdsmf.o [ 22%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/substr.o [ 22%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readasy.o [ 22%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Sap_Cpu.cpp.o [ 22%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readamf2.o [ 22%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readamf.o [ 22%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readam.o [ 23%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Sap_Emu.cpp.o [ 24%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/read6692.o [ 24%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/read669.o [ 24%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Snes_Spc.cpp.o [ 24%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/ptmeffect.o [ 24%] Building CXX object src/vizdoom/tools/re2c/CMakeFiles/re2c.dir/translate.o [ 24%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Spc_Cpu.cpp.o [ 24%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Spc_Dsp.cpp.o [ 24%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomExceptions.cpp.o [ 24%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadxm2.o [ 24%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadxm.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadstm2.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadstm.o [ 25%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Spc_Emu.cpp.o [ 25%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomUtilities.cpp.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loads3m2.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loads3m.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadriff2.o [ 25%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadriff.o [ 26%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadptm2.o [ 27%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Spc_Filter.cpp.o [ 27%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadptm.o [ 27%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Vgm_Emu.cpp.o [ 27%] Building CXX object CMakeFiles/libvizdoom_static.dir/src/lib/ViZDoomGame.cpp.o [ 27%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadpsm2.o [ 27%] Linking CXX executable re2c [ 27%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadpsm.o [ 27%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadoldpsm2.o [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadoldpsm.o [ 28%] Built target re2c [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadokt2.o [ 28%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Vgm_Emu_Impl.cpp.o [ 28%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomPathHelpers.cpp.o [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadokt.o [ 28%] Building CXX object src/vizdoom/game-music-emu/gme/CMakeFiles/gme.dir/Ym2413_Emu.cpp.o [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadmtm2.o [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadmtm.o [ 28%] Linking CXX static library libgme.a [ 28%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomExceptions.cpp.o [ 28%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadmod2.o [ 29%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadmod.o [ 29%] Built target gme [ 29%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadasy2.o [ 29%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomUtilities.cpp.o [ 29%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadasy.o [ 29%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadamf2.o [ 29%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadamf.o [ 30%] Building CXX object CMakeFiles/libvizdoom_shared.dir/src/lib/ViZDoomGame.cpp.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/load6692.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/load669.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itunload.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itrender.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itread2.o [ 31%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itread.o [ 32%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itorder.o [ 32%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itmisc.o [ 32%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itload2.o [ 32%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/itload.o [ 32%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readany.o [ 33%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadany2.o [ 33%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/loadany.o [ 33%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/it/readany2.o [ 33%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/resampler.o [ 33%] Building C object src/vizdoom/dumb/CMakeFiles/dumb.dir/src/helpers/lpc.o [ 33%] Linking C static library libdumb.a [ 33%] Built target dumb [ 33%] Linking CXX static library liblibvizdoom_static.a [ 33%] Built target libvizdoom_static [ 33%] Linking CXX shared library bin/libvizdoom.so [ 33%] Built target libvizdoom_shared Makefile:83: set di istruzioni per l'obiettivo "all" non riuscito make: * [all] Errore 2

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

Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-OVqJCc/vizdoom/setup.py", line 92, in keywords=['vizdoom', 'doom', 'ai', 'deep learning', 'reinforcement learning', 'research'] File "/home/giuseppe/anaconda2/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/giuseppe/anaconda2/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 179, in run self.run_command('build') File "/home/giuseppe/anaconda2/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip-build-OVqJCc/vizdoom/setup.py", line 47, in run subprocess.check_call(['make', '-j', str(cpu_cores)]) File "/home/giuseppe/anaconda2/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j', '7']' returned non-zero exit status 2


Failed building wheel for vizdoom

mwydmuch commented 7 years ago

https://forum.zdoom.org/viewtopic.php?f=2&t=51701 - looks like similar problem.

So ZDoom supports many different sound libraries. FMOD isn't required and I believe isn't even recommended for Linux but CMake finds some parts of FMOD on your machine and tries to build against it.

-- FMOD include files found at /usr/include
-- Could not find FMOD library

This looks suspicious.

Try this: Clone ViZDoom repo, add -DNO_FMOD=ON argument to cmake in setup.py and use pip install <vizdoom_dir>.

giuseppebonaccorso commented 7 years ago

Thanks for your answer. I've built successfully, but when I try to install with pip, it always seems that something is missing.

... Adding sprites/dogs/DOGSD2D8.png 0.0% [ 462/ 462] Stored Adding sprites/dogs/DOGSD3D7.png 0.0% [ 495/ 495] Stored Adding sprites/dogs/DOGSD4D6.png 0.0% [ 445/ 445] Stored Adding sprites/dogs/DOGSD5.png 0.8% [ 364/ 367] Deflate Adding sprites/dogs/DOGSE1.png 0.0% [ 416/ 416] Stored Adding sprites/dogs/DOGSE2.png 0.0% [ 465/ 465] Stored Adding sprites/dogs/DOGSE3.png 0.0% [ 480/ 480] Stored Adding sprites/dogs/DOGSE4.png 0.0% [ 452/ 452] Stored Adding sprites/dogs/DOGSE5.png 1.0% [ 383/ 387] Deflate Adding sprites/dogs/DOGSE6.png 0.0% [ 483/ 483] Stored Adding sprites/dogs/DOGSE7.png 0.0% [ 511/ 511] Stored Adding sprites/dogs/DOGSE8.png 0.4% [ 470/ 472] Deflate Adding sprites/dogs/DOGSF1.png 0.0% [ 458/ 458] Stored Adding sprites/dogs/DOGSF2.png 0.0% [ 475/ 475] Stored Adding sprites/dogs/DOGSF3.png 0.0% [ 484/ 484] Stored Adding sprites/dogs/DOGSF4.png 0.0% [ 445/ 445] Stored Adding sprites/dogs/DOGSF5.png 0.0% [ 407/ 407] Stored Adding sprites/dogs/DOGSF6.png 0.0% [ 466/ 466] Stored Adding sprites/dogs/DOGSF7.png 0.4% [ 482/ 484] Deflate Adding sprites/dogs/DOGSF8.png 0.0% [ 431/ 431] Stored Adding sprites/dogs/DOGSG1.png 0.0% [ 511/ 511] Stored Adding sprites/dogs/DOGSG2.png 0.0% [ 482/ 482] Stored Adding sprites/dogs/DOGSG3.png 0.0% [ 505/ 505] Stored Adding sprites/dogs/DOGSG4.png 0.0% [ 457/ 457] Stored Adding sprites/dogs/DOGSG5.png 0.0% [ 391/ 391] Stored Adding sprites/dogs/DOGSG6.png 0.0% [ 464/ 464] Stored Adding sprites/dogs/DOGSG7.png 0.0% [ 525/ 525] Stored Adding sprites/dogs/DOGSG8.png 0.0% [ 467/ 467] Stored Adding sprites/dogs/DOGSH1.png 0.0% [ 510/ 510] Stored Adding sprites/dogs/DOGSH2.png 0.0% [ 462/ 462] Stored Adding sprites/dogs/DOGSH3.png 0.0% [ 495/ 495] Stored Adding sprites/dogs/DOGSH4.png 0.0% [ 445/ 445] Stored Adding sprites/dogs/DOGSH5.png 0.5% [ 366/ 368] Deflate Adding sprites/dogs/DOGSH6.png 0.0% [ 439/ 439] Stored Adding sprites/dogs/DOGSH7.png 0.0% [ 479/ 479] Stored Adding sprites/dogs/DOGSH8.png 0.0% [ 457/ 457] Stored Adding sprites/dogs/DOGSI0.png 0.0% [ 532/ 532] Stored Adding sprites/dogs/DOGSJ0.png 0.0% [ 573/ 573] Stored Adding sprites/dogs/DOGSK0.png 0.0% [ 574/ 574] Stored Adding sprites/dogs/DOGSL0.png 0.0% [ 584/ 584] Stored Adding sprites/dogs/DOGSM0.png 0.0% [ 583/ 583] Stored Adding sprites/dogs/DOGSN0.png 0.0% [ 410/ 410] Stored Adding sprites/iceca0.png 4.7% [ 184/ 193] Deflate Adding sprites/icecb0.png 5.3% [ 179/ 189] Deflate Adding sprites/icecc0.png 5.2% [ 147/ 155] Deflate Adding sprites/icecd0.png 11.9% [ 104/ 118] Deflate Adding sprites/minza0.png 0.0% [ 848/ 848] Stored Adding sprites/pista0.png 1.7% [ 292/ 297] Deflate Adding sprites/plyc/plyca1.lmp 30.4% [ 642/ 923] Deflate Adding sprites/plyc/plyca2a8.lmp 34.5% [ 796/ 1216] Deflate Adding sprites/plyc/plyca3a7.lmp 34.8% [ 909/ 1395] Deflate Adding sprites/plyc/plyca4a6.lmp 34.5% [ 739/ 1129] Deflate Adding sprites/plyc/plyca5.lmp 34.0% [ 529/ 802] Deflate Adding sprites/plyc/plycb1.lmp 31.1% [ 653/ 948] Deflate Adding sprites/plyc/plycb2b8.lmp 35.6% [ 791/ 1228] Deflate Adding sprites/plyc/plycb3b7.lmp 34.5% [ 908/ 1386] Deflate Adding sprites/plyc/plycb4b6.lmp 34.3% [ 748/ 1138] Deflate Adding sprites/plyc/plycb5.lmp 32.1% [ 541/ 797] Deflate Adding sprites/plyc/plycc1.lmp 30.4% [ 639/ 918] Deflate Adding sprites/plyc/plycc2c8.lmp 35.0% [ 794/ 1222] Deflate Adding sprites/plyc/plycc3c7.lmp 34.4% [ 910/ 1387] Deflate Adding sprites/plyc/plycc4c6.lmp 34.7% [ 738/ 1131] Deflate Adding sprites/plyc/plycc5.lmp 33.2% [ 534/ 799] Deflate Adding sprites/plyc/plycd1.lmp 31.1% [ 653/ 948] Deflate Adding sprites/plyc/plycd2d8.lmp 35.6% [ 791/ 1228] Deflate Adding sprites/plyc/plycd3d7.lmp 34.5% [ 908/ 1386] Deflate Adding sprites/plyc/plycd4d6.lmp 34.3% [ 748/ 1138] Deflate Adding sprites/plyc/plycd5.lmp 32.1% [ 541/ 797] Deflate Adding sprites/plyc/plyce1.lmp 34.7% [ 643/ 984] Deflate Adding sprites/plyc/plyce2e8.lmp 34.4% [ 786/ 1198] Deflate Adding sprites/plyc/plyce3e7.lmp 34.6% [ 922/ 1410] Deflate Adding sprites/plyc/plyce4e6.lmp 36.0% [ 723/ 1129] Deflate Adding sprites/plyc/plyce5.lmp 32.6% [ 571/ 847] Deflate Adding sprites/plyc/plycf1.lmp 28.0% [ 708/ 984] Deflate Adding sprites/plyc/plycf2f8.lmp 31.6% [ 873/ 1276] Deflate Adding sprites/plyc/plycf3f7.lmp 34.5% [ 977/ 1492] Deflate Adding sprites/plyc/plycf4f6.lmp 35.7% [ 777/ 1208] Deflate Adding sprites/plyc/plycf5.lmp 31.9% [ 577/ 847] Deflate Adding sprites/plyc/plycg1.lmp 34.9% [ 645/ 991] Deflate Adding sprites/plyc/plycg2g8.lmp 35.1% [ 776/ 1196] Deflate Adding sprites/plyc/plycg3g7.lmp 35.2% [ 916/ 1413] Deflate Adding sprites/plyc/plycg4g6.lmp 36.2% [ 723/ 1133] Deflate Adding sprites/plyc/plycg5.lmp 32.9% [ 556/ 829] Deflate Adding sprites/plyc/plych0.lmp 25.3% [ 932/ 1248] Deflate Adding sprites/plyc/plyci0.lmp 23.0% [ 804/ 1044] Deflate Adding sprites/plyc/plycj0.lmp 25.6% [ 710/ 954] Deflate Adding sprites/plyc/plyck0.lmp 30.5% [ 684/ 984] Deflate Adding sprites/plyc/plycl0.lmp 33.1% [ 644/ 962] Deflate Adding sprites/plyc/plycm0.lmp 32.7% [ 650/ 966] Deflate Adding sprites/plyc/plycn0.lmp 33.2% [ 649/ 971] Deflate Adding sprites/plyc/plyco0.lmp 26.9% [ 923/ 1262] Deflate Adding sprites/plyc/plycp0.lmp 27.8% [ 1070/ 1481] Deflate Adding sprites/plyc/plycq0.lmp 31.0% [ 1299/ 1883] Deflate Adding sprites/plyc/plycr0.lmp 33.9% [ 1185/ 1794] Deflate Adding sprites/plyc/plycs0.lmp 33.3% [ 1183/ 1773] Deflate Adding sprites/plyc/plyct0.lmp 34.6% [ 1050/ 1605] Deflate Adding sprites/plyc/plycu0.lmp 33.1% [ 990/ 1480] Deflate Adding sprites/plyc/plycv0.lmp 34.0% [ 914/ 1384] Deflate Adding sprites/plyc/plycw0.lmp 33.8% [ 903/ 1364] Deflate Adding sprites/rsmka0.png 0.0% [ 376/ 376] Stored Adding sprites/rsmkb0.png 0.0% [ 388/ 388] Stored Adding sprites/rsmkc0.png 0.0% [ 550/ 550] Stored Adding sprites/rsmkd0.png 0.0% [ 380/ 380] Stored Adding sprites/rsmke0.png 1.6% [ 251/ 255] Deflate Adding sprites/sgrna1.png 5.4% [ 176/ 186] Deflate Adding sprites/sgrna5.png 4.4% [ 215/ 225] Deflate Adding sprites/sgrna6a4.png 3.4% [ 258/ 267] Deflate Adding sprites/sgrna7a3.png 4.2% [ 184/ 192] Deflate Adding sprites/sgrna8a2.png 3.5% [ 191/ 198] Deflate Adding sprites/spkra0.png 0.0% [ 525/ 525] Stored Adding sprites/tlgla0.png 6.6% [ 142/ 152] Deflate Adding sprites/tlglb0.png 6.6% [ 142/ 152] Deflate Adding sprites/tlglc0.png 6.6% [ 142/ 152] Deflate Adding sprites/tlgld0.png 6.6% [ 142/ 152] Deflate Adding sprites/tlgle0.png 6.6% [ 142/ 152] Deflate Adding sprites/tnt1a0.png 15.4% [ 11/ 13] Deflate Adding sprites/unkna0.png 4.1% [ 213/ 222] Deflate Adding textures/-noflat-.png 5.2% [ 91/ 96] Deflate Adding xlat/base.txt 79.9% [ 4585/ 22804] Deflate Adding xlat/defines.i 65.6% [ 1619/ 4709] Deflate Adding xlat/doom.txt 62.2% [ 485/ 1284] Deflate Adding xlat/doom_base.txt 51.5% [ 97/ 200] Deflate Adding xlat/eternity.txt 70.3% [ 2269/ 7633] Deflate Adding xlat/heretic.txt 68.9% [ 832/ 2673] Deflate Adding xlat/heretic_base.txt 15.2% [ 89/ 105] Deflate Adding xlat/strife.txt 77.9% [ 3216/ 14549] Deflate Adding xlat/strife_base.txt 40.9% [ 110/ 186] Deflate Adding althudcf.txt 10.0% [ 63/ 70] Deflate Adding animated.lmp 66.3% [ 489/ 1450] Deflate Adding animdefs.txt 81.9% [ 2133/ 11793] Deflate Adding compatibility.txt 55.8% [ 5864/ 13259] Deflate Adding confont.lmp 64.7% [ 3640/ 10302] Deflate Adding dbigfont.lmp 45.6% [ 3630/ 6671] Deflate Adding decaldef.txt 84.2% [ 2971/ 18828] Deflate Adding decorate.txt 84.3% [ 1067/ 6791] Deflate Adding defbinds.txt 52.7% [ 817/ 1728] Deflate Adding dehsupp.txt 70.9% [ 8047/ 27639] Deflate Adding etc.h.txt 51.5% [ 238/ 491] Deflate Adding fontdefs.txt 54.2% [ 474/ 1036] Deflate Adding in_epi1.txt 67.9% [ 273/ 850] Deflate Adding in_epi2.txt 66.1% [ 348/ 1026] Deflate Adding in_epi3.txt 61.2% [ 233/ 601] Deflate Adding in_htc1.txt 29.8% [ 144/ 205] Deflate Adding in_htc2.txt 29.3% [ 147/ 208] Deflate Adding in_htc3.txt 29.3% [ 145/ 205] Deflate Adding indexfont 58.9% [ 127/ 309] Deflate Adding iwadinfo.txt 80.9% [ 1665/ 8695] Deflate Adding language.eng 55.1% [ 297/ 661] Deflate Adding language.enu 64.8% [ 24564/ 69692] Deflate Adding language.fr 64.6% [ 21397/ 60400] Deflate Adding language.ita 63.9% [ 16479/ 45670] Deflate Adding language.ptb 64.0% [ 25124/ 69722] Deflate Adding lockdefs.txt 82.9% [ 1275/ 7464] Deflate Adding menudef.txt 75.3% [ 12030/ 48663] Deflate Adding netnotch.dat 18.8% [ 26/ 32] Deflate Adding notch.dat 40.8% [ 109/ 184] Deflate Adding reverbs.txt 88.7% [ 3689/ 32586] Deflate Adding sbarinfo.txt 55.3% [ 220/ 492] Deflate Adding sbigfont.lmp 60.5% [ 2982/ 7546] Deflate Adding sndinfo.txt 63.1% [ 802/ 2175] Deflate Adding sndseq.txt 81.6% [ 1007/ 5459] Deflate Adding spaldoom.lmp 20.2% [ 613/ 768] Deflate Adding spalhtic.lmp 0.0% [ 768/ 768] Stored Adding teaminfo.txt 69.7% [ 165/ 544] Deflate Adding terrain.txt 76.0% [ 797/ 3322] Deflate Adding textcolors.txt 67.0% [ 949/ 2876] Deflate Adding textures.txt 81.7% [ 292/ 1594] Deflate Adding things.h.txt 70.1% [ 1506/ 5029] Deflate Adding vga-rom-font.16 67.1% [ 1349/ 4096] Deflate Adding x11r6rgb.txt 72.6% [ 4967/ 18135] Deflate Adding xhairs.txt 24.1% [ 60/ 79] Deflate /tmp/pip-LcKYL5-build/src/vizdoom/../../bin/vizdoom.pk3 contains 583 files (updated 583) [ 99%] Built target pk3 Scanning dependencies of target libvizdoom_lua Scanning dependencies of target libvizdoom_python [ 99%] Building CXX object CMakeFiles/libvizdoom_lua.dir/src/lib_lua/ViZDoomGameLua.cpp.o [ 99%] Building CXX object CMakeFiles/libvizdoom_lua.dir/src/lib_lua/ViZDoomLuaModule.cpp.o make[2]: Nessuna regola per generare l'obiettivo "/home/giuseppe/anaconda2/lib/python2.7/config/libpython2.7.so", necessario per "bin/python2/vizdoom.so". Arresto. make[2]: Attesa per i processi non terminati.... [ 99%] Building CXX object CMakeFiles/libvizdoom_python.dir/src/lib_python/ViZDoomGamePython.cpp.o [ 99%] Building CXX object CMakeFiles/libvizdoom_python.dir/src/lib_python/ViZDoomPythonModule.cpp.o In file included from /home/giuseppe/anaconda2/include/python2.7/Python.h:8:0, from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:31, from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.cpp:23: /home/giuseppe/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: "_POSIX_C_SOURCE" redefined

define _POSIX_C_SOURCE 200112L

 ^
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
                 from /usr/include/c++/5/cstdint:38,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomTypes.h:26,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomGame.h:26,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:28,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.cpp:23:
/usr/include/features.h:228:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /home/giuseppe/anaconda2/include/python2.7/Python.h:8:0,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:31,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.cpp:23:
/home/giuseppe/anaconda2/include/python2.7/pyconfig.h:1215:0: warning: "_XOPEN_SOURCE" redefined
 #define _XOPEN_SOURCE 600
 ^
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
                 from /usr/include/c++/5/cstdint:38,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomTypes.h:26,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomGame.h:26,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:28,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.cpp:23:
/usr/include/features.h:169:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 ^
In file included from /home/giuseppe/anaconda2/include/python2.7/Python.h:8:0,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:31,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomPythonModule.cpp:24:
/home/giuseppe/anaconda2/include/python2.7/pyconfig.h:1193:0: warning: "_POSIX_C_SOURCE" redefined
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
                 from /usr/include/c++/5/exception:37,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomExceptions.h:26,
                 from /tmp/pip-LcKYL5-build/include/ViZDoom.h:27,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomPythonModule.cpp:23:
/usr/include/features.h:228:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /home/giuseppe/anaconda2/include/python2.7/Python.h:8:0,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomGamePython.h:31,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomPythonModule.cpp:24:
/home/giuseppe/anaconda2/include/python2.7/pyconfig.h:1215:0: warning: "_XOPEN_SOURCE" redefined
 #define _XOPEN_SOURCE 600
 ^
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39:0,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
                 from /usr/include/c++/5/exception:37,
                 from /tmp/pip-LcKYL5-build/include/ViZDoomExceptions.h:26,
                 from /tmp/pip-LcKYL5-build/include/ViZDoom.h:27,
                 from /tmp/pip-LcKYL5-build/src/lib_python/ViZDoomPythonModule.cpp:23:
/usr/include/features.h:169:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 ^
[ 99%] Linking CXX shared library bin/lua/vizdoom.so
Assembling luarocks package in /tmp/pip-LcKYL5-build/bin/lua/luarocks_package
[ 99%] Built target libvizdoom_lua
CMakeFiles/Makefile2:181: set di istruzioni per l'obiettivo "CMakeFiles/libvizdoom_python.dir/all" non riuscito
make[1]: *** [CMakeFiles/libvizdoom_python.dir/all] Errore 2
Makefile:83: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2

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

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-LcKYL5-build/setup.py", line 95, in <module>
    keywords=['vizdoom', 'doom', 'ai', 'deep learning', 'reinforcement learning', 'research']
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/giuseppe/anaconda2/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/command/install.py", line 563, in run
    self.run_command('build')
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/home/giuseppe/anaconda2/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/tmp/pip-LcKYL5-build/setup.py", line 50, in run
    subprocess.check_call(['make', '-j', str(cpu_cores)])
  File "/home/giuseppe/anaconda2/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j', '7']' returned non-zero exit status 2

----------------------------------------

Command "/home/giuseppe/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-LcKYL5-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-BOIqtx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-LcKYL5-build/

ajschumacher commented 7 years ago

Hi @giuseppebonaccorso I think that issue affected me:

"/home/giuseppe/anaconda2/lib/python2.7/config/libpython2.7.so", necessario per "bin/python2/vizdoom.so". Arresto.

With Anaconda, libpython2.7.so is not there; it's just in anaconda/lib/. A quick fix is to link it to where it wants it to be, like this:

ln -s /home/giuseppe/anaconda2/lib/python2.7/config/libpython2.7.so /home/giuseppe/anaconda2/lib/libpython2.7.so
jdsaund commented 7 years ago

I had the same issue as above, fixed by linking as described: ln -s /usr/lib/libpython3.6m.so /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so

I understand that this issue is fixed for compiling from source, but still lingers with pip install.

mwydmuch commented 2 years ago

This was fixed.