Skip to content

add connan package manager#9540

Draft
hakuturu583 wants to merge 6 commits intocarla-simulator:ue5-devfrom
hakuturu583:ue5-dev
Draft

add connan package manager#9540
hakuturu583 wants to merge 6 commits intocarla-simulator:ue5-devfrom
hakuturu583:ue5-dev

Conversation

@hakuturu583
Copy link

@hakuturu583 hakuturu583 commented Feb 2, 2026

Description

Fixes #

Where has this been tested?

  • Platform(s): ...
  • Python version(s): ...
  • Unreal Engine version(s): ...

Possible Drawbacks


This change is Reviewable

hakuturu583 and others added 4 commits February 2, 2026 12:34
Implement Conan packaging for libcarla C++ libraries to enable easier
distribution and consumption by external projects. This change adds
Conan support while maintaining full backward compatibility with
traditional CMake builds.

Key changes:
- Add conanfile.py with package configuration for libcarla/0.10.0
- Define dependencies from ConanCenter (Boost, Eigen, zlib, libpng)
- Add CMake install rules in LibCarla/CMakeLists.txt
- Create carla-config.cmake.in for find_package() support
- Add test_package/ to verify package installation works
- Use generator expressions for build/install interface paths
- Make external dependencies PRIVATE to avoid export conflicts
- Install FetchContent dependencies (rpclib, RecastNavigation)
- Conditional Boost::python linking (only when BUILD_PYTHON_API=ON)

The implementation uses a hybrid approach:
- ConanCenter dependencies managed by Conan
- Custom forks (rpclib, RecastNavigation) via FetchContent
- All dependency headers installed with the package

Backward compatibility verified:
- Traditional CMake build (cmake -B build) still works
- No changes required to existing build scripts
- Unreal Engine integration unaffected

Usage:
  conan create . --build=missing -s build_type=Release

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Conanパッケージマネージャーのビルド成果物をバージョン管理から除外し、リポジトリをクリーンに保つための設定を追加。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Update all Japanese comments in conanfile.py and LibCarla/CMakeLists.txt
to English for better international accessibility and consistency with
the rest of the codebase.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Define internal library components (rpc, recast, detour, detourcrowd)
and explicitly declare dependencies for carla-server and carla-client
components to ensure proper linking in downstream projects.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@update-docs
Copy link

update-docs bot commented Feb 2, 2026

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update our CHANGELOG.md based on your changes.

hakuturu583 and others added 2 commits February 3, 2026 10:16
Update Japanese comments in CMake configuration and test package
to English for better international accessibility.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add entry for PR carla-simulator#9540 which introduces Conan package manager
support for libcarla.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

1 participant