问题:Make PythonAPI fatal error C1083: Cannot open include file ‘OSM2ODR.h’ No such file or directory
结果:PythonAPI\carla\dist文件夹不存在(没有生成.egg
文件)
解决办法:
It seems like Xerces can’t be installed properly, here is one solution I found.
- Install Xerces by conda install -c anaconda xerces-c
- Then find Anaconda3 folder, copy-paste everything from Anaconda3\pkgs\xerces-c-3.2.3-ha925a31_0\Library to carla\Build\xerces-c-3.2.3-install.
- Next, copy-paste file xerces-c_3.lib from carla\Build\xerces-c-3.2.3-install\lib to folder carla\PythonAPI\carla\dependencies\lib
- Delete folder carla\Build\osm2odr-visualstudio, then make PythonAPI.
来源:https://github.com/carla-simulator/carla/issues/3320