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

🔧 Use conan_provider for running conan #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AnotherFoxGuy
Copy link
Contributor

This should make it a lot easier to build with conan
Also updated the documentation for building with the conan_provider script

@cryham
Copy link
Member

cryham commented Dec 25, 2024

Ok, this is very interesting. Looks like it makes it a lot easier buiding on Windows with Conan and even produces build archive which is great.
But we need RenderSystem_GL3Plus.dll, the only officially used/supported, and RenderSystem_Vulkan.dll if possible since it should also work. RenderSystem_Direct3D11 won't work until fixed, is low priority.
There is also SDL2.dll missing I think maybe some more dll to make it fully running on its own after pulling both git repos and downloading builds.
Any chance for Linux archives working too?
I will have to test building on both platforms myself. Will get back on this. I need to make the 3.3 release possibly before, not sure yet.
Also, I see you completely reworked old Building* docs. I want to keep the old too. We could rename them to BuildingOld* or so, after I test this works. I got used to my old .py script building on Linux. There could be just Building.md with links to 4 other pages (2 new, 2 old).

@cryham
Copy link
Member

cryham commented Jan 12, 2025

Just tried it and I get this, @AnotherFoxGuy any ideas why?

ch@deb12:~/_sr/2-con$ conan --version
Conan version 2.10.1
ch@deb12:~/_sr/2-con$ cmake . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=CMake/conan_provider.cmake
-- CMake-Conan: first find_package() found. Installing dependencies with Conan
-- CMake-Conan: Checking if a default profile exists
WARN: deprecated: The remote 'https://center.conan.io' is now frozen and has been replaced by 'https://center2.conan.io'. 
Starting from Conan 2.9.2, the default remote is 'center2.conan.io'. 
It is recommended to update to the new remote using the following command:
'conan remote update conancenter --url="https://center2.conan.io"'
/home/ch/.conan2/profiles/default
-- CMake-Conan: cmake_system_name=Linux
-- CMake-Conan: cmake_system_processor=x86_64
-- CMake-Conan: CMake compiler=Clang
-- CMake-Conan: CMake compiler version=14.0.6
-- CMake-Conan: [settings] compiler=clang
-- CMake-Conan: [settings] compiler.version=14
-- Performing Test _conan_is_libcxx
-- Performing Test _conan_is_libcxx - Failed
-- Performing Test _conan_is_gnu_libstdcxx
-- Performing Test _conan_is_gnu_libstdcxx - Success
-- Performing Test _conan_gnu_libstdcxx_is_cxx11_abi
-- Performing Test _conan_gnu_libstdcxx_is_cxx11_abi - Success
-- CMake-Conan: Creating profile /home/ch/_sr/2-con/build/conan_host_profile
-- CMake-Conan: Profile: 
[settings]
arch=x86_64
os=Linux
compiler=clang
compiler.version=14
compiler.cppstd=17
compiler.libcxx=libstdc++11
build_type=Release
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
tools.build:compiler_executables={"c":"/usr/bin/clang","cpp":"/usr/bin/clang++"}

-- CMake-Conan: Installing single configuration Release
-- CMake-Conan: conan install /home/ch/_sr/2-con -of=/home/ch/_sr/2-con/build/conan --profile:host=default;--profile:host=/home/ch/_sr/2-con/build/conan_host_profile;--profile:build=default;--build=missing

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
[conf]
tools.build:compiler_executables={'c': '/usr/bin/clang', 'cpp': '/usr/bin/clang++'}
tools.cmake.cmaketoolchain:generator=Ninja

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux


======== Computing dependency graph ========
ogre3d-next/3.0.0@anotherfoxguy/stable: Not found in local cache, looking in remotes...
ogre3d-next/3.0.0@anotherfoxguy/stable: Checking remote: conancenter
ogre3d-next/3.0.0@anotherfoxguy/stable: Checking remote: rigs-of-rods-deps-V2
Graph root
    conanfile.py (StuntRally3/None): /home/ch/_sr/2-con/conanfile.py
ERROR: Package 'ogre3d-next/3.0.0@anotherfoxguy/stable' not resolved: HTTPSConnectionPool(host='artifactory.anotherfoxguy.com', port=443): Max retries exceeded with url: /artifactory/api/conan/rigs-of-rods/v1/ping (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1129)')))

Unable to connect to remote rigs-of-rods-deps-V2=https://artifactory.anotherfoxguy.com/artifactory/api/conan/rigs-of-rods
1. Make sure the remote is reachable or,
2. Disable it with 'conan remote disable <remote>' or,
3. Use the '-nr/--no-remote' argument
Then try again..
CMake Error at CMake/conan_provider.cmake:483 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  CMake/conan_provider.cmake:591 (conan_install)
  CMake/DependenciesConfig.cmake:3 (find_package)
  CMakeLists.txt:77 (include)


-- Configuring incomplete, errors occurred!
See also "/home/ch/_sr/2-con/build/CMakeFiles/CMakeOutput.log".
See also "/home/ch/_sr/2-con/build/CMakeFiles/CMakeError.log".

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

Successfully merging this pull request may close these issues.

2 participants