GPUOpen-LibrariesAndSDKs / RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
MIT License
1.07k stars 192 forks source link

Error building the source code #146

Open kgupta15 opened 7 years ago

kgupta15 commented 7 years ago

On doing make config=release_x64 -j3, I am getting this output :

==== Building CLW (release_x64) ====
==== Building Gtest (release_x64) ====
CLWProgram.cpp
ParameterHolder.cpp
Creating obj/x64/Release
gtest-all.cc
gtest_main.cc
ReferenceCounter.cpp
Linking CLW
==== Building Calc (release_x64) ====
Creating obj/x64/Release
calc.cpp
calc_clw.cpp
calc_vkw.cpp
device_clw.cpp
device_vkw.cpp
Linking Calc
==== Building RadeonRays (release_x64) ====
bvh.cpp
Creating obj/x64/Release
hlbvh.cpp
split_bvh.cpp
calc_intersection_device.cpp
calc_intersection_device_cl.cpp
calc_intersection_device_vk.cpp
radeon_rays.cpp
radeon_rays_impl.cpp
mesh.cpp
bvh2lstrategy.cpp
bvhstrategy.cpp
Linking Gtest
fatbvhstrategy.cpp
hlbvh_strategy.cpp
fatnode_bvh_translator.cpp
plain_bvh_translator.cpp
options.cpp
world.cpp
Linking RadeonRays
Running postbuild commands
mv ../Bin/Release/x64/libRadeonRays64.so ../Bin/Release/x64/libRadeonRays64.so.2.0
` ../Bin/Release/x64/libRadeonRays64.soadeonRays64.so.2.0
==== Building UnitTest (release_x64) ====
==== Building App (release_x64) ====
test_main.cpp
Creating obj/x64/Release
tiny_obj_loader.cpp
Creating obj/x64/Release
aorenderer.cpp
In file included from test_main.cpp:25:0:
clw_test_cl.h: In member function ‘virtual void CLWCL::SetUp()’:
clw_test_cl.h:76:18: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1359) [-Wdeprecated-declarations]
         queue_ = clCreateCommandQueue(rawcontext_, device, 0, &status);
                  ^
clw_test_cl.h:76:70: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1359) [-Wdeprecated-declarations]
         queue_ = clCreateCommandQueue(rawcontext_, device, 0, &status);
                                                                      ^
In file included from test_main.cpp:29:0:
radeon_rays_test_cl.h: In member function ‘virtual void ApiCl::SetUp()’:
radeon_rays_test_cl.h:81:18: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1359) [-Wdeprecated-declarations]
         queue_ = clCreateCommandQueue(rawcontext_, device, 0, &status);
                  ^
radeon_rays_test_cl.h:81:70: warning: ‘_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)’ is deprecated (declared at /usr/include/CL/cl.h:1359) [-Wdeprecated-declarations]
         queue_ = clCreateCommandQueue(rawcontext_, device, 0, &status);
                                                                      ^
make[1]: *** No rule to make target '../Bin/Release/x64/libRadeonRays64.so', needed by '../Bin/Release/x64/UnitTest64'.  Stop.
make[1]: *** Waiting for unfinished jobs....
utils.cpp
Ibl.cpp
ptrenderer.cpp
collector.cpp
image_io.cpp
material_io.cpp
scene_io.cpp
scene_test_io.cpp
camera.cpp
material.cpp
scene1.cpp
scene_tracker.cpp
shape.cpp
tinyxml2.cpp
Makefile:82: recipe for target 'UnitTest' failed
make: *** [UnitTest] Error 2
make: *** Waiting for unfinished jobs....
config_manager.cpp
main.cpp
sh.cpp
shader_manager.cpp
shproject.cpp
make[1]: *** No rule to make target '../Bin/Release/x64/libRadeonRays64.so', needed by '../Bin/Release/x64/App64'.  Stop.
make[1]: *** Waiting for unfinished jobs....
tiny_obj_loader.cpp
Makefile:70: recipe for target 'App' failed
make: *** [App] Error 2

I have installed sudo apt-get install libopenimageio-dev libglew-dev freeglut3-dev nvidia-opencl-dev, and then run premake and make commands.

I am on Ubuntu 16.04 system with 8Gb RAM and Nvidia 940M GPU.

Edit: On replacing nvidia-opencl-dev with ocl-icd-opencl-dev and then rebuilding, I get this error :

==== Building CLW (release_x64) ====
==== Building Gtest (release_x64) ====
==== Building Calc (release_x64) ====
==== Building RadeonRays (release_x64) ====
Linking RadeonRays
Running postbuild commands
mv ../Bin/Release/x64/libRadeonRays64.so ../Bin/Release/x64/libRadeonRays64.so.2.0
` ../Bin/Release/x64/libRadeonRays64.soadeonRays64.so.2.0
==== Building App (release_x64) ====
==== Building UnitTest (release_x64) ====
Linking UnitTest
Linking App
obj/x64/Release/Ibl.o: In function `Baikal::Ibl::DumpPdf(std::string const&)':
Ibl.cpp:(.text+0x663): undefined reference to `OpenImageIO::v1_6::ImageOutput::create(std::string const&, std::string const&)'
obj/x64/Release/Ibl.o: In function `Baikal::Ibl::Simulate(std::string const&)':
Ibl.cpp:(.text+0xa5a): undefined reference to `OpenImageIO::v1_6::ImageOutput::create(std::string const&, std::string const&)'
obj/x64/Release/image_io.o: In function `Baikal::Oiio::LoadImage(std::string const&) const':
image_io.cpp:(.text+0x27): undefined reference to `OpenImageIO::v1_6::ImageInput::open(std::string const&, OpenImageIO::v1_6::ImageSpec const*)'
obj/x64/Release/image_io.o: In function `Baikal::Oiio::SaveImage(std::string const&, Baikal::Texture const*) const':
image_io.cpp:(.text+0x39a): undefined reference to `OpenImageIO::v1_6::ImageOutput::create(std::string const&, std::string const&)'
obj/x64/Release/main.o: In function `SaveFrameBuffer(std::string const&, RadeonRays::float3 const*)':
main.cpp:(.text+0x2601): undefined reference to `OpenImageIO::v1_6::ImageOutput::create(std::string const&, std::string const&)'
collect2: error: ld returned 1 exit status
Makefile:156: recipe for target '../Bin/Release/x64/App64' failed
make[1]: *** [../Bin/Release/x64/App64] Error 1
Makefile:70: recipe for target 'App' failed
make: *** [App] Error 2