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

make PythonAPI fails for Windows 10, #3621

Open
frodozet opened this issue Nov 23, 2020 · 20 comments
Open

make PythonAPI fails for Windows 10, #3621

frodozet opened this issue Nov 23, 2020 · 20 comments
Assignees
Labels
question stale Issue has not had recent activity

Comments

@frodozet
Copy link

frodozet commented Nov 23, 2020

linker fails building libcarla.obj in make PythonAPI
what could be the reason?

where to show for those unresolved external symbols???

Platform: Windows 10
VS 2017
python 3.7.9 64bit
carla: 0.9.10.1-122-g064760da

make launch OK!
make PythonAPI ERROR!
unresolved LNK2001

TrafficManager.cpp
dependencies/include\carla/trafficmanager/RandomGenerator.h(14): warning C4244: 'argument': conversion from 'const uint64_t' to 'unsigned int', possible loss of data
dependencies/include/carla\trafficmanager\TrafficManager.cpp(72): warning C4244: 'initializing': conversion from 'SOCKET' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idependencies/include "-IC:\Program Files\Python37\include" "-IC:\Program Files\Python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpdependencies/include/carla\trafficmanager\TrafficManagerLocal.cpp /Fobuild\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficManagerLocal.obj /experimental:external /external:I dependencies/include/system /DBOOST_ALL_NO_LIB /DBOOST_PYTHON_STATIC_LIB /DBOOST_ERROR_CODE_HEADER_ONLY /D_WIN32_WINNT=0x0600 /DHAVE_SNPRINTF /DLIBCARLA_WITH_PYTHON_SUPPORT -DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true
TrafficManagerLocal.cpp
dependencies/include\carla/trafficmanager/RandomGenerator.h(14): warning C4244: 'argument': conversion from 'const uint64_t' to 'unsigned int', possible loss of data
dependencies/include/carla\trafficmanager\TrafficManagerLocal.cpp(157): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned long', possible loss of data
dependencies/include/carla\trafficmanager\TrafficManagerLocal.cpp(164): warning C4267: '=': conversion from 'size_t' to 'unsigned long', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idependencies/include "-IC:\Program Files\Python37\include" "-IC:\Program Files\Python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpdependencies/include/carla\trafficmanager\TrafficManagerRemote.cpp /Fobuild\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficManagerRemote.obj /experimental:external /external:I dependencies/include/system /DBOOST_ALL_NO_LIB /DBOOST_PYTHON_STATIC_LIB /DBOOST_ERROR_CODE_HEADER_ONLY /D_WIN32_WINNT=0x0600 /DHAVE_SNPRINTF /DLIBCARLA_WITH_PYTHON_SUPPORT -DLIBCARLA_IMAGE_WITH_PNG_SUPPORT=true
TrafficManagerRemote.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:dependencies/lib "/LIBPATH:C:\Program Files\Python37\libs" "/LIBPATH:C:\Program Files\Python37\PCbuild\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64" /EXPORT:PyInit_libcarla build\temp.win-amd64-3.7\Release\source/libcarla/libcarla.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\Buffer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\Exception.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\FileSystem.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\StringUtil.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Actor.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorAttribute.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorBlueprint.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ActorList.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\BlueprintLibrary.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\DebugHelper.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Junction.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\LaneInvasionSensor.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Light.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\LightManager.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Map.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\ServerSideSensor.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\TimeoutException.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\TrafficLight.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\TrafficSign.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Vehicle.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Walker.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\WalkerAIController.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\Waypoint.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\World.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\ActorFactory.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\ActorState.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\ActorVariant.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\Client.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\Episode.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\EpisodeProxy.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\EpisodeState.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\Simulator.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\client\detail\WalkerNavigation.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\geom\GeoLocation.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\geom\Math.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\geom\Mesh.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\nav\Navigation.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\nav\WalkerEvent.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\nav\WalkerManager.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\OpenDriveParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\ControllerParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\GeometryParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\GeoReferenceParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\JunctionParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\LaneParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\ObjectParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\ProfilesParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\RoadParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\SignalParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\opendrive\parser\TrafficGroupParser.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\Lane.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\LaneSection.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\Map.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\MapBuilder.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\MapData.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\MeshFactory.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\Road.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\SignalType.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\element\Geometry.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\element\LaneCrossingCalculator.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\element\LaneMarking.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\road\element\Waypoint.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\rpc\MapLayer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\rpc\WeatherParameters.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\Deserializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\data\LaneInvasionEvent.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\CollisionEventSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\DVSEventArraySerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\EpisodeStateSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\GnssSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\ImageSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\IMUSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\LidarSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\NoopSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\ObstacleDetectionEventSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\RadarSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\SemanticLidarSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\sensor\s11n\SensorHeaderSerializer.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\Dispatcher.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\StreamStateBase.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\Token.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\Client.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\Server.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\streaming\detail\tcp\ServerSession.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\ALSM.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\CollisionStage.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\InMemoryMap.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\LocalizationStage.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\LocalizationUtils.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\MotionPlanStage.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\Parameters.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\SimpleWaypoint.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\SimulationState.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrackTraffic.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficLightStage.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficManager.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficManagerLocal.obj build\temp.win-amd64-3.7\Release\dependencies/include/carla\trafficmanager\TrafficManagerRemote.obj /OUT:build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.lib shlwapi.lib Advapi32.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\carla_client.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\Detour.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\DetourCrowd.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\libboost_filesystem-vc141-mt-x64-1_72.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\libpng.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\osm2odr.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\Recast.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\rpc.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\xerces-c_3.lib C:\Users\frodozet\dev\carla\carla-0.9.10.1\PythonAPI\carla\dependencies/lib\zlib.lib
   Creating library build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\source/libcarla\libcarla.cp37-win_amd64.exp
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::throw_error_already_set(void)" (?throw_error_already_set@python@boost@@YAXXZ)
libcarla.obj : error LNK2001: unresolved external symbol "struct boost::python::self_ns::self_t boost::python::self_ns::self" (?self@self_ns@python@boost@@3Uself_t@123@A)
libcarla.obj : error LNK2001: unresolved external symbol "void * __cdecl boost::python::converter::get_lvalue_from_python(struct _object *,struct boost::python::converter::registration const &)" (?get_lvalue_from_python@converter@python@boost@@YAPEAXPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct boost::python::converter::registration const & __cdecl boost::python::converter::registry::lookup_shared_ptr(struct boost::python::type_info)" (?lookup_shared_ptr@registry@converter@python@boost@@YAAEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct boost::python::converter::registration const * __cdecl boost::python::converter::registry::query(struct boost::python::type_info)" (?query@registry@converter@python@boost@@YAPEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::converter::registry::push_back(void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?push_back@registry@converter@python@boost@@YAXP6APEAXPEAU_object@@@ZP6AX0PEAUrvalue_from_python_stage1_data@234@@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::converter::registry::insert(struct _object * (__cdecl*)(void const *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?insert@registry@converter@python@boost@@YAXP6APEAU_object@@PEBX@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::converter::registry::insert(void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?insert@registry@converter@python@boost@@YAXP6APEAXPEAU_object@@@ZP6AX0PEAUrvalue_from_python_stage1_data@234@@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct boost::python::converter::registration const & __cdecl boost::python::converter::registry::lookup(struct boost::python::type_info)" (?lookup@registry@converter@python@boost@@YAAEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: void __cdecl boost::python::converter::shared_ptr_deleter::operator()(void const *)" (??Rshared_ptr_deleter@converter@python@boost@@QEAAXPEBX@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::converter::shared_ptr_deleter::~shared_ptr_deleter(void)" (??1shared_ptr_deleter@converter@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::converter::shared_ptr_deleter::shared_ptr_deleter(class boost::python::handle<struct _object>)" (??0shared_ptr_deleter@converter@python@boost@@QEAA@V?$handle@U_object@@@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::converter::void_result_from_python(struct _object *)" (?void_result_from_python@converter@python@boost@@YAXPEAU_object@@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void * __cdecl boost::python::converter::rvalue_from_python_stage2(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data &,struct boost::python::converter::registration const &)" (?rvalue_from_python_stage2@converter@python@boost@@YAPEAXPEAU_object@@AEAUrvalue_from_python_stage1_data@123@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct boost::python::converter::rvalue_from_python_stage1_data __cdecl boost::python::converter::rvalue_from_python_stage1(struct _object *,struct boost::python::converter::registration const &)" (?rvalue_from_python_stage1@converter@python@boost@@YA?AUrvalue_from_python_stage1_data@123@PEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile *,struct boost::python::converter::registration const &)" (??0arg_to_python_base@detail@converter@python@boost@@QEAA@PEDXAEBUregistration@234@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct _object * __cdecl boost::python::converter::do_return_to_python(char const *)" (?do_return_to_python@converter@python@boost@@YAPEAU_object@@PEBD@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct _object * __cdecl boost::python::converter::do_return_to_python(struct _object *)" (?do_return_to_python@converter@python@boost@@YAPEAU_object@@PEAU4@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "bool __cdecl boost::python::converter::implicit_rvalue_convertible_from_python(struct _object *,struct boost::python::converter::registration const &)" (?implicit_rvalue_convertible_from_python@converter@python@boost@@YA_NPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: struct _typeobject const * __cdecl boost::python::converter::registration::to_python_target_type(void)const " (?to_python_target_type@registration@converter@python@boost@@QEBAPEBU_typeobject@@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: struct _typeobject const * __cdecl boost::python::converter::registration::expected_from_python_type(void)const " (?expected_from_python_type@registration@converter@python@boost@@QEBAPEBU_typeobject@@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: struct _typeobject * __cdecl boost::python::converter::registration::get_class_object(void)const " (?get_class_object@registration@converter@python@boost@@QEBAPEAU_typeobject@@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: struct _object * __cdecl boost::python::converter::registration::to_python(void const volatile *)const " (?to_python@registration@converter@python@boost@@QEBAPEAU_object@@PEDX@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::converter::throw_no_reference_from_python(struct _object *,struct boost::python::converter::registration const &)" (?throw_no_reference_from_python@converter@python@boost@@YAXPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: __cdecl boost::python::detail::list_base::list_base(void)" (??0list_base@detail@python@boost@@IEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "protected: __cdecl boost::python::detail::list_base::list_base(class boost::python::api::object const &)" (??0list_base@detail@python@boost@@IEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: void __cdecl boost::python::detail::list_base::append(class boost::python::api::object const &)" (?append@list_base@detail@python@boost@@QEAAXAEBVobject@api@34@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: __cdecl boost::python::detail::tuple_base::tuple_base(class boost::python::api::object const &)" (??0tuple_base@detail@python@boost@@IEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::detail::register_exception_handler(class boost::function2<bool,struct boost::python::detail::exception_handler const &,class boost::function0<void> const &> const &)" (?register_exception_handler@detail@python@boost@@YAXAEBV?$function2@_NAEBUexception_handler@detail@python@boost@@AEBV?$function0@X@4@@3@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: bool __cdecl boost::python::detail::exception_handler::operator()(class boost::function0<void> const &)const " (??Rexception_handler@detail@python@boost@@QEBA_NAEBV?$function0@X@3@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct _object * boost::python::detail::current_scope" (?current_scope@detail@python@boost@@3PEAU_object@@EA)
libcarla.obj : error LNK2001: unresolved external symbol "protected: __cdecl boost::python::detail::dict_base::dict_base(void)" (??0dict_base@detail@python@boost@@IEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::detail::make_raw_function(struct boost::python::objects::py_function)" (?make_raw_function@detail@python@boost@@YA?AVobject@api@23@Upy_function@objects@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "struct _object * __cdecl boost::python::detail::init_module(struct PyModuleDef &,void (__cdecl*)(void))" (?init_module@detail@python@boost@@YAPEAU_object@@AEAUPyModuleDef@@P6AXXZ@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: static void __cdecl boost::python::instance_holder::deallocate(struct _object *,void *)" (?deallocate@instance_holder@python@boost@@SAXPEAU_object@@PEAX@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl boost::python::instance_holder::allocate(struct _object *,unsigned __int64,unsigned __int64)" (?allocate@instance_holder@python@boost@@SAPEAXPEAU_object@@_K1@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: void __cdecl boost::python::instance_holder::install(struct _object *)" (?install@instance_holder@python@boost@@QEAAXPEAU_object@@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl boost::python::instance_holder::~instance_holder(void)" (??1instance_holder@python@boost@@UEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::instance_holder::instance_holder(void)" (??0instance_holder@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: class boost::python::handle<struct _object> const & __cdecl boost::python::objects::stl_input_iterator_impl::current(void)const " (?current@stl_input_iterator_impl@objects@python@boost@@QEBAAEBV?$handle@U_object@@@34@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: bool __cdecl boost::python::objects::stl_input_iterator_impl::equal(struct boost::python::objects::stl_input_iterator_impl const &)const " (?equal@stl_input_iterator_impl@objects@python@boost@@QEBA_NAEBU1234@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: void __cdecl boost::python::objects::stl_input_iterator_impl::increment(void)" (?increment@stl_input_iterator_impl@objects@python@boost@@QEAAXXZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(void)" (??0stl_input_iterator_impl@objects@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(class boost::python::api::object const &)" (??0stl_input_iterator_impl@objects@python@boost@@QEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::handle<struct _typeobject> __cdecl boost::python::objects::registered_class_object(struct boost::python::type_info)" (?registered_class_object@objects@python@boost@@YA?AV?$handle@U_typeobject@@@23@Utype_info@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object const & __cdecl boost::python::objects::identity_function(void)" (?identity_function@objects@python@boost@@YAAEBVobject@api@23@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "struct _object * __cdecl boost::python::objects::make_nurse_and_patient(struct _object *,struct _object *)" (?make_nurse_and_patient@objects@python@boost@@YAPEAU_object@@PEAU4@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::objects::add_cast(struct boost::python::type_info,struct boost::python::type_info,void * (__cdecl*)(void *),bool)" (?add_cast@objects@python@boost@@YAXUtype_info@23@0P6APEAXPEAX@Z_N@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::make_method_static(char const *)" (?make_method_static@class_base@objects@python@boost@@IEAAXPEBD@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::def_no_init(void)" (?def_no_init@class_base@objects@python@boost@@IEAAXXZ)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::set_instance_size(unsigned __int64)" (?set_instance_size@class_base@objects@python@boost@@IEAAX_K@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::add_static_property(char const *,class boost::python::api::object const &)" (?add_static_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::add_property(char const *,class boost::python::api::object const &,char const *)" (?add_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::class_base::add_property(char const *,class boost::python::api::object const &,class boost::python::api::object const &,char const *)" (?add_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@10@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::objects::class_base::class_base(char const *,unsigned __int64,struct boost::python::type_info const * const,char const *)" (??0class_base@objects@python@boost@@QEAA@PEBD_KQEBUtype_info@23@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::objects::register_dynamic_id_aux(struct boost::python::type_info,struct std::pair<void *,struct boost::python::type_info> (__cdecl*)(void *))" (?register_dynamic_id_aux@objects@python@boost@@YAXUtype_info@23@P6A?AU?$pair@PEAXUtype_info@python@boost@@@std@@PEAX@Z@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::objects::add_to_namespace(class boost::python::api::object const &,char const *,class boost::python::api::object const &,char const *)" (?add_to_namespace@objects@python@boost@@YAXAEBVobject@api@23@PEBD01@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: static struct _object * __cdecl boost::python::objects::enum_base::to_python(struct _typeobject *,long)" (?to_python@enum_base@objects@python@boost@@KAPEAU_object@@PEAU_typeobject@@J@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: void __cdecl boost::python::objects::enum_base::add_value(char const *,long)" (?add_value@enum_base@objects@python@boost@@IEAAXPEBDJ@Z)
libcarla.obj : error LNK2001: unresolved external symbol "protected: __cdecl boost::python::objects::enum_base::enum_base(char const *,struct _object * (__cdecl*)(void const *),void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,char const *)" (??0enum_base@objects@python@boost@@IEAA@PEBDP6APEAU_object@@PEBX@ZP6APEAXPEAU4@@ZP6AX3PEAUrvalue_from_python_stage1_data@converter@23@@ZUtype_info@23@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __cdecl boost::python::objects::py_function_impl_base::max_arity(void)const " (?max_arity@py_function_impl_base@objects@python@boost@@UEBAIXZ)
libcarla.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl boost::python::objects::py_function_impl_base::~py_function_impl_base(void)" (??1py_function_impl_base@objects@python@boost@@UEAA@XZ)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects::py_function const &,struct std::pair<struct boost::python::detail::keyword const *,struct boost::python::detail::keyword const *> const &)" (?function_object@objects@python@boost@@YA?AVobject@api@23@AEBUpy_function@123@AEBU?$pair@PEBUkeyword@detail@python@boost@@PEBU1234@@std@@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects::py_function const &)" (?function_object@objects@python@boost@@YA?AVobject@api@23@AEBUpy_function@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::objects::stop_iteration_error(void)" (?stop_iteration_error@objects@python@boost@@YAXXZ)
libcarla.obj : error LNK2001: unresolved external symbol "void * __cdecl boost::python::objects::find_dynamic_type(void *,struct boost::python::type_info,struct boost::python::type_info)" (?find_dynamic_type@objects@python@boost@@YAPEAXPEAXUtype_info@23@1@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::objects::copy_class_object(struct boost::python::type_info const &,struct boost::python::type_info const &)" (?copy_class_object@objects@python@boost@@YAXAEBUtype_info@23@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::handle<struct _object> __cdecl boost::python::objects::function_handle_impl(struct boost::python::objects::py_function const &)" (?function_handle_impl@objects@python@boost@@YA?AV?$handle@U_object@@@23@AEBUpy_function@123@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void * __cdecl boost::python::objects::find_static_type(void *,struct boost::python::type_info,struct boost::python::type_info)" (?find_static_type@objects@python@boost@@YAPEAXPEAXUtype_info@23@1@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::api::setattr(class boost::python::api::object const &,char const *,class boost::python::api::object const &)" (?setattr@api@python@boost@@YAXAEBVobject@123@PEBD0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::api::getslice(class boost::python::api::object const &,class boost::python::handle<struct _object> const &,class boost::python::handle<struct _object> const &)" (?getslice@api@python@boost@@YA?AVobject@123@AEBV4123@AEBV?$handle@U_object@@@23@1@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::api::getattr(class boost::python::api::object const &,char const *)" (?getattr@api@python@boost@@YA?AVobject@123@AEBV4123@PEBD@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::api::operator<(class boost::python::api::object const &,class boost::python::api::object const &)" (??Mapi@python@boost@@YA?AVobject@012@AEBV3012@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "void __cdecl boost::python::api::setitem(class boost::python::api::object const &,class boost::python::api::object const &,class boost::python::api::object const &)" (?setitem@api@python@boost@@YAXAEBVobject@123@00@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::api::operator==(class boost::python::api::object const &,class boost::python::api::object const &)" (??8api@python@boost@@YA?AVobject@012@AEBV3012@0@Z)
libcarla.obj : error LNK2001: unresolved external symbol "public: __cdecl boost::python::api::object::object(class boost::python::handle<struct _object> const &)" (??0object@api@python@boost@@QEAA@AEBV?$handle@U_object@@@23@@Z)
libcarla.obj : error LNK2001: unresolved external symbol "class boost::python::api::object __cdecl boost::python::api::getitem(class boost::python::api::object const &,class boost::python::api::object const &)" (?getitem@api@python@boost@@YA?AVobject@123@AEBV4123@0@Z)
libpng.lib(pngwrite.obj) : error LNK2001: unresolved external symbol deflate
libpng.lib(pngwutil.obj) : error LNK2001: unresolved external symbol deflate
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflate
libpng.lib(pngwrite.obj) : error LNK2001: unresolved external symbol deflateEnd
osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol deflateEnd
osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol deflateEnd
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflateEnd
libpng.lib(png.obj) : error LNK2001: unresolved external symbol inflateReset
libpng.lib(pngrutil.obj) : error LNK2001: unresolved external symbol inflateReset
libpng.lib(png.obj) : error LNK2001: unresolved external symbol crc32
libpng.lib(pngread.obj) : error LNK2001: unresolved external symbol inflate
libpng.lib(pngrutil.obj) : error LNK2001: unresolved external symbol inflate
osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol inflate
osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol inflate
libpng.lib(pngread.obj) : error LNK2001: unresolved external symbol inflateEnd
osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol inflateEnd
osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol inflateEnd
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol inflateEnd
libpng.lib(pngread.obj) : error LNK2001: unresolved external symbol inflateInit_
libpng.lib(pngwutil.obj) : error LNK2001: unresolved external symbol deflateReset
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflateReset
libpng.lib(pngwutil.obj) : error LNK2001: unresolved external symbol deflateInit2_
osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol deflateInit2_
osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol deflateInit2_
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflateInit2_
osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol inflateInit2_
osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol inflateInit2_
osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol inflateInit2_
build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd : fatal error LNK1120: 87 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120

-[BuildPythonAPI]: Carla lib for python has been successfully installed in 
@bernatx
Copy link
Contributor

bernatx commented Nov 30, 2020

Hi,
Usually when we see this error about unresolved external symbol on boost::python, it is caused by a wrong version of Python or a 32 bits version instead of the 64 bits version of Python required. Can you check that?

@frodozet
Copy link
Author

Yes,
Python 3.7.9 and 3.7.2 checked and both failed. Is there a lib dll or special file in the python package i can or should look for?

@frodozet
Copy link
Author

frodozet commented Dec 1, 2020

Hi
no 32bit version

@Eikeike
Copy link

Eikeike commented Dec 2, 2020

I've had the exact same issue. I don't know if it will help in your case, but here's what I did:

  1. Delete Build and PythonAPI/carla/build - Directories
  2. Downgrade Python from 3.7.9 to 3.7.7 (it's easiest to completely uninstall python and install the version you need)
  3. make clean
  4. make rebuild
@frodozet
Copy link
Author

frodozet commented Dec 6, 2020

doesn't change anything.
Same errors.
Does anyone have an idea about these errors?
They probably are just correct and a hint ?
" void __cdecl boost::python::converter::registry::insert(struct _object * ( ..."
Where ist this symbol defined?

@Manue26
Copy link

Manue26 commented Feb 24, 2021

Hi,

I have exactly the same issue. did you resolve your problem ?

I'm using
Platform: Windows 10
VS 2017 (I also have VS 2019 for other projects)
python 3.9 64bit (but I also have python 3.7 on my computer)
carla: 0.9.10.1

@bernatx
Copy link
Contributor

bernatx commented Feb 24, 2021

Hi,

Another cause of that problem is that when you build the first time CARLA, when it setup the boost files it takes a python version installed (if you have several it can take one that you don't want), and then later when compiling the PythonAPI the linker is using another version of Python, so it can not link different versions.

So, be sure that by default the same version of Python is found always, and it is 64 bits.

You can check the python that boost was using looking the files here:
CARLA\Build\boost-1.72.0-install\lib\libboost_python37-vc141-mt-x64-1_72.lib
the ..37.. is the version of Python, in this case 3.7

To rebuild, just remove the CARLA\Build\boost-1.72.0-install folder and try to build PythonAPI again with make PythonAPI.

@xyxu1024
Copy link

xyxu1024 commented Apr 2, 2021

same issue!

libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::throw_error_already_set(void)" (?throw_error_already_set@python@boost@@YAXXZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct boost::python::self_ns::self_t boost::python::self_ns::self" (?self@self_ns@python@boost@@3Uself_t@123@A)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void * __cdecl boost::python::converter::get_lvalue_from_python(struct _object *,struct boost::python::converter::registration const &)" (?get_lvalue_from_python@converter@python@boost@@YAPEAXPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct boost::python::converter::registration const & __cdecl boost::python::converter::registry::lookup_shared_ptr(struct boost::python::type_info)" (?lookup_shared_ptr@registry@converter@python@boost@@YAAEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct boost::python::converter::registration const * __cdecl boost::python::converter::registry::query(struct boost::python::type_info)" (?query@registry@converter@python@boost@@YAPEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::converter::registry::push_back(void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?push_back@registry@converter@python@boost@@YAXP6APEAXPEAU_object@@@ZP6AX0PEAUrvalue_from_python_stage1_data@234@@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::converter::registry::insert(struct _object * (__cdecl*)(void const *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?insert@registry@converter@python@boost@@YAXP6APEAU_object@@PEBX@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::converter::registry::insert(void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,struct _typeobject const * (__cdecl*)(void))" (?insert@registry@converter@python@boost@@YAXP6APEAXPEAU_object@@@ZP6AX0PEAUrvalue_from_python_stage1_data@234@@ZUtype_info@34@P6APEBU_typeobject@@XZ@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct boost::python::converter::registration const & __cdecl boost::python::converter::registry::lookup(struct boost::python::type_info)" (?lookup@registry@converter@python@boost@@YAAEBUregistration@234@Utype_info@34@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: void __cdecl boost::python::converter::shared_ptr_deleter::operator()(void const *)" (??Rshared_ptr_deleter@converter@python@boost@@QEAAXPEBX@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::converter::shared_ptr_deleter::~shared_ptr_deleter(void)" (??1shared_ptr_deleter@converter@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::converter::shared_ptr_deleter::shared_ptr_deleter(class boost::python::handle<struct _object>)" (??0shared_ptr_deleter@converter@python@boost@@QEAA@V?$handle@U_object@@@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::converter::void_result_from_python(struct _object *)" (?void_result_from_python@converter@python@boost@@YAXPEAU_object@@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void * __cdecl boost::python::converter::rvalue_from_python_stage2(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data &,struct boost::python::converter::registration const &)" (?rvalue_from_python_stage2@converter@python@boost@@YAPEAXPEAU_object@@AEAUrvalue_from_python_stage1_data@123@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct boost::python::converter::rvalue_from_python_stage1_data __cdecl boost::python::converter::rvalue_from_python_stage1(struct _object *,struct boost::python::converter::registration const &)" (?rvalue_from_python_stage1@converter@python@boost@@YA?AUrvalue_from_python_stage1_data@123@PEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile *,struct boost::python::converter::registration const &)" (??0arg_to_python_base@detail@converter@python@boost@@QEAA@PEDXAEBUregistration@234@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct _object * __cdecl boost::python::converter::do_return_to_python(char const *)" (?do_return_to_python@converter@python@boost@@YAPEAU_object@@PEBD@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct _object * __cdecl boost::python::converter::do_return_to_python(struct _object *)" (?do_return_to_python@converter@python@boost@@YAPEAU_object@@PEAU4@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "bool __cdecl boost::python::converter::implicit_rvalue_convertible_from_python(struct _object *,struct boost::python::converter::registration const &)" (?implicit_rvalue_convertible_from_python@converter@python@boost@@YA_NPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: struct _typeobject const * __cdecl boost::python::converter::registration::to_python_target_type(void)const " (?to_python_target_type@registration@converter@python@boost@@QEBAPEBU_typeobject@@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: struct _typeobject const * __cdecl boost::python::converter::registration::expected_from_python_type(void)const " (?expected_from_python_type@registration@converter@python@boost@@QEBAPEBU_typeobject@@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: struct _typeobject * __cdecl boost::python::converter::registration::get_class_object(void)const " (?get_class_object@registration@converter@python@boost@@QEBAPEAU_typeobject@@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: struct _object * __cdecl boost::python::converter::registration::to_python(void const volatile *)const " (?to_python@registration@converter@python@boost@@QEBAPEAU_object@@PEDX@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::converter::throw_no_reference_from_python(struct _object *,struct boost::python::converter::registration const &)" (?throw_no_reference_from_python@converter@python@boost@@YAXPEAU_object@@AEBUregistration@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: __cdecl boost::python::detail::list_base::list_base(void)" (??0list_base@detail@python@boost@@IEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: __cdecl boost::python::detail::list_base::list_base(class boost::python::api::object const &)" (??0list_base@detail@python@boost@@IEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: void __cdecl boost::python::detail::list_base::append(class boost::python::api::object const &)" (?append@list_base@detail@python@boost@@QEAAXAEBVobject@api@34@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: __cdecl boost::python::detail::tuple_base::tuple_base(class boost::python::api::object const &)" (??0tuple_base@detail@python@boost@@IEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::detail::register_exception_handler(class boost::function2<bool,struct boost::python::detail::exception_handler const &,class boost::function0<void> const &> const &)" (?register_exception_handler@detail@python@boost@@YAXAEBV?$function2@_NAEBUexception_handler@detail@python@boost@@AEBV?$function0@X@4@@3@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: bool __cdecl boost::python::detail::exception_handler::operator()(class boost::function0<void> const &)const " (??Rexception_handler@detail@python@boost@@QEBA_NAEBV?$function0@X@3@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct _object * boost::python::detail::current_scope" (?current_scope@detail@python@boost@@3PEAU_object@@EA)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: __cdecl boost::python::detail::dict_base::dict_base(void)" (??0dict_base@detail@python@boost@@IEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::detail::make_raw_function(struct boost::python::objects::py_function)" (?make_raw_function@detail@python@boost@@YA?AVobject@api@23@Upy_function@objects@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct _object * __cdecl boost::python::detail::init_module(struct PyModuleDef &,void (__cdecl*)(void))" (?init_module@detail@python@boost@@YAPEAU_object@@AEAUPyModuleDef@@P6AXXZ@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: static void __cdecl boost::python::instance_holder::deallocate(struct _object *,void *)" (?deallocate@instance_holder@python@boost@@SAXPEAU_object@@PEAX@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: static void * __cdecl boost::python::instance_holder::allocate(struct _object *,unsigned __int64,unsigned __int64)" (?allocate@instance_holder@python@boost@@SAPEAXPEAU_object@@_K1@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: void __cdecl boost::python::instance_holder::install(struct _object *)" (?install@instance_holder@python@boost@@QEAAXPEAU_object@@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: virtual __cdecl boost::python::instance_holder::~instance_holder(void)" (??1instance_holder@python@boost@@UEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::instance_holder::instance_holder(void)" (??0instance_holder@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: class boost::python::handle<struct _object> const & __cdecl boost::python::objects::stl_input_iterator_impl::current(void)const " (?current@stl_input_iterator_impl@objects@python@boost@@QEBAAEBV?$handle@U_object@@@34@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: bool __cdecl boost::python::objects::stl_input_iterator_impl::equal(struct boost::python::objects::stl_input_iterator_impl const &)const " (?equal@stl_input_iterator_impl@objects@python@boost@@QEBA_NAEBU1234@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: void __cdecl boost::python::objects::stl_input_iterator_impl::increment(void)" (?increment@stl_input_iterator_impl@objects@python@boost@@QEAAXXZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(void)" (??0stl_input_iterator_impl@objects@python@boost@@QEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::objects::stl_input_iterator_impl::stl_input_iterator_impl(class boost::python::api::object const &)" (??0stl_input_iterator_impl@objects@python@boost@@QEAA@AEBVobject@api@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::handle<struct _typeobject> __cdecl boost::python::objects::registered_class_object(struct boost::python::type_info)" (?registered_class_object@objects@python@boost@@YA?AV?$handle@U_typeobject@@@23@Utype_info@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object const & __cdecl boost::python::objects::identity_function(void)" (?identity_function@objects@python@boost@@YAAEBVobject@api@23@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "struct _object * __cdecl boost::python::objects::make_nurse_and_patient(struct _object *,struct _object *)" (?make_nurse_and_patient@objects@python@boost@@YAPEAU_object@@PEAU4@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::objects::add_cast(struct boost::python::type_info,struct boost::python::type_info,void * (__cdecl*)(void *),bool)" (?add_cast@objects@python@boost@@YAXUtype_info@23@0P6APEAXPEAX@Z_N@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::make_method_static(char const *)" (?make_method_static@class_base@objects@python@boost@@IEAAXPEBD@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::def_no_init(void)" (?def_no_init@class_base@objects@python@boost@@IEAAXXZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::set_instance_size(unsigned __int64)" (?set_instance_size@class_base@objects@python@boost@@IEAAX_K@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::add_static_property(char const *,class boost::python::api::object const &)" (?add_static_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::add_property(char const *,class boost::python::api::object const &,char const *)" (?add_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::class_base::add_property(char const *,class boost::python::api::object const &,class boost::python::api::object const &,char const *)" (?add_property@class_base@objects@python@boost@@IEAAXPEBDAEBVobject@api@34@10@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::objects::class_base::class_base(char const *,unsigned __int64,struct boost::python::type_info const * const,char const *)" (??0class_base@objects@python@boost@@QEAA@PEBD_KQEBUtype_info@23@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::objects::register_dynamic_id_aux(struct boost::python::type_info,struct std::pair<void *,struct boost::python::type_info> (__cdecl*)(void *))" (?register_dynamic_id_aux@objects@python@boost@@YAXUtype_info@23@P6A?AU?$pair@PEAXUtype_info@python@boost@@@std@@PEAX@Z@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::objects::add_to_namespace(class boost::python::api::object const &,char const *,class boost::python::api::object const &,char const *)" (?add_to_namespace@objects@python@boost@@YAXAEBVobject@api@23@PEBD01@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: static struct _object * __cdecl boost::python::objects::enum_base::to_python(struct _typeobject *,long)" (?to_python@enum_base@objects@python@boost@@KAPEAU_object@@PEAU_typeobject@@J@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: void __cdecl boost::python::objects::enum_base::add_value(char const *,long)" (?add_value@enum_base@objects@python@boost@@IEAAXPEBDJ@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "protected: __cdecl boost::python::objects::enum_base::enum_base(char const *,struct _object * (__cdecl*)(void const *),void * (__cdecl*)(struct _object *),void (__cdecl*)(struct _object *,struct boost::python::converter::rvalue_from_python_stage1_data *),struct boost::python::type_info,char const *)" (??0enum_base@objects@python@boost@@IEAA@PEBDP6APEAU_object@@PEBX@ZP6APEAXPEAU4@@ZP6AX3PEAUrvalue_from_python_stage1_data@converter@23@@ZUtype_info@23@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: virtual unsigned int __cdecl boost::python::objects::py_function_impl_base::max_arity(void)const " (?max_arity@py_function_impl_base@objects@python@boost@@UEBAIXZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: virtual __cdecl boost::python::objects::py_function_impl_base::~py_function_impl_base(void)" (??1py_function_impl_base@objects@python@boost@@UEAA@XZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects::py_function const &,struct std::pair<struct boost::python::detail::keyword const *,struct boost::python::detail::keyword const *> const &)" (?function_object@objects@python@boost@@YA?AVobject@api@23@AEBUpy_function@123@AEBU?$pair@PEBUkeyword@detail@python@boost@@PEBU1234@@std@@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::objects::function_object(struct boost::python::objects::py_function const &)" (?function_object@objects@python@boost@@YA?AVobject@api@23@AEBUpy_function@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::objects::stop_iteration_error(void)" (?stop_iteration_error@objects@python@boost@@YAXXZ)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void * __cdecl boost::python::objects::find_dynamic_type(void *,struct boost::python::type_info,struct boost::python::type_info)" (?find_dynamic_type@objects@python@boost@@YAPEAXPEAXUtype_info@23@1@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::objects::copy_class_object(struct boost::python::type_info const &,struct boost::python::type_info const &)" (?copy_class_object@objects@python@boost@@YAXAEBUtype_info@23@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::handle<struct _object> __cdecl boost::python::objects::function_handle_impl(struct boost::python::objects::py_function const &)" (?function_handle_impl@objects@python@boost@@YA?AV?$handle@U_object@@@23@AEBUpy_function@123@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void * __cdecl boost::python::objects::find_static_type(void *,struct boost::python::type_info,struct boost::python::type_info)" (?find_static_type@objects@python@boost@@YAPEAXPEAXUtype_info@23@1@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::api::setattr(class boost::python::api::object const &,char const *,class boost::python::api::object const &)" (?setattr@api@python@boost@@YAXAEBVobject@123@PEBD0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::api::getslice(class boost::python::api::object const &,class boost::python::handle<struct _object> const &,class boost::python::handle<struct _object> const &)" (?getslice@api@python@boost@@YA?AVobject@123@AEBV4123@AEBV?$handle@U_object@@@23@1@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::api::getattr(class boost::python::api::object const &,char const *)" (?getattr@api@python@boost@@YA?AVobject@123@AEBV4123@PEBD@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::api::operator<(class boost::python::api::object const &,class boost::python::api::object const &)" (??Mapi@python@boost@@YA?AVobject@012@AEBV3012@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "void __cdecl boost::python::api::setitem(class boost::python::api::object const &,class boost::python::api::object const &,class boost::python::api::object const &)" (?setitem@api@python@boost@@YAXAEBVobject@123@00@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::api::operator==(class boost::python::api::object const &,class boost::python::api::object const &)" (??8api@python@boost@@YA?AVobject@012@AEBV3012@0@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "public: __cdecl boost::python::api::object::object(class boost::python::handle<struct _object> const &)" (??0object@api@python@boost@@QEAA@AEBV?$handle@U_object@@@23@@Z)
libcarla.obj : error LNK2001: 无法解析的外部符号 "class boost::python::api::object __cdecl boost::python::api::getitem(class boost::python::api::object const &,class boost::python::api::object const &)" (?getitem@api@python@boost@@YA?AVobject@123@AEBV4123@0@Z)
build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd : fatal error LNK1120: 77 个无法解析的外部命令
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120
@7788boy
Copy link

7788boy commented May 16, 2021

Hi,
I tried the following steps and it works.

  1. Remove all the other versions of Python. (I uninstall Anaconda and reinstall Python 3.7.9 from Python.org.)
  2. Add Python to path variable.
  3. Delete the folders naming with "-install" in CARLA\Build
    image
  4. make clean
  5. make PythonAPI

I hope it will help!

@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jul 21, 2021
@Yebihashu
Copy link

I solved such problem that happened to me,
A description is given here #4060 (comment)

@stale stale bot removed the stale Issue has not had recent activity label Sep 1, 2021
@nnorbert99
Copy link

i tried the python 3.8.10 and basically everything so far, even installing on a new PC with fresh windows on it but the same error happend. Anybody got any idea ?

@nnorbert99
Copy link

Guys i really tried everything, i tried building the 0.9.12 and rebuild the unreal engine, other versions of Visual studio but nothing works. Any ide or hint what couse this problem or who should i ask ?

@BedirhanKeskin
Copy link

@nnorbert99 , Could you solve the problem? I also tried but I am having the same issue

@nnorbert99
Copy link

Nah not really, no solution on the whole internet.

@bernatx
Copy link
Contributor

bernatx commented Oct 20, 2021

Can you tell us which files are in your CARLA\Build\boost-1.72.0-install\lib\ folder?
That could give us an idea of what version of python was using boost, and which version of python is trying to link CARLA.
If you have the whole .log of the compilation to check, the better.
Thanks

@BedirhanKeskin
Copy link

I could solve the problem.

Firstly I was having b2.exe error during "make PythonAPI" which is mentioned in #4534. I downgraded the python version to 3.8.10 from 3.10.xx. I deleted all Carla and python 3.10.xx files and paths then I started from WIndows Build-Part Two: Build CARLA. That solved the b2.exe problem but it starts giving the error of "failed with exit status 1120". After that, I reinstall Make and Cmake. Also don't forget to install python dependencies (setuptools, wheel) again.

Now I am having an "Out of video memory trying to allocate a rendering resource" error when I launch Carla. My PC has 8GB RAM, i5-4210, and Nvidia Geforce 840M. I guess I need a more powerful PC.
Thanks

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jan 9, 2022
@martino92
Copy link

same issue without solution

@stale
Copy link

stale bot commented Jun 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale Issue has not had recent activity