Skybolt icon indicating copy to clipboard operation
Skybolt copied to clipboard

Building the v1.5.0 with package earcut not found

Open RocketFan opened this issue 1 year ago • 1 comments

CMake Error at src/Skybolt/SkyboltVis/CMakeLists.txt:32 (find_package):
  By not providing "Findearcut.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "earcut", but
  CMake did not find one.

  Could not find a package configuration file provided by "earcut" with any
  of the following names:

    earcutConfig.cmake
    earcut-config.cmake

  Add the installation prefix of "earcut" to CMAKE_PREFIX_PATH or set
  "earcut_DIR" to a directory containing one of the above files.  If "earcut"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/jtomczak/git/Skybolt/build/CMakeFiles/CMakeOutput.log".
ERROR: conanfile.py (skybolt/1.5.0): Error in build() method, line 116
	cmake.configure()
	ConanException: Error 1 while executing cd '/home/jtomczak/git/Skybolt/build' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/jtomczak/git/Skybolt/build/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_MODULE_PATH="/home/jtomczak/git/Skybolt/build" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DBoost_STATIC_LIBS="True" -DOSG_STATIC_LIBS="True" -DSKYBOLT_PLUGINS_STATIC_BUILD="False" -DCMAKE_POSITION_INDEPENDENT_CODE="True" -DBUILD_FFT_OCEAN_PLUGIN="true" -DCMAKE_TOOLCHAIN_FILE="conan_paths.cmake" -Wno-dev '/home/jtomczak/git/Skybolt'

Hi, I got this error when trying to build project with conan build command. Earcut package seems to be installed in ~/.conan/data/.

System: Ubuntu 20.04

RocketFan avatar Sep 21 '23 15:09 RocketFan

Recently the cmake package was renamed from earcut to earcut_hpp. Previously conan created a Findearcut.cmake file in the dependency install location, but now the file is called Findearcut_hpp.cmake. I will update skybolt to call find_package with the new name. In the meantime, changing src/Skybolt/SkyboltVis/CMakeLists.txt to refer to earcut_hpp should work.

matthew-reid avatar Nov 09 '23 10:11 matthew-reid