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

Tried setting up Cura developent environemt #17057

Open Toasterklient opened 1 year ago

Toasterklient commented 1 year ago

I hope it´s the right place to ask for help:

I want to join Cura developenet and looking more in to it. I followd the intructions from the Wiki Getting Started.

  1. Downloaded PyCharm Community edition 2023.2.3
  2. followed step 2
  3. tried to go through step 3 of the instruction but it desent work. It said the compiler wasn´t definded, i checkt and modified the conan defaut profile. Definded a compiler and compiler version. After that the process started but didn´t complet.

What am i doing worng? Or should i try it in Visual Studio Code?

conan install . --build=missing --update -o cura:devtools=True -g PyCharmRunEnv Configuration (profile_host): [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.libcxx=libstdc++11 compiler.version=13.1 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 [options] cura:devtools=True [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=gcc compiler.cppstd=17 compiler.libcxx=libstdc++11 compiler.version=13.1 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: grpc/1.50.1: requirement openssl/[>=1.1 <4] overridden by asio-grpc/2.6.0 to openssl/1.1.1l WARN: pyarcus/5.3.0: requirement zlib/1.2.12 overridden by cura/5.6.0-alpha to zlib/1.2.13 WARN: cpython/3.10.4: requirement zlib/1.2.11 overridden by pyarcus/5.3.0 to zlib/1.2.13 WARN: tcl/8.6.10: requirement zlib/1.2.12 overridden by tk/8.6.10 to zlib/1.2.13 WARN: curaengine/5.6.0-alpha+testing_1aedf1@ultimaker/testing: requirement zlib/1.2.12 overridden by cura/5.6.0-alpha to zlib/1.2.13 WARN: spdlog/1.10.0: requirement fmt/8.1.1 overridden by curaengine/5.6.0-alpha+testing_1aedf1@ultimaker/testing to fmt/9.0.0 WARN: curaengine_plugin_gradual_flow/0.2.0-alpha+testing_df1e5e@ultimaker/testing: requirement curaengine_grpc_definitions/0.1.0-beta.1 overridden by cura/5.6.0-alpha to curaengine_grpc_definitions/0.1.0-alpha+testing_c50918@ult imaker/testing gnu-config/cci.20201022: Not found in local cache, looking in remotes... gnu-config/cci.20201022: Trying with 'cura'... Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [2.11k]
Downloading conan_export.tgz completed [0.28k]
Decompressing conan_export.tgz completed [0.00k] gnu-config/cci.20201022: Downloaded recipe revision 8cee5aa587f355f8fde822cf368805db nasm/2.15.05: Not found in local cache, looking in remotes... nasm/2.15.05: Trying with 'cura'... Downloading conanmanifest.txt completed [0.22k]
Downloading conanfile.py completed [3.59k]
Downloading conan_export.tgz completed [0.33k]
Decompressing conan_export.tgz completed [0.00k] nasm/2.15.05: Downloaded recipe revision aedc0cf872aaa93c6ed9dc4a7119918c Version ranges solved translationextractor/@ultimaker/stable versions found in 'cura' remote Version range '>=2.1.1' required by 'py_require' resolved to 'translationextractor/2.1.4@ultimaker/stable' in remote 'cura' pyprojecttoolchain/@ultimaker/stable versions found in 'cura' remote Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in remote 'cura' sipbuildtool/@ultimaker/stable versions found in 'cura' remote Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in remote 'cura' Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in remote 'cura' Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in remote 'cura' Version range '>=0.1.7' required by 'py_require' resolved to 'pyprojecttoolchain/0.1.7@ultimaker/stable' in remote 'cura' Version range '>=0.2.4' required by 'py_require' resolved to 'sipbuildtool/0.2.4@ultimaker/stable' in remote 'cura' 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' Version range '>=2.1.2' required by 'py_require' resolved to 'translationextractor/2.1.4@ultimaker/stable' in remote 'cura' standardprojectsettings/@ultimaker/stable versions found in 'cura' remote Version range '>=0.1.0' required by 'nest2d/5.3.0' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura' Version range '>=0.1.0' required by 'savitar/5.3.0' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura' Version range '>=0.1.0' required by 'arcus/5.3.0' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura' cmake/ versions found in 'cura' remote Version range '>=3.20 <4' required by 'googleapis/cci.20221108' resolved to 'cmake/3.26.3' in remote 'cura' Version range '>=0.1.0' required by 'curaengine/5.6.0-alpha+testing_1aedf1@ultimaker/testing' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura' Version range '>=0.1.0' required by 'curaengine_plugin_gradual_flow/0.2.0-alpha+testing_df1e5e@ultimaker/testing' resolved to 'standardprojectsettings/0.1.1@ultimaker/stable' in remote 'cura'

conanfile.py (cura/5.6.0-alpha): Installing package Requirements abseil/20220623.0 from 'cura' - Cache arcus/5.3.0 from 'cura' - Cache asio-grpc/2.6.0 from 'cura' - Cache boost/1.82.0 from 'cura' - Cache bzip2/1.0.8 from 'cura' - Cache c-ares/1.19.0 from 'cura' - Cache clipper/6.4.2 from 'cura' - Cache cpython/3.10.4 from 'cura' - Cache ctre/3.7.2 from 'cura' - Cache cura_binary_data/5.6.0-alpha+testing_d20e9f@ultimaker/testing from 'cura' - Cache curaengine/5.6.0-alpha+testing_1aedf1@ultimaker/testing from 'cura' - Cache curaengine_grpc_definitions/0.1.0-alpha+testing_c50918@ultimaker/testing from 'cura' - Cache curaengine_plugin_gradual_flow/0.2.0-alpha+testing_df1e5e@ultimaker/testing from 'cura' - Cache docopt.cpp/0.6.3 from 'cura' - Cache expat/2.4.1 from 'cura' - Cache fdm_materials/5.5.0-alpha+testing_8d9994@ultimaker/testing from 'cura' - Cache fmt/9.0.0 from 'cura' - Cache gdbm/1.19 from 'cura' - Cache googleapis/cci.20221108 from 'cura' - Cache grpc/1.50.1 from 'cura' - Cache grpc-proto/cci.20220627 from 'cura' - Cache libffi/3.2.1 from 'cura' - Cache mpdecimal/2.5.0 from 'cura' - Cache ncurses/6.2 from 'cura' - Cache neargye-semver/0.3.0 from 'cura' - Cache nest2d/5.3.0 from 'cura' - Cache nlopt/2.7.0 from 'cura' - Cache openssl/1.1.1l from 'cura' - Cache protobuf/3.21.9 from 'cura' - Cache pugixml/1.12.1 from 'cura' - Cache pyarcus/5.3.0 from 'cura' - Cache pynest2d/5.3.0 from 'cura' - Cache pysavitar/5.3.0 from 'cura' - Cache range-v3/0.12.0 from 'cura' - Cache rapidjson/1.1.0 from 'cura' - Cache re2/20230301 from 'cura' - Cache savitar/5.3.0 from 'cura' - Cache scripta/0.1.0@ultimaker/testing from 'cura' - Cache spdlog/1.10.0 from 'cura' - Cache sqlite3/3.36.0 from 'cura' - Cache stb/20200203 from 'cura' - Cache tcl/8.6.10 from 'cura' - Cache tk/8.6.10 from 'cura' - Cache uranium/5.6.0-alpha+testing_674562@ultimaker/testing from 'cura' - Cache xz_utils/5.2.5 from 'cura' - Cache zlib/1.2.13 from 'cura' - Cache Python requires translationextractor/2.1.4@ultimaker/stable umbase/0.1.7@ultimaker/stable pyprojecttoolchain/0.1.7@ultimaker/stable sipbuildtool/0.2.4@ultimaker/stable Packages abseil/20220623.0:cd9da0524a994d6b4556aad49fb929fc4c8d7e5c - Build arcus/5.3.0:69cc8a876411e79f2fffb9603f0d526a043e929a - Build asio-grpc/2.6.0:bb6442aba7a6e403c16a912f65317abff8542491 - Download boost/1.82.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download bzip2/1.0.8:317dcbdd0965adcaf55239e700af6ff07ae5490d - Build c-ares/1.19.0:8535803d57d16ab29e777f075b9a60a9339ead55 - Build clipper/6.4.2:3e0c4bb0f8e8f8eaf1cb7d302916f19e553b27f7 - Build cpython/3.10.4:INVALID - Invalid ctre/3.7.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download cura_binary_data/5.6.0-alpha+testing_d20e9f@ultimaker/testing:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Download curaengine/5.6.0-alpha+testing_1aedf1@ultimaker/testing:3f4816f277e71a9a410b57a316deb6448848d07e - Build curaengine_grpc_definitions/0.1.0-alpha+testing_c50918@ultimaker/testing:3a81fb05c379658e8ff9ba54cc5e7cc202c7ad2b - Build curaengine_plugin_gradual_flow/0.2.0-alpha+testing_df1e5e@ultimaker/testing:8bec1226b8422cc4f1504b4508e8ebed1ae558b6 - Build docopt.cpp/0.6.3:cd9da0524a994d6b4556aad49fb929fc4c8d7e5c - Build expat/2.4.1:fc2113226e54b95ac8a136876db396cfd9287468 - Build fdm_materials/5.5.0-alpha+testing_8d9994@ultimaker/testing:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download fmt/9.0.0:efe4a92c7bf29a8a9a04fc514caf10f7507f5c49 - Build gdbm/1.19:INVALID - Invalid googleapis/cci.20221108:75f8e72586b81268b32f6427d86f4e02d5a5667a - Build grpc/1.50.1:b3449e901f30671774d83d4e6279263814484674 - Build grpc-proto/cci.20220627:27f2fdca8f5b65658ab5be54edea67c3dafdd6df - Build libffi/3.2.1:a86b08dfda6e449c9658163512714d447bd0edff - Build mpdecimal/2.5.0:5e4e7d56ca55120ae4e17e29e76f4542f0cb6bc7 - Build ncurses/6.2:4db440dafd5dcaf62269e026d14bb90700604319 - Build neargye-semver/0.3.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download nest2d/5.3.0:002d596ba1a9531bd30849e5aa327e93da00290f - Build nlopt/2.7.0:b740b6b59c3e434a4f726c8e635f8c1d6168db2c - Build openssl/1.1.1l:a86b08dfda6e449c9658163512714d447bd0edff - Build protobuf/3.21.9:3989277b79b140eb22d88222d97298fb1e887a16 - Build pugixml/1.12.1:cd9da0524a994d6b4556aad49fb929fc4c8d7e5c - Build pyarcus/5.3.0:INVALID - Invalid pynest2d/5.3.0:INVALID - Invalid pysavitar/5.3.0:INVALID - Invalid range-v3/0.12.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download rapidjson/1.1.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download re2/20230301:cd9da0524a994d6b4556aad49fb929fc4c8d7e5c - Build savitar/5.3.0:0d6f6fe6b63b9b0ba6fdc653712f4156bd4aea83 - Build scripta/0.1.0@ultimaker/testing:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download spdlog/1.10.0:7caae742d5ecba53e107f0ea6b730a197a4fa9a8 - Build sqlite3/3.36.0:5833c3ccb9fc5407e22af6f377e5b03a4ec92c0a - Build stb/20200203:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download tcl/8.6.10:54297d31407f30f519765fb235ebc2abce62179e - Build tk/8.6.10:f3f53552b34d17117f24c4ee35330d47be6d7334 - Build uranium/5.6.0-alpha+testing_674562@ultimaker/testing:2522bab4dac4234dda1a8f85526096f67fc78645 - Download xz_utils/5.2.5:a86b08dfda6e449c9658163512714d447bd0edff - Build zlib/1.2.13:a86b08dfda6e449c9658163512714d447bd0edff - Build Build requirements catch2/3.4.0 from 'cura' - Cache cmake/3.26.3 from 'cura' - Cache gnu-config/cci.20201022 from 'cura' - Downloaded gtest/1.12.1 from 'cura' - Cache msys2/cci.latest from 'conan-center' - Cache nasm/2.15.05 from 'cura' - Downloaded protobuf/3.21.9 from 'cura' - Cache standardprojectsettings/0.1.1@ultimaker/stable from 'cura' - Cache zlib/1.2.13 from 'cura' - Cache Build requirements packages catch2/3.4.0:aa9e6cbf683ff9f2f8e3edf5ee73a574a7ce68db - Build cmake/3.26.3:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Download gnu-config/cci.20201022:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download gtest/1.12.1:52ed1ad4f166351da9b32c79a3349f1f4d015057 - Build msys2/cci.latest:eee3fba89db6d777329de604625af8c30d46f080 - Download nasm/2.15.05:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Download protobuf/3.21.9:3989277b79b140eb22d88222d97298fb1e887a16 - Build standardprojectsettings/0.1.1@ultimaker/stable:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download zlib/1.2.13:a86b08dfda6e449c9658163512714d447bd0edff - Build

Installing (downloading, building) binaries... ERROR: There are invalid packages (packages that cannot exist for this configuration): gdbm/1.19: Invalid ID: gdbm is not supported on Windows cpython/3.10.4: Invalid ID: Invalid transitive dependencies pyarcus/5.3.0: Invalid ID: Invalid transitive dependencies pynest2d/5.3.0: Invalid ID: Invalid transitive dependencies pysavitar/5.3.0: Invalid ID: Invalid transitive dependencies

jellespijker commented 1 year ago

Welcome, best ask this question in Cura. I will move this issue there.

It looks like you're compiling on Windows with GCC probably in a MinGW environment.

please make sure that you have all the requirements for windows as mentioned in this Wiki page: https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

That states that you need Microsoft Visual Studio community edition. Tou don't need to use that IDE butbit needs to be installed because you need the MSVC compiler which is shipped with that

Zincr0 commented 10 months ago

Note that current build scripts also fail on linux. It tries to install protobuf==3.21.9 which is not a valid version.

jellespijker commented 10 months ago

Note that current build scripts also fail on linux. It tries to install protobuf==3.21.9 which is not a valid version.

@Zincr0 This probably because we're currently working on our Artifactory (which stores the conan packages). It should no work again for third-parties and community contributions. Please try the conan install command again.

lbibass commented 10 months ago

Note that current build scripts also fail on linux. It tries to install protobuf==3.21.9 which is not a valid version.

@Zincr0 This probably because we're currently working on our Artifactory (which stores the conan packages). It should no work again for third-parties and community contributions. Please try the conan install command again.

It still attempts to install protobuf 3.21.9 on MacOS, which does not exist.

jellespijker commented 10 months ago

Is your conan config up to date?

conan config install https://github.com/Ultimaker/conan-config.git