Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing compilation #148

Open
chungwong opened this issue Jan 28, 2023 · 0 comments
Open

Failing compilation #148

chungwong opened this issue Jan 28, 2023 · 0 comments

Comments

@chungwong
Copy link

I am trying to compile CuraEngine and appearantly I have to compile libArucs first as the compiling process for Cura is quite complex.
Howver, I have encounterd errors about StandardProjectSettings.cmake

What did I miss?

❯ git clone https://github.com/Ultimaker/libArcus.git
cd libArcus
Cloning into 'libArcus'...
remote: Enumerating objects: 2897, done.
remote: Counting objects: 100% (1292/1292), done.
remote: Compressing objects: 100% (538/538), done.
remote: Total 2897 (delta 673), reused 1188 (delta 615), pack-reused 1605
Receiving objects: 100% (2897/2897), 691.83 KiB | 2.97 MiB/s, done.
Resolving deltas: 100% (1707/1707), done.

libArcus on  main via △ v3.25.2 via 🐍 v3.9.2 
❯ conan install . --build=missing --update
# optional for a specific version: conan install . arcus/<version>@<user>/<channel> --build=missing --update
cmake --preset release
cmake --build --preset release
Trying to clone repo: https://github.com/ultimaker/conan-config.git
Repo cloned!
Copying file global.conf to /home/chung/.conan/.
Skip README.md
Processing conan.conf
Defining remotes from remotes.txt
Copying file .gitignore to /home/chung/.conan/.
Copying file cura.jinja to /home/chung/.conan/profiles
Copying file cura_build.jinja to /home/chung/.conan/profiles
Copying file GitHubActionsRunEnv.py to /home/chung/.conan/generators
Copying file GitHubActionsBuildEnv.py to /home/chung/.conan/generators
Copying file VirtualPythonEnv.py to /home/chung/.conan/generators
Copying file PyCharmRunEnv.py to /home/chung/.conan/generators
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
curaengine:compiler.cppstd=20
umspatial*:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

