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

Xercesc error installation problem. #5632

Open
saandasa opened this issue Jul 30, 2022 · 16 comments
Open

Xercesc error installation problem. #5632

saandasa opened this issue Jul 30, 2022 · 16 comments

Comments

@saandasa
Copy link

I'm having problems with Xercesc installing incorrectly in version 0.9.13 on Win11.

`H:\carla\carla>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Asynchronous jobs: 16
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Install directory: "H:\carla\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "H:\carla\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "H:\carla\carla\Build" --zlib-install-dir "H:\carla\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "H:\carla\carla\Build\libpng-1.2.37-install" if you want to force a rebuild.
-[install_libpng]: Exiting...
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_rpclib]: A rpclib installation already exists.
-[install_rpclib]: Delete "H:\carla\carla\Build\rpclib-install" if you want to force a rebuild.
-[install_rpclib]: Exiting...
-[Setup]: Installing Google Test...
-[install_gtest]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_gtest]: A Google Test installation already exists.
-[install_gtest]: Delete "H:\carla\carla\Build\gtest-install" if you want to force a rebuild.
-[install_gtest]: Exiting...
-[Setup]: Installing "Recast & Detour"...
-[install_recast]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_recast]: A "Recast & Detour" installation already exists.
-[install_recast]: Delete "H:\carla\carla\Build\recast-0b13b0-install" if you want to force a rebuild.
-[install_recast]: Exiting...
-[Setup]: Installing Boost...
-[install_boost]: [Batch params]: --build-dir "H:\carla\carla\Build" --toolset msvc-14.2 --version 1.72.0 -j 16
-[install_boost]: A Boost installation already exists.
-[install_boost]: Delete "H:\carla\carla\Build\boost-1.72.0-install" if you want to force a rebuild.
-[install_boost]: Exiting...
已复制 1 个文件。
已复制 1 个文件。
-[Setup]: Installing Xercesc...
-[install_xercesc]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_xercesc]: A xerces installation already exists.
-[install_xercesc]: Delete "H:\carla\carla\Build\xerces-c-3.2.3-install" if you want to force a rebuild.
-[install_xercesc]: Exiting...
系统找不到指定的文件。
-[Setup]: Installing Sqlite3
-[install_sqlite3]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_sqlite3]: A Sqlite3 installation already exists.
-[install_sqlite3]: Delete "H:\carla\carla\Build\sqlite3-install" if you want to force a rebuild.
-[install_sqlite3]: Exiting...
已复制 1 个文件。
-[Setup]: Installing PROJ
-[install_proj]: [Batch params]: --build-dir "H:\carla\carla\Build"
-[install_proj]: A PROJ installation already exists.
-[install_proj]: Delete "H:\carla\carla\Build\proj-install" if you want to force a rebuild.
-[install_proj]: Exiting...
已复制 1 个文件。
-[Setup]: Creating "CMakeLists.txt.in"...
-[Setup]:
###########

SUCCESS

###########

IMPORTANT!

All the CARLA library dependences should be installed now.
(You can remove all "*-src" folders in H:\carla\carla\Build\ directory)

You only need the ASSET PACK with all the meshes and textures.

This script provides the assets for CARLA 0.9.13:
You can download the assets from here:

   http://carla-assets.s3.amazonaws.com/20211112_d5cfa12.tar.gz

Unzip it in the "H:\carla\carla\Unreal\CarlaUE4\Content\Carla" folder.
If you want another version, search it in H:\carla\carla\Util\ContentVersions.txt.

-[BuildLibCarla]: [Batch params]: --server --client
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- Build debug: ON
-- Build release: ON
-- Build test: ON
-- Configuring done
-- Generating done
-- Build files have been written to: H:/carla/carla/Build/libcarla-visualstudio
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
版权所有(C) Microsoft Corporation。保留所有权利。

carla_server.vcxproj -> H:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server.lib
carla_server_debug.vcxproj -> H:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server_debug.lib
-- Install configuration: "Release"
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- Build debug: ON
-- Build release: ON
-- Build test: ON
-- Configuring done
-- Generating done
-- Build files have been written to: H:/carla/carla/Build/libcarla-visualstudio
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
版权所有(C) Microsoft Corporation。保留所有权利。

carla_client.vcxproj -> H:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib
carla_client_debug.vcxproj -> H:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib
-- Install configuration: "Release"
-[BuildLibCarla]: LibCarla server has been successfully installed in "H:\carla\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies"!
-[BuildLibCarla]: LibCarla client has been successfully installed in "H:\carla\carla\PythonAPI\carla\dependencies"!
-[BuildOSM2ODR]: [Batch params]: --build --all
HEAD is now at ee0c2b9241 Removed debug warnings
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- CMAKE_BINARY_DIR: H:/carla/carla/Build/osm2odr-visualstudio
-- CMAKE_SOURCE_DIR: H:/carla/carla/Build/om2odr-source

-- Platform:
-- Host: Windows-10.0.22000 AMD64
-- Target: Windows-10.0.22000 AMD64
-- CMake: 3.24.0-rc2
-- CMake generator: Visual Studio 16 2019
-- CMake build tool: D:/Program Files (x86)/Visual Studio/MSBuild/Current/Bin/MSBuild.exe
-- Compiler: MSVC 19.29.30146.0

CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Failed to find XercesC (missing: XercesC_VERSION)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.24/Modules/FindXercesC.cmake:112 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:71 (find_package)

-- Configuring incomplete, errors occurred!
See also "H:/carla/carla/Build/osm2odr-visualstudio/CMakeFiles/CMakeOutput.log".
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
版权所有(C) Microsoft Corporation。保留所有权利。

MSBUILD : error MSB1009: 项目文件不存在。
开关:install.vcxproj
-[BuildOSM2ODR]: OSM2ODR has been successfully installed in "H:\carla\carla\PythonAPI\carla\dependencies"
-[BuildPythonAPI]: [Batch params]: --py3
Building Python API for Python 3.
compiling:

  • source/libcarla/libcarla.cpp
    running bdist_egg
    running egg_info
    writing source\carla.egg-info\PKG-INFO
    writing dependency_links to source\carla.egg-info\dependency_links.txt
    writing top-level names to source\carla.egg-info\top_level.txt
    reading manifest file 'source\carla.egg-info\SOURCES.txt'
    writing manifest file 'source\carla.egg-info\SOURCES.txt'
    installing library code to build\bdist.win-amd64\egg
    D:\app\anacanda\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
    warnings.warn(
    running install_lib
    running build_py
    running build_ext
    building 'carla.libcarla' extension
    "D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Idependencies/include -ID:\app\anacanda\include -ID:\app\anacanda\Include "-ID:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-ID:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-ID:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-ID:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsource/libcarla/libcarla.cpp /Fobuild\temp.win-amd64-cpython-38\Release\source/libcarla/libcarla.obj /experimental:external /external:W0 /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 /MD
    libcarla.cpp
    dependencies/include\carla/road/element/RoadInfoMarkRecord.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件 保存为 Unicode 格式以防止数据丢失
    "D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:dependencies/lib /LIBPATH:D:\app\anacanda\libs /LIBPATH:D:\app\anacanda /LIBPATH:D:\app\anacanda\PCbuild\amd64 "/LIBPATH:D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit_libcarla build\temp.win-amd64-cpython-38\Release\source/libcarla/libcarla.obj /OUT:build\lib.win-amd64-cpython-38\carla\libcarla.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-38\Release\source/libcarla\libcarla.cp38-win_amd64.lib shlwapi.lib Advapi32.lib ole32.lib shell32.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\carla_client.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\Detour.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\DetourCrowd.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\libboost_filesystem-vc142-mt-x64-1_72.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\libboost_python38-vc142-mt-x64-1_72.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\libpng.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\osm2odr.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\proj.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\Recast.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\rpc.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\sqlite3.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\xerces-c_3.lib H:\carla\carla\PythonAPI\carla\dependencies/lib\zlib.lib
    正在创建库 build\temp.win-amd64-cpython-38\Release\source/libcarla\libcarla.cp38-win_amd64.lib 和对象 build\temp.win-amd64-cpython-38\Release\source/libcarla\libcarla.cp38-win_amd64.exp
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 u_strlen_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 u_tolower_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 u_toupper_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 u_foldCase_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 UCNV_FROM_U_CALLBACK_STOP_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 UCNV_FROM_U_CALLBACK_SUBSTITUTE_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_open_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_openU_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_close_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_getMaxCharSize_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_getMinCharSize_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_setFromUCallBack_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_fromUnicode_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_toUnicode_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_fromUChars_58
    xerces-c_3.lib(ICUTransService.obj) : error LNK2001: 无法解析的外部符号 ucnv_toUChars_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_openPatternOptions_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_close_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_serialize_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_getSerializedSet_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_setSerializedToOne_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_getSerializedRangeCount_58
    xerces-c_3.lib(RangeToken.obj) : error LNK2001: 无法解析的外部符号 uset_getSerializedRange_58
    xerces-c_3.lib(XMLUniCharacter.obj) : error LNK2001: 无法解析的外部符号 u_charType_58
    build\lib.win-amd64-cpython-38\carla\libcarla.cp38-win_amd64.pyd : fatal error LNK1120: 24 个无法解析的外部命令
    error: command 'D:\Program Files (x86)\Visual Studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit code 1120

-[BuildPythonAPI]: Carla lib for python has been successfully installed in "H:\carla\carla\PythonAPI\carla\dist"!`

