jmccormac / pySceneNetRGBD

Scripts showing how to work with the SceneNetRGBD dataset
GNU General Public License v3.0
178 stars 46 forks source link

Renderer CMakeList.txt SET(CUDA_HOST_COMPILER gcc-5) #20

Closed juanhotencoding closed 6 years ago

juanhotencoding commented 6 years ago

Hello,

I am trying to build on SceneNet RGB-D dataset generation pipeline on Ubuntu 18.04 which comes installed with gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0 Here is the initial output:

jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.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  
-- Found CUDA: /usr/local/cuda-9.0 (found version "9.0") 
-- Found CVD: /usr/local/lib/libcvd.so
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") 
/home/jvm/Downloads/OptiX
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found ASSIMP: /usr/local/lib/libassimp.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jvm/Documents/scenenet/src/renderer/build

but when I try to build the renderer component I get the following error:

jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ make
Scanning dependencies of target shaders
[  1%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx
[  3%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_GroundTruthGenerator.cu.ptx
[  4%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_IndirectRadianceEstimation.cu.ptx
[  6%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Output.cu.ptx
[  7%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_PhotonGenerator.cu.ptx
[  9%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_PostProcess.cu.ptx
[ 11%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_RayGeneratorPPM.cu.ptx
[ 12%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_UniformGridPhotonInitialize.cu.ptx
[ 14%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_VolumetricPhotonInitialize.cu.ptx
[ 15%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_VolumetricPhotonSphere.cu.ptx
[ 17%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_VolumetricPhotonSphereRadiance.cu.ptx
[ 19%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_AAB.cu.ptx
[ 20%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Sphere.cu.ptx
[ 22%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_TriangleMesh.cu.ptx
[ 23%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_TriangleMeshLayout.cu.ptx
[ 25%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_parallelogram.cu.ptx
[ 26%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Diffuse.cu.ptx
[ 28%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_DiffuseEmitter.cu.ptx
[ 30%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Glass.cu.ptx
[ 31%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_GroundTruthMaterial.cu.ptx
[ 33%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Mirror.cu.ptx
[ 34%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_ParticipatingMedium.cu.ptx
[ 36%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_SpecularDiffuse.cu.ptx
[ 38%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_SpecularTexture.cu.ptx
/home/jvm/Documents/scenenet/src/renderer/src/Material/SpecularTexture.cu(212): warning: variable "normal" was set but never used

[ 39%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_Texture.cu.ptx
/home/jvm/Documents/scenenet/src/renderer/src/Material/Texture.cu(99): warning: variable "normal" was set but never used

[ 41%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_pinhole_camera.cu.ptx
[ 42%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_triangle_mesh_iterative.cu.ptx
[ 42%] Built target shaders
[ 44%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_phong.cu.ptx
Scanning dependencies of target sutil_sdk
[ 46%] Building C object src/Util/sutil/CMakeFiles/sutil_sdk.dir/rply-1.01/rply.c.o
[ 47%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/Arcball.cpp.o
[ 49%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/HDRLoader.cpp.o
[ 50%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/Mesh.cpp.o
[ 52%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/OptiXMesh.cpp.o
[ 53%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/PPMLoader.cpp.o
[ 55%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/sutil.cpp.o
[ 57%] Building CXX object src/Util/sutil/CMakeFiles/sutil_sdk.dir/tinyobjloader/tiny_obj_loader.cc.o
[ 58%] Building C object src/Util/sutil/CMakeFiles/sutil_sdk.dir/glew.c.o
[ 60%] Linking CXX static library libsutil_sdk.a
[ 60%] Built target sutil_sdk
[ 61%] Building NVCC (Device) object ptx/cuda_compile_generated_OptixRenderer_SpatialHash.cu.o
/home/jvm/Downloads/OptiX/include/optixu/optixpp_namespace.h(590): warning: overloaded virtual function "optix::APIObj::checkError" is only partially overridden in class "optix::ContextObj"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9303): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9316): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9327): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9340): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9352): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9365): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9376): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9389): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9401): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9410): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9419): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9428): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9437): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9445): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9454): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9463): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9472): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9481): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9490): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9499): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9508): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9517): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9526): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9535): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9544): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(55): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(63): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(73): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(81): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(91): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(100): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(109): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(117): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(127): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(136): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(145): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(153): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10799): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10811): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10823): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10835): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10847): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10859): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10871): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10883): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10895): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10907): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10919): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10931): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10943): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10955): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10967): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10979): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10989): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11000): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11009): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11020): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11029): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11040): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11049): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11060): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11069): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11080): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11089): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11100): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11109): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11120): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11129): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11140): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11149): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11160): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11169): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11180): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11189): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11200): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11209): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11220): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11229): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11240): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11249): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11260): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11280): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11289): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11300): error: argument of type "void *" is incompatible with parameter of type "long long *"