standardprojectsettings/0.1.0@ultimaker/stable: WARN: Can't update, no package in remote
protobuf/3.21.4: WARN: Can't update, no package in remote
Version ranges solved
    umbase/*@ultimaker/stable versions found in 'cura' remote
    Version range '>=0.1.7' required by 'py_require' resolved to 'umbase/0.1.7@ultimaker/stable' in remote 'cura'
    standardprojectsettings/*@ultimaker/stable versions found in 'cura' remote
    Version range '>=0.1.0' required by 'conanfile.py (arcus/5.3.0-alpha)' resolved to 'standardprojectsettings/0.1.0@ultimaker/stable' in remote 'cura'

conanfile.py (arcus/5.3.0-alpha): Installing package
Requirements
    protobuf/3.21.4 from 'cura-ce' - Cache
    standardprojectsettings/0.1.0@ultimaker/stable from 'cura-ce' - Newer
    zlib/1.2.12 from 'cura-ce' - Cache
Python requires
    umbase/0.1.7@ultimaker/stable
Packages
    protobuf/3.21.4:67c9781e309bce3cabc6ef66dfa0241ec65f68b5 - Cache
    standardprojectsettings/0.1.0@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.12:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Cache

Installing (downloading, building) binaries...
standardprojectsettings/0.1.0@ultimaker/stable: Already installed!
zlib/1.2.12: Already installed!
protobuf/3.21.4: Already installed!
protobuf/3.21.4: Appending PATH environment variable: /home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/bin
conanfile.py (arcus/5.3.0-alpha): Generator txt created conanbuildinfo.txt
conanfile.py (arcus/5.3.0-alpha): Generator 'CMakeToolchain' calling 'generate()'
conanfile.py (arcus/5.3.0-alpha): Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
conanfile.py (arcus/5.3.0-alpha): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/chung/repos/libArcus/build/Release/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
conanfile.py (arcus/5.3.0-alpha): Generator 'VirtualBuildEnv' calling 'generate()'
conanfile.py (arcus/5.3.0-alpha): Generator 'CMakeDeps' calling 'generate()'
conanfile.py (arcus/5.3.0-alpha): Generator 'VirtualRunEnv' calling 'generate()'
conanfile.py (arcus/5.3.0-alpha): Aggregating env generators
conanfile.py (arcus/5.3.0-alpha): Generated conaninfo.txt
conanfile.py (arcus/5.3.0-alpha): Generated graphinfo
Preset CMake variables:

  CMAKE_BUILD_TYPE="Release"
  CMAKE_POLICY_DEFAULT_CMP0091="NEW"
  CMAKE_TOOLCHAIN_FILE:FILEPATH="/home/chung/repos/libArcus/build/Release/generators/conan_toolchain.cmake"

-- Using Conan toolchain: /home/chung/repos/libArcus/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = ON
-- The C compiler identification is Clang 11.0.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: Target declared 'standardprojectsettings::standardprojectsettings'
-- Conan: Including build module from '/home/chung/.conan/data/standardprojectsettings/0.1.0/ultimaker/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/share/cmake/StandardProjectSettings.cmake'
-- Generating compile commands to /home/chung/repos/libArcus/build/Release/compile_commands.json
-- Conan: Component target declared 'protobuf::libprotobuf'
-- Conan: Component target declared 'protobuf::libprotoc'
-- Conan: Target declared 'protobuf::protobuf'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-options.cmake'
-- Enabling threading support for Arcus
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_POLICY_DEFAULT_CMP0091


-- Build files have been written to: /home/chung/repos/libArcus/build/Release
[6/6] Linking CXX shared library libArcus.so

libArcus on  main via △ v3.25.2 via 🐍 v3.9.2 took 13s 
(reverse-i-search)`cre': conan ^Ceate . arcus/5.2.2 --build=missing --update

libArcus on  main via △ v3.25.2 via 🐍 v3.9.2 
❯ conan create . arcus/5.2.2 --build=missing --update
Exporting package recipe
arcus/5.3.0-alpha@arcus/5.2.2 exports: File 'conandata.yml' found. Exporting it...
arcus/5.3.0-alpha@arcus/5.2.2 exports: Copied 1 '.yml' file: conandata.yml
arcus/5.3.0-alpha@arcus/5.2.2 exports: Copied 1 file: LICENSE
arcus/5.3.0-alpha@arcus/5.2.2: Repo origin deduced by 'auto': https://github.com/Ultimaker/libArcus.git
arcus/5.3.0-alpha@arcus/5.2.2: Revision deduced by 'auto': 6b70728da6149232dd8c7b20d23a31103468b3ba
arcus/5.3.0-alpha@arcus/5.2.2: SCM: Getting sources from folder: /home/chung/repos/libArcus
arcus/5.3.0-alpha@arcus/5.2.2: A new conanfile.py version was exported
arcus/5.3.0-alpha@arcus/5.2.2: Folder: /home/chung/.conan/data/arcus/5.3.0-alpha/arcus/5.2.2/export
arcus/5.3.0-alpha@arcus/5.2.2: Using git commit as the recipe revision: 6b70728da6149232dd8c7b20d23a31103468b3ba
arcus/5.3.0-alpha@arcus/5.2.2: Exported revision: 6b70728da6149232dd8c7b20d23a31103468b3ba
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
curaengine:compiler.cppstd=20
umspatial*:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True

standardprojectsettings/0.1.0@ultimaker/stable: WARN: Can't update, no package in remote
protobuf/3.21.4: WARN: Can't update, no package in remote
Version ranges solved
    Version range '>=0.1.7' required by 'py_require' resolved to 'umbase/0.1.7@ultimaker/stable' in remote 'cura'
    standardprojectsettings/*@ultimaker/stable versions found in 'cura' remote
    Version range '>=0.1.0' required by 'arcus/5.3.0-alpha@arcus/5.2.2' resolved to 'standardprojectsettings/0.1.0@ultimaker/stable' in remote 'cura'

arcus/5.3.0-alpha@arcus/5.2.2 (test package): Installing package
Requirements
    arcus/5.3.0-alpha@arcus/5.2.2 from local cache - No remote
    protobuf/3.21.4 from 'cura-ce' - Cache
    standardprojectsettings/0.1.0@ultimaker/stable from 'cura-ce' - Newer
    zlib/1.2.12 from 'cura-ce' - Cache
Python requires
    umbase/0.1.7@ultimaker/stable
Packages
    arcus/5.3.0-alpha@arcus/5.2.2:47069466df328fe822c2353c1d0401d15e5b529c - Cache
    protobuf/3.21.4:67c9781e309bce3cabc6ef66dfa0241ec65f68b5 - Cache
    standardprojectsettings/0.1.0@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.12:19729b9559f3ae196cad45cb2b97468ccb75dcd1 - Cache

Installing (downloading, building) binaries...
standardprojectsettings/0.1.0@ultimaker/stable: Already installed!
zlib/1.2.12: Already installed!
protobuf/3.21.4: Already installed!
protobuf/3.21.4: Appending PATH environment variable: /home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/bin
arcus/5.3.0-alpha@arcus/5.2.2: Already installed!
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Generator txt created conanbuildinfo.txt
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Calling generate()
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
arcus/5.3.0-alpha@arcus/5.2.2 (test package): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Aggregating env generators
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Generated conaninfo.txt
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Generated graphinfo
Using lockfile: '/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan.lock'
Using cached profile from lockfile
arcus/5.3.0-alpha@arcus/5.2.2 (test package): Calling build()
arcus/5.3.0-alpha@arcus/5.2.2 (test package): CMake command: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/chung/repos/libArcus/test_package"

----Running------
> . "/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conanbuild.sh" && cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/chung/repos/libArcus/test_package"
-----------------
-- Using Conan toolchain: /home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions OFF
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:5 (include):
  include could not find requested file:

    ../cmake/StandardProjectSettings.cmake


-- Conan: Target declared 'arcus::arcus'
-- Conan: Target declared 'standardprojectsettings::standardprojectsettings'
-- Conan: Including build module from '/home/chung/.conan/data/standardprojectsettings/0.1.0/ultimaker/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/share/cmake/StandardProjectSettings.cmake'
-- Generating compile commands to /home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/compile_commands.json
-- Conan: Component target declared 'protobuf::libprotobuf'
-- Conan: Component target declared 'protobuf::libprotoc'
-- Conan: Target declared 'protobuf::protobuf'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-options.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-generate.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-module.cmake'
-- Conan: Including build module from '/home/chung/.conan/data/protobuf/3.21.4/_/_/package/67c9781e309bce3cabc6ef66dfa0241ec65f68b5/lib/cmake/protobuf/protobuf-options.cmake'
-- Enabling threading support for test
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Configuring incomplete, errors occurred!
See also "/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/CMakeFiles/CMakeOutput.log".
See also "/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/CMakeFiles/CMakeError.log".
ERROR: arcus/5.3.0-alpha@arcus/5.2.2 (test package): Error in build() method, line 25
	cmake.configure()
	ConanException: Error 1 while executing cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/chung/repos/libArcus/test_package/build/a01cf1b77ed3b0273e691871b9047d735031955e/package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/home/chung/repos/libArcus/test_package"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant