Closed fanfanPopo closed 4 years ago
I'm actually having the same problem here on Ubuntu right now. My workaround is to remove the word "development" from this line here: https://github.com/Ultimaker/libArcus/blob/734d2eac9c5341eef683c8c41f603573373743c2/CMakeLists.txt#L35
You can edit it in the (lib)Arcus-prefix folder. Running CMake again on the main cura-build-environment folder should allow it to continue.
You'll also have to make a similar change to libSavitar.
Ok thanks, it worked. Now I have an other error which is
[ 83%] Performing build step for 'Arcus'
[ 35%] Built target Arcus
[ 41%] Building CXX object CMakeFiles/python_module_Arcus.dir/python/sipArcuspart0.cpp.o
In file included from /xxx/cura-build-environment/build/Arcus-prefix/src/Arcus-build/python/sipArcuspart0.cpp:10:
In file included from /xxx/cura-build-environment/build/Arcus-prefix/src/Arcus-build/python/sipAPIArcus.h:10:
/usr/local/include/sip.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
make[5]: *** [CMakeFiles/python_module_Arcus.dir/python/sipArcuspart0.cpp.o] Error 1
make[4]: *** [CMakeFiles/python_module_Arcus.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [Arcus-prefix/src/Arcus-stamp/Arcus-build] Error 2
make[1]: *** [CMakeFiles/Arcus.dir/all] Error 2
make: *** [all] Error 2
Well Python is installed and Python.h is existing. Don't know what to do ?
:smile: Well that's the Python development headers missing then.
On Ubuntu we can install libpython3-dev
to get these headers in. Maybe Brew has something similar?
Anyway, we should fix this development environment so that it takes the development headers in automatically as well, but it doesn't seem to reproduce this way on our build server or on the Docker container for CI that we're using.
@fanfanPopo When you build the cura-build-environment with cmake
, you also need to use the CMAKE_PREFIX_PATH
flag. For example:
cmake \
-DCMAKE_INSTALL_PREFIX=<path-to-install> \
-DCMAKE_PREFIX_PATH=<path-to-install> \
...
This will make sure that the components that are built later will find their dependencies.
Closing this issue due to inactivity.
Hello, I'm trying to build cura-build-environment on my MAC and I have this error. Apparently it doesn't find Python3. However, at the begining of the build, Python3.5.2 was successfully built. I checked again and Python 3 is installed (and so is Python2) on my MAC. Does Anyone knows how to fix this ? Thanks