92 errors detected in the compilation of "/tmp/tmpxft_0000416b_00000000-6_OptixRenderer_SpatialHash.cpp1.ii".
CMake Error at cuda_compile_generated_OptixRenderer_SpatialHash.cu.o.cmake:338 (message):
  Error generating file
  /home/jvm/Documents/scenenet/src/renderer/build/ptx/./cuda_compile_generated_OptixRenderer_SpatialHash.cu.o

CMakeFiles/scenenet_render.dir/build.make:63: recipe for target 'ptx/cuda_compile_generated_OptixRenderer_SpatialHash.cu.o' failed
make[2]: *** [ptx/cuda_compile_generated_OptixRenderer_SpatialHash.cu.o] Error 1
CMakeFiles/Makefile2:100: recipe for target 'CMakeFiles/scenenet_render.dir/all' failed
make[1]: *** [CMakeFiles/scenenet_render.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I saw that in the CMakeList.txt file there is a variable SET(CUDA_HOST_COMPILER gcc-5) which I changed to SET(CUDA_HOST_COMPILER gcc-7) but when I try to build the rendering component again by deleting the old build directory and making a new one, I get the following error:

jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ make
Scanning dependencies of target shaders
[  1%] Building NVCC ptx file ptx/cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx
In file included from /usr/local/cuda-9.0/include/host_config.h:50:0,
                 from /usr/local/cuda-9.0/include/cuda_runtime.h:78,
                 from <command-line>:0:
/usr/local/cuda-9.0/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 6 are not supported!
 #error -- unsupported GNU version! gcc versions later than 6 are not supported!
  ^~~~~
CMake Error at cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx.cmake:245 (message):
  Error generating
  /home/jvm/Documents/scenenet/src/renderer/build/ptx/cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx

CMakeFiles/shaders.dir/build.make:88: recipe for target 'ptx/cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx' failed
make[2]: *** [ptx/cuda_compile_ptx_generated_DirectRadianceEstimation.cu.ptx] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/shaders.dir/all' failed
make[1]: *** [CMakeFiles/shaders.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Any ideas of what I might need to do?

Thanks in advance!

arjunds commented 6 years ago

Hey juanhotencoding! I actually ran into this error and for some reason, OptiX only supports gcc versions 6 and below. After looking it up, gcc-5 gave people the same errors when using OptiX in other projects. What I did to fix this was I editted that line in CMakeLists.txt that you put as the title, SET(CUDA_HOST_COMPILER gcc-5), and changed gcc-5 to gcc-6. If you don't have gcc-6, just do 'sudo apt install gcc-6 && sudo apt install g++-6'

Hope this helps!

juanhotencoding commented 6 years ago

Thanks arjunds! Did you also reproduce the dataset generation pipeline on Ubuntu 18.04?

arjunds commented 6 years ago

Yes, I did all of the SceneNetRGB-D installation on Ubuntu 18.04 if that's what you're asking. I wrote up all the errors I ran into and how I fixed them so if you run into anything else just let me know

juanhotencoding commented 6 years ago

Did you happen to run into the issue with 'CVD::Exceptions::Image_IO::UnsupportedImageSubType' when trying to run the rendering component? I know that we can get past this issue by running the following command:

find ./ -type f -name "*.png" -exec convert -interlace none -define png:color-type=6 {} {} \;

Would that also prevent the following error from appearing?

'CVD::Exceptions::Image_IO::UnsupportedImageType'

arjunds commented 6 years ago

I'm pretty sure I got that error, just check if it was on .jpg files in the SceneNetRGBD_Layouts directory. If it was, I just ran the that same find command except changed the .png to .jpg. This would look like: find ./ -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \; After doing that, I didn't get that error anymore

juanhotencoding commented 6 years ago

Ok I will do that I also seem to get this error when running the same command on the ShapeNet directory

jvm@arpg-brute:~/Documents/scenenet/ShapeNetCore.v2$ find ./ -type f -name "*.png" -exec convert -interlace none -define png:color-type=6 {} {} \;
convert-im6.q16: Expected 8192 bytes; found 7901 bytes `./03046257/619cbd4aa6ae5578f5635ac8b18fdb9/images/texture0.png' @ warning/png.c/MagickPNGWarningHandler/1654.
convert-im6.q16: Read Exception `./03046257/619cbd4aa6ae5578f5635ac8b18fdb9/images/texture0.png' @ error/png.c/MagickPNGErrorHandler/1628.
convert-im6.q16: no images defined `./03046257/619cbd4aa6ae5578f5635ac8b18fdb9/images/texture0.png' @ error/convert.c/ConvertImageCommand/3258.
arjunds commented 6 years ago

I have not ran into that error so I don't know exactly what the problem is. However, when I ran the find commands, I went into the directory containing SceneNetRGBD_Layouts and ShapeNetCore.v2 and ran it there, doing ./ShapeNetCore.v2 instead of just ./ I don't know if this would help, but it's worth a try if you can't figure it out otherwise

juanhotencoding commented 6 years ago

Ok yeah I think that is nothing to worry about actually.

When I am done running the command on SceneNetRGBD_Layouts should I run the three components over again or just the rendering component?

This is the output that I get after running the find command and then re-running the renderer

jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ cd ../../../SceneNetRGBD_Layouts/
jvm@arpg-brute:~/Documents/scenenet/SceneNetRGBD_Layouts$ cd ..
jvm@arpg-brute:~/Documents/scenenet$ find SceneNetRGBD_Layouts/ -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \;
jvm@arpg-brute:~/Documents/scenenet$ cd src/renderer/build/
jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ ./scenenet_render ../../../ShapeNetCore.v2/ ../../../SceneNetRGBD_Layouts/ ../../camera_trajectory_generator/build/scene_and_trajectory_description.txt 
ShapeNet directory:../../../ShapeNetCore.v2/
Layouts directory:../../../SceneNetRGBD_Layouts/
Input Scene Description:../../camera_trajectory_generator/build/scene_and_trajectory_description.txt
object
problem?
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.691685
Adding object transform:
object
Adding object:03001627/7efeece3b5cf2853d706779c93538ee1
Adding object scale:0.803991
Adding object transform:
object
Adding object:03001627/37aa434da4ef00038b424343280aeccb
Adding object scale:0.927565
Adding object transform:
object
Adding object:03001627/3dc39c34c37860da2ef1c225dc7772c5
Adding object scale:0.933054
Adding object transform:
object
Adding object:04379243/c26dfd3453d81bf7788eb1f5e7ba6e7b
Adding object scale:0.874041
Adding object transform:
object
Adding object:03001627/655102add1989c1064fad3c7b88e6060
Adding object scale:0.748664
Adding object transform:
object
Adding object:04379243/7d0e1c7c5ef289bf94d582a4a37a8dbb
Adding object scale:0.694885
Adding object transform:
object
Adding object:03001627/2ed8d45343a442097869557127addfc0
Adding object scale:0.922244
Adding object transform:
object
Adding object:03001627/60167ae64899f8ae966a40fb39b34846
Adding object scale:0.7726
Adding object transform:
object
Adding object:03001627/18845d9336d8be637b11ae648ea92233
Adding object scale:0.843552
Adding object transform:
object
Adding object:02933112/68bc79caeaf162a7ce5d6e9371bb5c33
Adding object scale:0.942575
Adding object transform:
object
Adding object:03001627/bcf67dfcbd6c1fe7da8e9e0272759299
Adding object scale:0.79619
Adding object transform:
object
Adding object:03991062/80608e58db79d4d83b722c86abee0751
Adding object scale:0.0912245
Adding object transform:
object
Adding object:02946921/d052c17866cf5cf8387e8ce4aad01a52
Adding object scale:0.162122
Adding object transform:
object
Adding object:03761084/891f65c773939191c834958aed613724
Adding object scale:0.299518
Adding object transform:
object
Adding object:04379243/84a354fd068a410d40719bb3f7e29ad5
Adding object scale:0.388126
Adding object transform:
object
Adding object:03710193/39728a7708d1b4bef7c06f0b26f28b7e
Adding object scale:0.0748482
Adding object transform:
object
Adding object:04330267/917676329f834bed201769e59267569b
Adding object scale:0.11556
Adding object transform:
object
Adding object:03325088/2a7001af4f018827d86a78ce9bac042d
Adding object scale:0.269928
Adding object transform:
object
Adding object:04004475/b8f50a9cf77e8b16cb2d9ca9c84945ae
Adding object scale:0.375369
Adding object transform:
object
Adding object:03991062/c623808300139bc3beedb4c8fd29e2d1
Adding object scale:0.244908
Adding object transform:
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.321724
Adding object transform:
object
Adding object:03761084/15ba6dd7a9ad8b12efe5f291bc2f5fd0
Adding object scale:0.260249
Adding object transform:
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.276278
Adding object transform:
object
Adding object:03761084/6aa4b136ec94b46472a38ac2b8f5cd48
Adding object scale:0.397935
Adding object transform:
object
Adding object:03325088/56c35d8a53c2c5d9fb930e40572ccf2f
Adding object scale:0.1985
Adding object transform:
object
Adding object:03761084/77c4453bb4349e398128bc89a67202b0
Adding object scale:0.260248
Adding object transform:
object
Adding object:03325088/2a7001af4f018827d86a78ce9bac042d
Adding object scale:0.276227
Adding object transform:
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.302683
Adding object transform:
object
Adding object:03691459/16bf19a982c7cd71dd6a08110bca7bd5
Adding object scale:0.25751
Adding object transform:
object
Adding object:03797390/127944b6dabee1c9e20e92c5b8147e4a
Adding object scale:0.146765
Adding object transform:
object
Adding object:03991062/d1b50f008ab9e3d7da7a4e0a62ae3e2e
Adding object scale:0.159885
Adding object transform:
object
Adding object:03710193/39728a7708d1b4bef7c06f0b26f28b7e
Adding object scale:0.243298
Adding object transform:
object
Adding object:03593526/d3978e26d3e0d773b3ffb0c309689ebd
Adding object scale:0.363085
Adding object transform:
object
Adding object:03325088/fae7848a58bdf27937b2bb75885cfc44
Adding object scale:0.1915
Adding object transform:
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.374239
Adding object transform:
object
Adding object:02880940/441cac4bae5c7c315c2a2c970803cfe2
Adding object scale:0.10317
Adding object transform:
object
Adding object:02880940/fa23aa60ec51c8e4c40fe5637f0a27e1
Adding object scale:0.0880679
Adding object transform:
object
Adding object:02880940/a9ba34614bfd8ca9938afc5c0b5b182
Adding object scale:0.172582
Adding object transform:
object
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.340438
Adding object transform:
object
Adding object:02880940/782aa72e7f14975b39d764edb37837d3
Adding object scale:0.0972203
Adding object transform:
object
Adding object:02876657/2d1aa4e124c0dd5bf937e5c6aa3f9597
Adding object scale:0.265187
Adding object transform:
object
Adding object:02880940/188281000adddc9977981b941eb4f5d1
Adding object scale:0.212339
Adding object transform:
object
Adding object:03261776/49b17a26edadad7f46619c79b20f2c6e
Adding object scale:0.164672
Adding object transform:
object
Adding object:03710193/a603aea34beaf4424b3c42e318f3affc
Adding object scale:0.294461
Adding object transform:
object
Adding object:03325088/2a7001af4f018827d86a78ce9bac042d
Adding object scale:0.350895
Adding object transform:
Adding object:03325088/7e8cc52fa74c26b4eb1f243bab39fb29
Adding object scale:0.352034
Adding object transform:
RANDOM TEXTURE AND LIGHT NUMBER:1155792489
.//render_info.log
There are 2 devices
Seeding on 325335180 clock: 639570 time: 1531853117 
Seeding complete
Loading layout file:../../../SceneNetRGBD_Layouts/./kitchen/kitchen3_layout.obj
Loading scene materials for model:../../../SceneNetRGBD_Layouts/./kitchen instance id 1
Str MatDefaultMaterial
continuing
Str Matcarpet.005
Kdpath:../texture_library/carpet
Past specials
textureAbs path:../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet
Continuing in loop
Continuing in loop
closedDir
Selected texture absolute path::../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet/f53419ff71a979a5d8f8e1038dea8896.jpg
Matl is texture
textureAbsolutePath = ../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet/f53419ff71a979a5d8f8e1038dea8896.jpg
terminate called after throwing an instance of 'CVD::Exceptions::Image_IO::UnsupportedImageType'
Aborted (core dumped)
arjunds commented 6 years ago

I'd think you'd have to run all 3 components again because it has to generate the new scene with the converted images. Whenever I make a change, I generally run all of the components again to make sure everything is fixed, even if it takes some time

arjunds commented 6 years ago

For you, does it sometimes take a long time and just say Simulating System? Because sometimes it takes 1 minute to do that and other times it takes 20. Also recently, a lot of my camera trajectories are out of the scene or don't move. Just wanted to see if these happen to you and if its a 18.04 issue or something.

juanhotencoding commented 6 years ago

Yeah sometimes I get a short Simulating System ~1 minutes and other times I get ~10 minutes or more waiting time. I don't get the type of camera trajectories that you have sorry.

juanhotencoding commented 6 years ago

Quick question, did you go about automating creating multiple scenes? (i.e., like a script or something that contains the commands to run each component)

arjunds commented 6 years ago

Not multiple scenes, but just a script that runs all the components, compiles the images, and finds stuff out with the python wrapper. Why?

juanhotencoding commented 6 years ago

I was just confused about how to go about creating a small dataset of scenes without having to run each component myself and checking that everything ran correctly.

juanhotencoding commented 6 years ago

@jmccormac Also I can't seem to get past

terminate called after throwing an instance of 'CVD::Exceptions::Image_IO::UnsupportedImageType'
Aborted (core dumped)

Even after running:

find ./ -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \;

within the SceneNetRGBD_Layouts directory.

I even tried different iterations of the find command such as:

find ./SceneNetRGBD_Layouts -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \;

within the ScenenNetRGBD_Layouts directory,

One directory above the SceneNetRGBD_Layouts directory

find ScenenNetRGBD_Layouts -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \;
find ScenenNetRGBD_Layouts/ -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \;

I even deleted the ScenenNetRGBD_Layouts directory and re-downloaded it.

arjunds commented 6 years ago

If you are using a bash script you can do something along lines of the following pseudo code:

for as many scenes as you want:
(cd to scene_generator build && run scene_generator && cd to camera_trajectory build && run camera_trajectory_generator && cd to renderer build && run scenenet_renderer) || (cd to location of this file && sh run_scenenet.sh)
cd to renderer build
mkdir ~/Desktop/dataset${iterator}
mv *.png to ~/Desktop/dataset${iterator}
mv *.jpg to ~/Desktop/dataset${iterator}

What this does is runs SceneNet by using cd and the runnable files appropriately. Since we are linking the commands with &&, it will only continue if the previous command was successful. The || is for when command wasn't successful and ended with an error (e.g. Average Intensity too extreme). Only if there's an error, it will cd to the location of the script and re-run it. If the commands are good, it will make a new directory on the Desktop called dataset and the iteration # it is on (replace ${iterator} with the name of the variable you use in the for loop). Then it moves all images to that location (the images generated are both .png and .jpg) This is all purely theoretical and hopefully it helps

arjunds commented 6 years ago

You're spelling SceneNetRGBD_Layouts with an extra 'n' and that might be the problem. Apart from that it worked for me after I ran those commands so I don't know what the issue might be. Perhaps if you post from a few lines above 'Aborted (core dumped)' to the end of the output, it might help decipher this and see if you're getting the same error I was

juanhotencoding commented 6 years ago

Sorry that was just my mistake when trying to type up the issue.

juanhotencoding commented 6 years ago

Here is the lastest attempt at trying to run the renderer

jvm@arpg-brute:~/Documents/scenenet/src/renderer/build$ ./scenenet_render ../../../ShapeNetCore.v2/ ../../../SceneNetRGBD_Layouts/ ../../camera_trajectory_generator/build/scene_and_trajectory_description.txt 
ShapeNet directory:../../../ShapeNetCore.v2/
Layouts directory:../../../SceneNetRGBD_Layouts/
Input Scene Description:../../camera_trajectory_generator/build/scene_and_trajectory_description.txt
object
problem?
object
Adding object:04379243/71fc8c7cdb48978282fa4d4f2c19b2ce
Adding object scale:1.07092
Adding object transform:
object
Adding object:02828884/537a02eff282b33df58bc14da5676759
Adding object scale:0.68236
Adding object transform:
object
Adding object:03001627/e9e8f839c77a03498307335ef66226a6
Adding object scale:0.927565
Adding object transform:
object
Adding object:04379243/6d31e827bea8e970f198b94f669bca91
Adding object scale:0.801607
Adding object transform:
object
Adding object:04330267/898c20d376d7d44e5eb64c1003065596
Adding object scale:1.11556
Adding object transform:
object
Adding object:04379243/797ecd23342e744bbff15b656f256f05
Adding object scale:0.640782
Adding object transform:
object
Adding object:03710193/95a442b63317a572148741ff87dd06fd
Adding object scale:0.239076
Adding object transform:
object
Adding object:03593526/6a13375f8fce3142e6597d391ab6fcc1
Adding object scale:0.330412
Adding object transform:
object
Adding object:03761084/835ca5f3809182e86d1ffe1a45470ad7
Adding object scale:0.353149
Adding object transform:
object
Adding object:03761084/19362facbca806df178e7d331e641179
Adding object scale:0.28844
Adding object transform:
object
Adding object:03325088/72863e1ef3c0a6fbdd5cf959690bb73f
Adding object scale:0.316291
Adding object transform:
object
Adding object:03325088/fae7848a58bdf27937b2bb75885cfc44
Adding object scale:0.277002
Adding object transform:
object
Adding object:03797390/9278005254c8db7e95f577622f465c85
Adding object scale:0.151487
Adding object transform:
object
Adding object:03797390/b7841572364fd9ce1249ffc39a0c3c0b
Adding object scale:0.199465
Adding object transform:
object
Adding object:03991062/546025d656c166562887a88b1b446ef8
Adding object scale:0.312762
Adding object transform:
object
Adding object:03991062/5dbe8e5eef057cdf17395ba6d552088a
Adding object scale:0.172729
Adding object transform:
object
Adding object:04330267/a349baf8780207242d3c7a83a255982c
Adding object scale:0.159071
Adding object transform:
object
Adding object:03761084/29012d42054b3a1087bcae7a654cc37
Adding object scale:0.286622
Adding object transform:
object
Adding object:02954340/fd63218d927ae58cbf444790f25ea3db
Adding object scale:0.201846
Adding object transform:
object
Adding object:03797390/bf2b5e941b43d030138af902bc222a59
Adding object scale:0.15143
Adding object transform:
object
Adding object:04379243/aeba3a81cac0687abf3f8e8aa5b07c2a
Adding object scale:0.170162
Adding object transform:
object
Adding object:03991062/8a88fff550a841c5fc2b7781f0f02585
Adding object scale:0.240252
Adding object transform:
object
Adding object:02880940/a593e8863200fdb0664b3b9b23ddfcbc
Adding object scale:0.324461
Adding object transform:
object
Adding object:03710193/f8ebd72bdd49a43b8ad4a36593b38a9e
Adding object scale:0.277502
Adding object transform:
object
Adding object:04379243/b5feedcaea797add4830ebf7106a333e
Adding object scale:0.305245
Adding object transform:
object
Adding object:03710193/e434e428f65c56ed79dea5ba5d13aa5e
Adding object scale:0.243999
Adding object transform:
object
Adding object:02880940/4017528ab5816338664b3b9b23ddfcbc
Adding object scale:0.109295
Adding object transform:
object
Adding object:03325088/72863e1ef3c0a6fbdd5cf959690bb73f
Adding object scale:0.324637
Adding object transform:
object
Adding object:03001627/3a8b5f5a627bb2e199b439fff97886d6
Adding object scale:0.358472
Adding object transform:
object
Adding object:03710193/1954c0e02dafb95291389b3c4840180b
Adding object scale:0.222301
Adding object transform:
object
Adding object:03710193/f1f92f0942b4d85b5b9eccd25a4faf01
Adding object scale:0.293485
Adding object transform:
object
Adding object:03761084/337b1db9d85de33b4a73e364671ba824
Adding object scale:0.294312
Adding object transform:
object
Adding object:03642806/68adcb59ad19c431676394b063daab40
Adding object scale:0.23351
Adding object transform:
object
Adding object:03691459/4e6e05676ac77f30ce029fab54b6cfbd
Adding object scale:0.276298
Adding object transform:
object
Adding object:04330267/2d5b7183f052b34f56efcb65c52d83a1
Adding object scale:0.110495
Adding object transform:
object
Adding object:03710193/fd3227fb95b8d29b60ffa41581e372a1
Adding object scale:0.276917
Adding object transform:
object
Adding object:04379243/71fc8c7cdb48978282fa4d4f2c19b2ce
Adding object scale:0.359892
Adding object transform:
object
Adding object:02880940/441cac4bae5c7c315c2a2c970803cfe2
Adding object scale:0.155246
Adding object transform:
object
Adding object:03761084/a8574cd983b761248a5e8294bc48dc55
Adding object scale:0.254744
Adding object transform:
Adding object:03710193/914fa58a47245909a0dcbb80c5a68d2f
Adding object scale:0.160921
Adding object transform:
RANDOM TEXTURE AND LIGHT NUMBER:269684805
.//render_info.log
There are 2 devices
Seeding on -1388486000 clock: 644970 time: 1531867910 
Seeding complete
Loading layout file:../../../SceneNetRGBD_Layouts/./kitchen/kitchen3_layout.obj
Loading scene materials for model:../../../SceneNetRGBD_Layouts/./kitchen instance id 1
Str MatDefaultMaterial
continuing
Str Matcarpet.005
Kdpath:../texture_library/carpet
Past specials
textureAbs path:../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet
Continuing in loop
Continuing in loop
closedDir
Selected texture absolute path::../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet/f53419ff71a979a5d8f8e1038dea8896.jpg
Matl is texture
textureAbsolutePath = ../../../SceneNetRGBD_Layouts/./kitchen/../texture_library/carpet/f53419ff71a979a5d8f8e1038dea8896.jpg
terminate called after throwing an instance of 'CVD::Exceptions::Image_IO::UnsupportedImageType'
Aborted (core dumped)

The key difference between when I had this issue with the ShapeNet dataset was that the exception was

terminate called after throwing an instance of 'CVD::Exceptions::Image_IO::UnsupportedImageSubType'
Aborted (core dumped)

and with the SceneNetRGBD_Layouts directory I get

terminate called after throwing an instance of 'CVD::Exceptions::Image_IO::UnsupportedImageType'
Aborted (core dumped)

So, ShapeNet threw an UnsupportedImageSubType while SceneNetRGBD_Layouts threw an UnsupportedImageType exeception.

arjunds commented 6 years ago

Ok, so I got the exact same error and just running find ./SceneNetRGBD_Layouts -type f -name "*.jpg" -exec convert -interlace none -define jpg:color-type=6 {} {} \; in the directory that contained it fixed it for me. Either that or I've just been lucky with textures it loaded, but seeing that I've ran SceneNet about 10 times since I ran the find command and never got this error again, it probably fixed it. If it doesn't help, @jmccormac would be the one who'd probably be able to fix it, sorry.

arjunds commented 6 years ago

Well I just ran SceneNet again and got that error again so looks like the 'find' command above didn't do anything unfortunately. We just have to wait for @jmccormac to respond

juanhotencoding commented 6 years ago

Yeah I noticed that -define does not have jpg:color-type as an option for it (https://www.imagemagick.org/script/command-line-options.php#define) and I also made a copy of the layouts directory and ran the command on one of them and I opened two of the same images and couldn't notice any visible differences.

arjunds commented 6 years ago

Yeah, that was just a hopeful attempt by me and I thought it worked but looks like it didn't, because as you said, define doesn't have a jpg:color-type option. At this point I'd just say keep generating the scenes and once it works once just run the camera trajectory and renderer after that and don't change the scene (unless you have to for your project) until this gets figured out.

arjunds commented 6 years ago

Update: I have gotten it to work and now I'm 95% sure I fixed it permanently and it's not just luck. First of all, it selected a texture from SceneNetRGBD_Layouts that previously gave me an error, and this time it ran using that texture, as well as others, and no errors were thrown. What I realized was that libcvd requires additional libraries for PNG, JPEG, and TIFF images, as stated on the site https://www.edwardrosten.com/cvd/cvd/html/index.html My guess is that on ubuntu, the PNG library is preinstalled, but the others need to be manually installed, which is why on the libcvd github, in the README, it says to run sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libx11-dev libavformat-dev libavdevice-dev libavcodec-dev libavutil-dev libswresample-dev libglu-dev libdc1394-22 to install all optional dependencies. As you may notice, libjpeg-dev is one of these libraries. Once I ran this command, rebuilt libcvd with ./configure && make && sudo make install then rebuilding both the camera trajectory and renderer components, I no longer got that error. Again, I could just be lucky as I only ran it once so it's a small sample size to base this on, but hopefully that was the problem and that this helps.

ankurhanda commented 6 years ago

You might want to use our libcvd https://github.com/ankurhanda/libcvd

arjunds commented 6 years ago

@ankurhanda Could you please update the READMEs to use your libcvd so that people don't run into this issue again? Thanks!

jmccormac commented 6 years ago

I know this issue is closed but I'm just confirming the final fix to update the README and help others. For the original logged issue about gcc versions I will update the README to highlight that gcc-5 or gcc-6 is allowed.

I do not believe I ever had to deinterlace jpgs, so I will leave the single png command as is in the README, as it seems to still be correct. Is this correct @arjunds & @juanhotencoding?

Finally, for the CVD issue, I updated to the latest CVD and ran without difficulties so I do not think a specific forked version of CVD is strictly necessary (although it may be useful for future proofing - I can also give the hash of the latest version I have used). I already had installed all the optional dependencies for cvd so I did not realise some of them were even optional! I think only libjpeg-dev libpng-dev are important but I can point to them all to be sure people in future do not run into the same issue.

Thanks both for debugging this issue and closing.

juanhotencoding commented 6 years ago

Yes the issue was resolved when I installed the optional dependencies, libjpeg-dev and libpng-dev. Thanks!

UpChen commented 2 years ago

Hi, @arjunds @jmccormac @juanhotencoding I am trying the SceneNetRGB-D, but i find the shadow of objects in the rendered images not like the example data. It is not faded. 600_rgb And also the rendering log show "it does not have normal buffer". Not sure if it affect the rendering result. Screenshot from 2022-03-19 10-58-29