Skip to content

Enable WITH_PYTHON on CI - #1689

Merged
matlabbe merged 9 commits into
masterfrom
ci_pybind11
Apr 14, 2026
Merged

matlabbe merged 9 commits into
masterfrom
ci_pybind11

Conversation

@matlabbe

@matlabbe matlabbe commented Apr 14, 2026 •

Copy link
Copy Markdown
Member

On older machines, pybind11::module_ doesn't exist, which was pybind11::module. That code was specific to windows (for the recent windows ci refactor), so I am adding a #ifdef _WIN32 instead of making it backward compatible.

~/workspace/rtabmap/corelib/src/python/PythonInterface.cpp: In constructor ‘rtabmap::PythonInterface::PythonInterface()’:
~/workspace/rtabmap/corelib/src/python/PythonInterface.cpp:23:15: error: ‘module_’ is not a member of ‘pybind11’; did you mean ‘module’?
   23 |     pybind11::module_ os = pybind11::module_::import("os");
      |               ^~~~~~~
      |               module
~/workspace/rtabmap/corelib/src/python/PythonInterface.cpp:24:5: error: ‘os’ was not declared in this scope; did you mean ‘cos’?
   24 |     os.attr("add_dll_directory")(exe_dir);
      |     ^~
      |     cos

@matlabbe
matlabbe marked this pull request as ready for review April 14, 2026 19:04
@matlabbe
matlabbe merged commit aa7546e into master Apr 14, 2026
9 checks passed
@matlabbe
matlabbe deleted the ci_pybind11 branch April 14, 2026 19:09
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