@GGILCARVALHO
Copy link

GGILCARVALHO commented Oct 24, 2022

I have the same error
"CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Failed to find XercesC (missing: XercesC_VERSION)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.21/Modules/FindXercesC.cmake:110 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:71 (find_package)"

@LinyeLi60
Copy link

Same error, it sames that https://github.com/carla-simulator/carla/pull/5850 change the xercesc from 3.2.3 to 3.2.4

@GGILCARVALHO
Copy link

This error happens with both 3.2.3 and 3.2.4 versions of Xerces-C

@GustavoSilvera
Copy link

This error happens because your Windows machine is having trouble linking the correct unicode (unicode/uset.h) methods used in RangeToken and ICUTransService. However, you don't actually need to use them!

If you instead disable the XERCES_USE_TRANSCODER_ICU macro and enable the XERCES_USE_TRANSCODER_WINDOWS macro (by flipping the default values in cmake/XercesTranscoderSelection.cmake) then we avoid this error altogether.

@shekharsuman3
Copy link

Platform:
-- Host: Windows-10.0.19042 AMD64
-- Target: Windows-10.0.19042 AMD64
-- CMake: 3.21.3
-- CMake generator: Visual Studio 16 2019
-- CMake build tool: D:/programs/Microsoft visual studio/visual studio/MSBuild/Current/Bin/MSBuild.exe
-- Compiler: MSVC 19.29.30146.0

