princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.42k stars 470 forks source link

-noaudio: command not found #51

Closed SuroshAhmadZobair closed 1 year ago

SuroshAhmadZobair commented 1 year ago

I am trying to Generate a scene layout but i get the following error: -noaudio: command not found

Steps to Reproduce git clone https://github.com/princeton-vl/infinigen.git cd infinigen conda create --name infinigen python=3.10 conda activate infinigen bash install.sh

(If this is your first time running Infinigen) What are the full output logs of install.sh ? everything is being installed properly until i get the following errors:

Platform      :
  Architecture: x64
  Compiler    : gcc

CPU baseline  :
  Requested   : 'min'
  Enabled     : SSE SSE2 SSE3
  Flags       : -msse -msse2 -msse3
  Extra checks: none

CPU dispatch  :
  Requested   : 'max -xop -fma4'
  Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
  Generated   : none
CCompilerOpt.cache_flush[809] : write cache to path -> /media/zobair/experimentations/infinigen/worldgen/terrain/build/temp.linux-x86_64-3.10/ccompiler_opt_cache_ext.py
/media/zobair/experimentations/infinigen
running build_ext
building 'bnurbs' extension
creating build
creating build/temp.linux-x86_64-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/Release/sqlite/include -I/home/sybren/buildbot-bu>
gcc -pthread -shared -L/home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/Release/ffi/lib -L/home/sybren/buildbot-builder/linux_glibc217_x86_64_cmake/build_deps/deps/Release/sqlit>
/media/zobair/experimentations/infinigen

In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:37:10: fatal error: glm/glm.hpp: No such file or directory
   37 | #include <glm/glm.hpp>
      |          ^~~~~~~~~~~~~
compilation terminated.
In file included from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969,
                 from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from ./marching_cubes/_marching_cubes_lewiner_cy.c:759:
/home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
/media/zobair/experimentations/infinigen/worldgen/assets/creatures/geometry/cpp_utils/setup_linux.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import setup, Extension
In file included from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969,
                 from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from bnurbs.c:768:
/home/zobair/.local/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~

Platform

tms-gvd commented 1 year ago

I had the same issue, try:

# on Linux/WSL
export BLENDER="/PATH/TO/infinigen/blender/blender"
# on MAC
export BLENDER="/PATH/TO/infinigen/Blender.app/Contents/MacOS/Blender"

and then source ~/.bashrc

pvl-bot commented 1 year ago

This seems to be an issue with not setting $BLENDER as @tms-gvd points out