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

Unable to build on ArchLinux / Failed requirements #2195

Open
corbin-c opened this issue Jan 3, 2025 · 2 comments
Open

Unable to build on ArchLinux / Failed requirements #2195

corbin-c opened this issue Jan 3, 2025 · 2 comments

Comments

@corbin-c
Copy link

corbin-c commented Jan 3, 2025

Hi there,

I'm trying to build CuraEngine from source on my machine.

The build process with conan seems kinda broken.

As per the wiki, I've installed conan in version 1.65.0. I'm running this in a venv so it doesn't mess with my whole setup:

$ python -m venv cura_venv
$ source cura_venv/bin/activate
$ pip install conan==1.65

Now I can assert conan is running fine:

$ conan --version
Conan version 1.65.0

The profile setup runs fine. But then, when trying to install, I get the following:

$ conan install . --build=missing --update
WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
ERROR: Error reading '/home/user/.conan/profiles/cura.jinja' profile: ConfigParser: Unrecognized field 'replace_requires'

As far as my understanding of conan goes, replace_requires is a conan >2 option. This seems in contradiction with the specified version (1.65.0). This is weird, but I found a workaround by removing the section altogether in the cura profile.

Anyway, let's try and re-build!

$conan install . --build=missing --update

WARN: **************************************************
WARN: *** Conan 1 is legacy and on a deprecation path **
WARN: *********** Please upgrade to Conan 2 ************
WARN: **************************************************
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=14
os=Linux
os_build=Linux
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
curator/*:compiler.cppstd=20
[options]
asio-grpc:local_allocator=recycling_allocator
boost:header_only=True
clipper:shared=True
cpython:shared=True
cpython:with_curses=False
cpython:with_tkinter=False
dulcificum:shared=True
grpc:csharp_plugin=False
grpc:node_plugin=False
grpc:objective_c_plugin=False
grpc:php_plugin=False
grpc:python_plugin=False
grpc:ruby_plugin=False
openssl:shared=True
pyarcus:shared=True
pynest2d:shared=True
pysavitar:shared=True
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=True

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=14
os=Linux
os_build=Linux
curator/*:compiler.cppstd=20
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.gnu:define_libcxx11_abi=True
tools.build:skip_test=True

scripta/0.1.0@ultimaker/testing: Not found in local cache, looking in remotes...
scripta/0.1.0@ultimaker/testing: Trying with 'conancenter'...
ERROR: Failed requirement 'scripta/0.1.0@ultimaker/testing' from 'conanfile.py (curaengine/5.10.0-alpha.0+source)'
ERROR: Unable to find 'scripta/0.1.0@ultimaker/testing' in remotes

As you can see, the build process stops because of the missing dependency scripta/0.1.0@ultimaker/testing.

I have tried a few things, in particular removing the cura remote with conan remote remove cura or manually adding a remote: conan remote add cura-conan https://cura.jfrog.io/artifactory/api/conan/cura-conan, all without success.

Any help is very welcome!

@corbin-c
Copy link
Author

corbin-c commented Jan 4, 2025

For anyone facing the same issue, I found a workaround. One has to use the old conan config (pre v.2). So, instead of doing this step from the wiki:

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

Do the following:

git clone https://github.com/ultimaker/conan-config.git
cd conan-config
git checkout 3226488623c642b40ca7ce3f62d3f33de046d11e
cd ..
conan config install ./conan-config

Once this is done, I had to alter the remotes too, by adding conan center and removing cura private, so that ~/.conan/remotes.json looks like this:

{
 "remotes": [
  {
   "name": "conancenter",
   "url": "https://center.conan.io",
   "verify_ssl": true
  },
  {
   "name": "cura",
   "url": "https://cura.jfrog.io/artifactory/api/conan/cura-conan-dev",
   "verify_ssl": true
  }
 ]
}

I hope this helps someone, somewhere!

@Qu-Dasheng
Copy link

I have solved as well, thank you.

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

2 participants