-- Found Proj: D:/carla/Build/proj-install/lib/proj.lib
-- Found ZLIB: D:/carla/PythonAPI/carla/dependencies/lib/zlib.lib (found version "1.2.13")
-- Enabled features: Windows-10.0.19042 AMD64 MSVC 19.29.30146.0 Release Proj
-- Configuring done
-- Generating done
-- Build files have been written to: D:/carla/Build/osm2odr-visualstudio
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

osm2odr.vcxproj -> D:\carla\Build\osm2odr-visualstudio\src\Release\osm2odr.lib
-- Install configuration: "Release"
-[BuildOSM2ODR]: OSM2ODR has been successfully installed in "D:\carla\PythonAPI\carla\dependencies"
-[BuildPythonAPI]: [Batch params]: --py3
Building Python API for Python 3.
compiling:

  • source/libcarla/libcarla.cpp
    running bdist_egg
    running egg_info
    writing source\carla.egg-info\PKG-INFO
    writing dependency_links to source\carla.egg-info\dependency_links.txt
    writing top-level names to source\carla.egg-info\top_level.txt
    writing manifest file 'source\carla.egg-info\SOURCES.txt'
    installing library code to build\bdist.win-amd64\egg
    running install_lib
    running build_py
    running build_ext
    building 'carla.libcarla' extension
    D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idependencies/include -IC:\Users\u27e45\AppData\Local\Programs\Python\Python37\include -IC:\Users\u27e45\AppData\Local\Programs\Python\Python37\include "-ID:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-ID:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-ID:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-ID:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tpsource/libcarla/libcarla.cpp /Fobuild\temp.win-amd64-3.7\Release\source/libcarla/libcarla.obj /experimental:external /external:W0 /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 /MD
    libcarla.cpp
    D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:dependencies/lib /LIBPATH:C:\Users\u27e45\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\u27e45\AppData\Local\Programs\Python\Python37\PCbuild\amd64 "/LIBPATH:D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" "/LIBPATH:D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x86" "/LIBPATH:D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x86" /EXPORT:PyInit_libcarla build\temp.win-amd64-3.7\Release\source/libcarla/libcarla.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 ole32.lib shell32.lib D:\carla\PythonAPI\carla\dependencies/lib\carla_client.lib D:\carla\PythonAPI\carla\dependencies/lib\Detour.lib D:\carla\PythonAPI\carla\dependencies/lib\DetourCrowd.lib D:\carla\PythonAPI\carla\dependencies/lib\libboost_filesystem-vc142-mt-x64-1_72.lib D:\carla\PythonAPI\carla\dependencies/lib\libboost_python37-vc142-mt-x64-1_72.lib D:\carla\PythonAPI\carla\dependencies/lib\osm2odr.lib D:\carla\PythonAPI\carla\dependencies/lib\proj.lib D:\carla\PythonAPI\carla\dependencies/lib\Recast.lib D:\carla\PythonAPI\carla\dependencies/lib\rpc.lib D:\carla\PythonAPI\carla\dependencies/lib\sqlite3.lib D:\carla\PythonAPI\carla\dependencies/lib\xerces-c_3.lib D:\carla\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 png_destroy_write_struct
    libcarla.obj : error LNK2001: unresolved external symbol png_set_bKGD
    libcarla.obj : error LNK2001: unresolved external symbol png_set_cHRM_fixed
    libcarla.obj : error LNK2001: unresolved external symbol png_set_pHYs
    libcarla.obj : error LNK2001: unresolved external symbol png_set_swap_alpha
    libcarla.obj : error LNK2001: unresolved external symbol png_set_text
    libcarla.obj : error LNK2001: unresolved external symbol png_set_swap
    libcarla.obj : error LNK2001: unresolved external symbol png_set_invert_mono
    libcarla.obj : error LNK2001: unresolved external symbol png_set_sRGB
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_mem_level
    libcarla.obj : error LNK2001: unresolved external symbol png_get_io_ptr
    libcarla.obj : error LNK2001: unresolved external symbol png_create_write_struct
    libcarla.obj : error LNK2001: unresolved external symbol png_set_gAMA_fixed
    libcarla.obj : error LNK2001: unresolved external symbol png_write_info
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_buffer_size
    libcarla.obj : error LNK2001: unresolved external symbol png_set_tIME
    libcarla.obj : error LNK2001: unresolved external symbol png_write_row
    libcarla.obj : error LNK2001: unresolved external symbol png_set_pCAL
    libcarla.obj : error LNK2001: unresolved external symbol png_set_PLTE
    libcarla.obj : error LNK2001: unresolved external symbol png_set_sBIT
    libcarla.obj : error LNK2001: unresolved external symbol png_set_oFFs
    libcarla.obj : error LNK2001: unresolved external symbol png_set_filter
    libcarla.obj : error LNK2001: unresolved external symbol png_set_iCCP
    libcarla.obj : error LNK2001: unresolved external symbol png_set_hIST
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_level
    libcarla.obj : error LNK2001: unresolved external symbol png_destroy_read_struct
    libcarla.obj : error LNK2001: unresolved external symbol png_set_IHDR
    libcarla.obj : error LNK2001: unresolved external symbol png_set_strip_alpha
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_strategy
    libcarla.obj : error LNK2001: unresolved external symbol png_set_write_fn
    libcarla.obj : error LNK2001: unresolved external symbol png_create_info_struct
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_method
    libcarla.obj : error LNK2001: unresolved external symbol png_write_end
    libcarla.obj : error LNK2001: unresolved external symbol png_set_compression_window_bits
    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
    osm2odr.lib(OptionsIO.obj) : error LNK2001: unresolved external symbol inflate
    osm2odr.lib(SUMOSAXReader.obj) : error LNK2001: unresolved external symbol inflate
    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
    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_
    osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflate
    osm2odr.lib(OutputDevice_File.obj) : error LNK2001: unresolved external symbol deflateReset
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_close
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_close
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_exec
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_last_insert_rowid
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_get_table
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_free_table
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_open_v2
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_open_v2
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_errmsg
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_errmsg
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_prepare_v2
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_prepare_v2
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_bind_blob
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_bind_int64
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_bind_null
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_bind_text
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_bind_text
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_step
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_step
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_column_blob
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_column_int64
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_column_text
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_column_text
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_column_bytes
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_finalize
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_finalize
    proj.lib(networkfilemanager.obj) : error LNK2001: unresolved external symbol sqlite3_reset
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_reset
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_libversion
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_libversion_number
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_bind_double
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_column_count
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_column_double
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_column_type
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_create_function
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_value_double
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_value_int64
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_value_type
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_result_double
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_result_int
    proj.lib(factory.obj) : error LNK2001: unresolved external symbol sqlite3_result_null
    proj.lib(sqlite3_utils.obj) : error LNK2001: unresolved external symbol sqlite3_initialize
    proj.lib(sqlite3_utils.obj) : error LNK2001: unresolved external symbol sqlite3_config
    proj.lib(sqlite3_utils.obj) : error LNK2001: unresolved external symbol sqlite3_vfs_find
    proj.lib(sqlite3_utils.obj) : error LNK2001: unresolved external symbol sqlite3_vfs_register
    proj.lib(sqlite3_utils.obj) : error LNK2001: unresolved external symbol sqlite3_vfs_unregister
    proj.lib(proj_json_streaming_writer.obj) : error LNK2001: unresolved external symbol sqlite3_vsnprintf
    build\lib.win-amd64-3.7\carla\libcarla.cp37-win_amd64.pyd : fatal error LNK1120: 79 unresolved externals
    error: command 'D:\programs\Microsoft visual studio\visual studio\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe' failed with exit status 1120

