CuraEngine 5.5.0/5.6.0/5.7.0 fails to build on building from the source
Dogm opened this issue · 4 comments
Hi, can someone tell me how to bypass compilation errors?
Application Version
5,5.0/5.6.0
Platform
Windows 11
My Environment:
OS Windows 11
Conan 1.60.0
Python 3.10.11
CMake 3.28.1
MSVC 2022
src\ExtruderPlan.cpp(69): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
src\gcodeExport.cpp(1007): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
src\FffGcodeWriter.cpp(305): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
src\infill.cpp(324): error C2661: 'std::vector<cura::VariableWidthLines,std::allocatorcura::VariableWidthLines>::insert': no overloaded function takes 1 arguments
include\plugins/slotproxy.h(96): error C3487: '_T0': all return expressions must deduce to the same type: previously it was 'ResponseTp::native_value_type'
...
ERROR: conanfile.py (curaengine/5.5.0): Error in build() method, line 145
cmake.build()
ConanException: Error 1 while executing cmake --build "D:\Repo\XCoreEngine_5.5.git\build\Release" -- -j20
src\ExtruderPlan.cpp(69): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
src\gcodeExport.cpp(1007): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
src\FffGcodeWriter.cpp(307): error C2227: left of '->{dtor}' must point to class/struct/union/generic type
...
ERROR: conanfile.py (curaengine/5.6.1-beta.0): Error in build() method, line 148
cmake.build()
ConanException: Error 1 while executing cmake --build "D:\Repo\XCoreEngine_5.6.git\build\Release" -- -j20
Same result with
Conan 1.60.2
D:\Repo\CuraEngine-5.7>conan install . --build=missing --update
Configuration (profile_host):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
curaengine:compiler.cppstd=20
curaengine*:compiler.cppstd=20
curaengine_plugin_infill_generate:compiler.cppstd=20
curaengine_plugin_gradual_flow:compiler.cppstd=20
curaengine_grpc_definitions:compiler.cppstd=20
scripta:compiler.cppstd=20
umspatial*:compiler.cppstd=20
dulcificum:compiler.cppstd=20
cura_settings: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
tools.build:skip_test=False
Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=17
compiler.runtime=MD
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.env.virtualenv:auto_use=True
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=False
WARN: arcus/5.3.1: requirement protobuf/3.21.9 overridden by curaengine/5.7.0-alpha.1+source to protobuf/3.21.12
WARN: protobuf/3.21.12: requirement zlib/[>=1.2.11 <2] overridden by arcus/5.3.1 to zlib/1.2.12
WARN: asio-grpc/2.6.0: requirement grpc/1.54.3 overridden by curaengine/5.7.0-alpha.1+source to grpc/1.50.1
WARN: asio-grpc/2.6.0: requirement boost/1.83.0 overridden by curaengine/5.7.0-alpha.1+source to boost/1.82.0
WARN: grpc/1.50.1: requirement openssl/[>=1.1 <4] overridden by asio-grpc/2.6.0 to openssl/3.2.0
WARN: grpc/1.50.1: requirement zlib/[>=1.2.11 <2] overridden by asio-grpc/2.6.0 to zlib/1.2.12
WARN: openssl/3.2.0: requirement zlib/[>=1.2.11 <2] overridden by grpc/1.50.1 to zlib/1.2.12
WARN: asio-grpc/2.6.0: requirement grpc/1.54.3 overridden by curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing to grpc/1.50.1
WARN: asio-grpc/2.6.0: requirement boost/1.83.0 overridden by curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing to boost/1.82.0
WARN: grpc/1.50.1: requirement openssl/[>=1.1 <4] overridden by asio-grpc/2.6.0 to openssl/3.2.0
WARN: grpc/1.50.1: requirement zlib/[>=1.2.11 <2] overridden by asio-grpc/2.6.0 to zlib/1.2.12
WARN: spdlog/1.12.0: requirement fmt/10.2.1 overridden by curaengine/5.7.0-alpha.1+source to fmt/10.1.1
clipper/6.4.2@ultimaker/stable: WARN: Can't update, no package in remote
openssl/3.2.0: WARN: Can't update, no package in remote
protobuf/3.21.12: WARN: Can't update, no package in remote
spdlog/1.12.0: WARN: Can't update, no package in remote
arcus/5.3.1: WARN: Can't update, no package in remote
grpc/1.50.1: WARN: Can't update, no package in remote
curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing: WARN: Can't update, no package in remote
Version ranges solved
zlib/* versions found in 'cura' remote
Version range '>=1.2.11 <2' required by 'protobuf/3.21.9' resolved to 'zlib/1.3.1' in remote 'cura'
standardprojectsettings/*@ultimaker/stable versions found in 'cura' remote
Version range '>=0.1.0' required by 'conanfile.py (curaengine/5.7.0-alpha.1+source)' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura'
conanfile.py (curaengine/5.7.0-alpha.1+source): Installing package
Requirements
abseil/20230125.3 from 'cura' - Cache
arcus/5.3.1 from 'cura' - Cache
asio-grpc/2.6.0 from 'cura' - Cache
boost/1.82.0 from 'cura' - Cache
c-ares/1.19.1 from 'cura' - Cache
clipper/6.4.2@ultimaker/stable from 'cura' - Cache
curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing from 'cura' - Cache
fmt/10.1.1 from 'cura' - Cache
grpc/1.50.1 from 'cura' - Cache
mapbox-geometry/2.0.3 from 'cura' - Cache
mapbox-variant/1.2.0 from 'cura' - Cache
mapbox-wagyu/0.5.0@ultimaker/stable from 'cura' - Cache
neargye-semver/0.3.0 from 'cura' - Cache
openssl/3.2.0 from 'cura' - Cache
protobuf/3.21.12 from 'cura' - Cache
range-v3/0.12.0 from local cache - No remote
rapidjson/1.1.0 from local cache - No remote
re2/20230301 from 'cura' - Cache
scripta/0.1.0@ultimaker/testing from 'cura' - Cache
spdlog/1.12.0 from 'cura' - Cache
stb/20200203 from local cache - No remote
zlib/1.2.12 from local cache - No remote
Packages
abseil/20230125.3:68905a6cf1c0eb4bead20ca87f663bdd27bc8c40 - Cache
arcus/5.3.1:8f52a5966ac1b6d1b4e076d87a8ece4f214b82fa - Cache
asio-grpc/2.6.0:bb6442aba7a6e403c16a912f65317abff8542491 - Cache
boost/1.82.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
c-ares/1.19.1:ae649a6c249eae49c84e4189dcc65c6e2d704859 - Cache
clipper/6.4.2@ultimaker/stable:a6d82b50d0da091cd19a082f292518ff1b7252ea - Cache
curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing:6399b6eec7395bee8856bbe862fcd96bb3686e60 - Cache
fmt/10.1.1:b4e2bc17a9dd604e8c03a12fd8642f5b9fbb34d5 - Cache
grpc/1.50.1:224247b63487d19c6a9e0c0db4ee7fdb065d0756 - Cache
mapbox-geometry/2.0.3:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
mapbox-variant/1.2.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
mapbox-wagyu/0.5.0@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
neargye-semver/0.3.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
openssl/3.2.0:5084d06e0b6919cb0a277c1426b9666eda33c063 - Cache
protobuf/3.21.12:25c559d9bd3e56ee56fea11c9082b7e32838e206 - Cache
range-v3/0.12.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
rapidjson/1.1.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
re2/20230301:68905a6cf1c0eb4bead20ca87f663bdd27bc8c40 - Cache
scripta/0.1.0@ultimaker/testing:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
spdlog/1.12.0:c29528171102081f43c760cec856284824c185c8 - Cache
stb/20200203:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
zlib/1.2.12:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Build requirements
gtest/1.12.1 from 'cura' - Cache
protobuf/3.21.9 from 'cura' - Cache
standardprojectsettings/0.1.1@ultimaker/stable from 'cura' - Cache
zlib/1.3.1 from 'cura' - Cache
Build requirements packages
gtest/1.12.1:0c0a6d527968983b4df68fca87c1af26a436b6a0 - Cache
protobuf/3.21.9:174ab9a543159f017ed87e3a870e01a4096a183f - Cache
standardprojectsettings/0.1.1@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
zlib/1.3.1:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Cache
Installing (downloading, building) binaries...
abseil/20230125.3: Already installed!
boost/1.82.0: Already installed!
c-ares/1.19.1: Already installed!
clipper/6.4.2@ultimaker/stable: Already installed!
fmt/10.1.1: Already installed!
gtest/1.12.1: Already installed!
mapbox-variant/1.2.0: Already installed!
neargye-semver/0.3.0: Already installed!
range-v3/0.12.0: Already installed!
rapidjson/1.1.0: Already installed!
re2/20230301: Already installed!
scripta/0.1.0@ultimaker/testing: Already installed!
standardprojectsettings/0.1.1@ultimaker/stable: Already installed!
stb/20200203: Already installed!
zlib/1.2.12: Already installed!
zlib/1.3.1: Already installed!
mapbox-geometry/2.0.3: Already installed!
openssl/3.2.0: Already installed!
protobuf/3.21.9: Already installed!
protobuf/3.21.12: Already installed!
spdlog/1.12.0: Already installed!
arcus/5.3.1: Already installed!
grpc/1.50.1: Already installed!
mapbox-wagyu/0.5.0@ultimaker/stable: Already installed!
asio-grpc/2.6.0: Already installed!
curaengine_grpc_definitions/0.2.0-alpha.0+550ada@ultimaker/testing: Already installed!
conanfile.py (curaengine/5.7.0-alpha.1+source): Applying build-requirement: standardprojectsettings/0.1.1@ultimaker/stable
conanfile.py (curaengine/5.7.0-alpha.1+source): Applying build-requirement: gtest/1.12.1
conanfile.py (curaengine/5.7.0-alpha.1+source): Applying build-requirement: protobuf/3.21.9
conanfile.py (curaengine/5.7.0-alpha.1+source): Applying build-requirement: zlib/1.3.1
conanfile.py (curaengine/5.7.0-alpha.1+source): Generator txt created conanbuildinfo.txt
conanfile.py (curaengine/5.7.0-alpha.1+source): Calling generate()
conanfile.py (curaengine/5.7.0-alpha.1+source): Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
conanfile.py (curaengine/5.7.0-alpha.1+source): If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=D:\Repo\CuraEngine-5.7\build\Release\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 1 '.dll' file: Arcus.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 1 '.dll' file: Arcus.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 1 '.dll' file: polyclipping.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 1 '.dll' file: polyclipping.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 2 '.dll' files: fips.dll, legacy.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Copied 2 '.dll' files: fips.dll, legacy.dll
conanfile.py (curaengine/5.7.0-alpha.1+source): Aggregating env generators
conanfile.py (curaengine/5.7.0-alpha.1+source): Generated conaninfo.txt
conanfile.py (curaengine/5.7.0-alpha.1+source): Generated graphinfo
The problem has been resolved.
To solve the problem, I had to remove the 2022 visual studio and all add-ons and service packs from the system, and reinstall from a clean installation.