Open troiwill opened 3 years ago
Hi @troiwill by any chance did you find a solution? It seems that we are many people to have this problem (https://github.com/acschaefer/ray_tracing/issues/5 )
FYI @gege3107
I did solve the issue some time ago. But I do not remember the exact steps. Hopefully, these steps help you get further @gege3107:
Create a python virtual environment via virtualenv
or conda
. I do not remember the Python version used. But the environment should have the following requirements:
cmake
tk
numpy
matplotlib
open3d-python
progressbar2
pyquaternion
transforms3d
scipy
scikit-image
networkx
psutil
Clone the ray_tracing
repository, add change the following lines in the CMakeLists.txt
file:
# This should point to the python virtual environment you just created (specifically the python executable).
set(PYTHON_EXECUTABLE /usr/bin/python)
add_executable(test_ray_tracing cpp/test_ray_tracing.cpp) target_link_libraries(test_ray_tracing Catch2::Catch2)
enable_testing() add_test( NAME test_cpp_implementation COMMAND test_ray_tracing) add_test( NAME test_python_implementation COMMAND python -m pytest ${CMAKE_SOURCE_DIR}/python/test_raytracing.py)
In the `cpp/test_ray_tracing.cpp` file, use `#include <catch2/catch_all.hpp>` instead of `#include <catch2/catch.hpp>`.
This might be most, if not all, of what you need to compile.
I still have the issue
Error copying file "/home/gee/polex/ray_tracing/build/ray_tracing_python.so" to "/home/gee/polex/ray_tracing/python/raytracing/ray_tracing_python.so".
I followed the instructions to install
ray_casting
software. But there is an issue when runningmake -j8
.First, the make process fails because the file
<catch2/catch.hpp>
does not exist (this file is referenced in the test raycasting CPP file). I noticed that there is a file called<catch2/catch_all.hpp>
instead. Therefore, I changed the<catch2/catch.hpp>
to<catch2/catch_all.hpp>
, which seemed to resolve the issue.Now, there is the following issue once I re-run
make -j8
:Can someone help in resolving this problem?