-[BuildPythonAPI]: Carla lib for python has been successfully installed in "D:\carla\PythonAPI\carla\dist"!

@LucasFKobernic
Copy link

Hi @saandasa did u solve the probelm?

@ViperaA60
Copy link

ViperaA60 commented Feb 6, 2023

So the changes I need to make is:

set(XERCES_USE_TRANSCODER_ICU 0) TO set(XERCES_USE_TRANSCODER_ICU 1)
set(XERCES_USE_TRANSCODER_ICU 1) under if statement TO set(XERCES_USE_TRANSCODER_ICU 0) under if statement
set(XERCES_USE_TRANSCODER_WINDOWS 0) TO set(XERCES_USE_TRANSCODER_WINDOWS 1)
set(XERCES_USE_TRANSCODER_WINDOWS 1) under if statement TO set(XERCES_USE_TRANSCODER_WINDOWS 0)

Right?

@Babybanana1
Copy link

The issue could be solved by below settings in install_xercesc.bat

cmake .. -G "Visual Studio 16 2019" -A x64^
-DCMAKE_INSTALL_PREFIX="%XERCESC_INSTALL_DIR:=/%"^
-DBUILD_SHARED_LIBS=OFF^
-Dtranscoder=windows^
-Dxmlch-type=uint16_t^
"%BUILD_DIR%%XERCESC_BASENAME%-%XERCESC_VERSION%-source"
if %errorlevel% neq 0 goto error_cmake

