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

add python 3.12 support #363

Closed
Prev Previous commit
Next Next commit
update readme
  • Loading branch information
Michael Kopp committed Oct 7, 2024
commit e591f2df2f4c315cac200d5ae1cfc8dd4abcbee7
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,17 @@ For non-catkin users, we also offer a conan based install process. Its experimen
Since conan handles installing all C++ dependencies, all you need is a cloned repository, conan itself and a few python dependencies:
```bash
pip install conan catkin_pkg numpy
conan remote add bincrafters https://bincrafters.jfrog.io/artifactory/api/conan/public-conan # required for python bindings
conan config set general.revisions_enabled=1 # requried to use bincrafters remote
git clone https://github.com/fzi-forschungszentrum-informatik/lanelet2.git
cd lanelet2
conan create -s compiler.libcxx=libstdc++11 conan_dependencies/conan-python_dev_config bincrafters/stable
```

From here, just use the default conan build/install procedure, e.g.:
```bash
conan source .
conan create . lanelet2/stable --build=missing
conan create -s compiler.libcxx=libstdc++11 . lanelet2/stable --build=missing
```
Different from the conan defaults, we build lanelet2 and boost as shared libraries, because otherwise the lanelet2's plugin mechanisms as well as boost::python will fail. E.g. loading maps will not be possible and the python API will not be usable.
Different from the conan defaults, we build lanelet2 and boost as shared libraries, because otherwise the lanelet2's plugin mechanisms as well as `boost::python` will fail. E.g. loading maps will not be possible and the python API will not be usable.

To be able to use the python bindings, you have to make conan export the PYTHONPATH for lanelet2:
```bash
Expand Down