acschaefer / ray_tracing

Fast grid-based ray tracing in C++ and Python
MIT License
7 stars 1 forks source link

Error copying 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" #5

Open genevieve-le-houx opened 2 years ago

genevieve-le-houx commented 2 years ago

Hi,

I'm trying to build the project as written in the readme but I have trouble executing the make -j8 command

Here is the output:

Scanning dependencies of target test_ray_tracing
Scanning dependencies of target ray_tracing_python
[ 50%] Building CXX object CMakeFiles/ray_tracing_python.dir/cpp/ray_tracing_python.cpp.o
[ 50%] Building CXX object CMakeFiles/test_ray_tracing.dir/cpp/test_ray_tracing.cpp.o
/home/gee/polex/ray_tracing/cpp/ray_tracing_python.cpp: In function ‘PyObject* pybind11_init()’:
/home/gee/polex/ray_tracing/cpp/ray_tracing_python.cpp:110:79: warning: ‘pybind11::module_::module_(const char*, const char*)’ is deprecated: Use PYBIND11_MODULE or module_::create_extension_module instead [-Wdeprecated-declarations]
  110 |     pybind11::module module("ray_tracing_python", "Amanatides-Woo ray tracing");
      |                                                                               ^
In file included from /home/gee/polex/ray_tracing/cpp/ray_tracing_python.cpp:5:
/usr/local/include/pybind11/pybind11.h:1142:14: note: declared here
 1142 |     explicit module_(const char *name, const char *doc = nullptr) {
      |              ^~~~~~~
[ 75%] Linking CXX static library libtest_ray_tracing.a
[ 75%] Built target test_ray_tracing
[100%] Linking CXX shared module ray_tracing_python.cpython-38-x86_64-linux-gnu.so
Copying shared library to Python directory
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".
make[2]: *** [CMakeFiles/ray_tracing_python.dir/build.make:86: ray_tracing_python.cpython-38-x86_64-linux-gnu.so] Error 1
make[2]: *** Deleting file 'ray_tracing_python.cpython-38-x86_64-linux-gnu.so'
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/ray_tracing_python.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

I'm not really used to make and makefiles so I don't know what to do then. Any help would be appreciated.

Thansk!

qsisi commented 2 years ago

I've met the same issue, could someone help us out?

qsisi commented 2 years ago

The issue is solved by compiling with python 2.7.