iit-DLSLab / Panoptic-SLAM

Panoptic-SLAM: Visual SLAM in Dynamic Environments using Panoptic Segmentation
GNU General Public License v3.0
47 stars 2 forks source link

when "make " mistake: no python.h #2

Open CloudsRL opened 1 week ago

CloudsRL commented 1 week ago

Hello, when i make orb-slam3, i face a mistake:

/home/wang/code/Panoptic-SLAM/include/PanopticNet.h:22:10: fatal error: Python.h: 没有那个文件或目录 22 | #include | ^~~~~~

but i have not found how to deal with it. So if possible, please help me (what i care is , how to use python in c++ program, i am trying to make it)

git-gfischer commented 6 days ago

Hi! Are you installing via docker or on your host PC?

CloudsRL commented 6 days ago

no QAQ i don't know about DOCKER , i just follow the "Build Panoptic-SLAM on Host Machine", but not mention about how python work with cpp

git-gfischer commented 6 days ago

We recommend you to install through the dockerfile, because then all the dependencies will be installed automatic. It will be difficult for us to debug this on your host PC. We use the Python C API to communicate python and c++ applications, but pybind also works well.

The problem you are facing might be either the API is not installed or the python version is not matching with the python version of the CMakeLists.txt.