@yu-ju-chiu
Copy link

If install fails due to XCERES, change line 54 in "..\carla\Util\InstallersWin\install_xercesc.bat" change https://downloads.apache.org/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip to  https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip

@molua
Copy link

molua commented May 13, 2023

If install fails due to XCERES, change line 54 in "..\carla\Util\InstallersWin\install_xercesc.bat" change https://downloads.apache.org/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip to  https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip

that works for me! thanks

@VidaAPI
Copy link

VidaAPI commented Jun 14, 2023

If install fails due to XCERES, change line 54 in "..\carla\Util\InstallersWin\install_xercesc.bat" change https://downloads.apache.org/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip to  https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-%XERCESC_VERSION%.zip

Hi, these links are showing: '404 Not Found' , How can i proceed?

@Nitro60zeus
Copy link

Nitro60zeus commented Jun 14, 2023

Change the %XERCESC_VERSION% to 3.2.4 in the install_xercesc.bat file.

U will find the file here: carla\Util\InstallersWin\install_xercesc.bat

Else u can download it manually from here:
https://archive.apache.org/dist/xerces/c/3/sources/

@VidaAPI
Copy link

VidaAPI commented Jun 15, 2023

N% to 3.2.4 in the
@Nitro60zeus
Thank you. I appreciate your answer for this too: I wanna delete the build version that I have (Proceeded till before make Python API). And just quick install 9.13 version. Is deleting the files sufficient enough? Or should I do something else too?

@Nitro60zeus
Copy link

Nitro60zeus commented Jun 15, 2023

No problem!

What do you mean by quick install? Will you be using a pre-built package? If so, then u can run make clean and then delete the build folder.

@VidaAPI
Copy link

VidaAPI commented Jun 19, 2023

This was helpful, thanks.

@wwwwsea
Copy link

wwwwsea commented Nov 18, 2024

The issue could be solved by below settings in install_xercesc.bat

cmake .. -G "Visual Studio 16 2019" -A x64^ -DCMAKE_INSTALL_PREFIX="%XERCESC_INSTALL_DIR:=/%"^ -DBUILD_SHARED_LIBS=OFF^ -Dtranscoder=windows^ -Dxmlch-type=uint16_t^ "%BUILD_DIR%%XERCESC_BASENAME%-%XERCESC_VERSION%-source" if %errorlevel% neq 0 goto error_cmake

tanks.helpful

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

No branches or pull requests