Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.18k stars 2.08k forks source link

How to add the installation prefix of "Arcus" to CMAKE_PREFIX_PATH or set? #8458

Open JaideepBgit opened 4 years ago

JaideepBgit commented 4 years ago

Application Version CURA 3.6 version

Platform Processor: Intel(R) Core(TM) i5-8300H CPU @ 2.30 GHz RAM: 16.0 GB System type: 64-bit Operating system, x64-based processor

Steps to Reproduce I am trying to run source from https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source-on-Windows#microsoft-visual-studio-2019. And attempting to run step 10.

  1. Open CMake and point its source directory to your cura-build repository and the build directory to the build subdirectory.

Actual Results

CMake Error at projects/CuraEngine.cmake:1 (find_package): By not providing "FindArcus.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Arcus", but CMake did not find one.

Could not find a package configuration file provided by "Arcus" (requested version 1.1) with any of the following names:

ArcusConfig.cmake
arcus-config.cmake

Add the installation prefix of "Arcus" to CMAKE_PREFIX_PATH or set "Arcus_DIR" to a directory containing one of the above files. If "Arcus" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:135 (include)

Expected results Should generate all files in build directory. From the above error it is evident that the cmake is not able to find python executable. Arcus library is from building the CURA build environment. When CURA environment is build, Arcus is not available *(which is installed when the cura-build-environment is build). How to link or make the cmake find the Arcus executable which is installed ? For my case it is installed/found the executable in this folder: \cura-build-environment-master\install_dir\bin

Ghostkeeper commented 4 years ago

Do you know where Arcus was installed? You could set Arcus_DIR to be the path to where it was installed. I'd expect there to be a share folder containing a cmake folder that contains either ArcusConfig.cmake or arcus-config.cmake.

The installation prefix of cura-build needs to be the same as the installation prefix of cura-build-environment.