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

Windows 10: make PythonAPI stops at BuildOSM2ODR, CMAKE build error #6898

Closed
HariKrishnaPadala opened this issue Nov 12, 2023 · 13 comments
Closed

Comments

@HariKrishnaPadala
Copy link

Hi,

I am trying to build the Carla 0.9.15 latest source code on Windows 10.

When I do make PythonAPI in Visual studio 19 x64 command prompt, the process stops
at BuildOSM2ODR with CMAKE error.

I think CMAKE cannot generate the visual studio project folder for osm2odr may be because of
CMAKE configuration issues in Util\BuildTools\BuildOSM2ODR.bat
There are also no issues with the installation of xerces-c_3.lib while doing make PythonAPI.

Can anyone suggest any solution to the problem?

Thank you.

@Lyanyv
Copy link

Lyanyv commented Nov 13, 2023

same issue for me.
I changed .\Util\BuildTools\BuildOSM2ODR.bat line 112 from

    cmake -G %GENERATOR% %PLATFORM%^

to

    cmake -G %GENERATOR% -A x64^

then the error: CMake Error: The source directory "C:/build-carla/carla-0.9.15/Build/osm2odr-visualstudio/x64" does not exist. disappeared, and make PythonAPI successed.

hope this helps

@sjtuyolee
Copy link

Great!!!
Thanks for your answer @Lyanyv

@saitejeswar1
Copy link

saitejeswar1 commented Nov 18, 2023

Thank you so much @Lyanyv
I have been struggling to solve this for the past 2 days

@vicmen14
Copy link

vicmen14 commented Nov 27, 2023

BuildOSM2ODR.bat script has:

setlocal enabledelayedexpansion

so it should use

!variable!

to get access to variable values. For example, these commands:

setlocal enabledelayedexpansion

set variable=-A x64
echo %variable%
echo !variable!

return

x64
-A x64

The space here in the set operation "-A x64" is causing the problem. To fix the issue, change this line:

cmake -G %GENERATOR% %PLATFORM%^

by

cmake -G %GENERATOR% !PLATFORM!^

@CMakey
Copy link

CMakey commented Nov 30, 2023

same issue for me. I changed .\Util\BuildTools\BuildOSM2ODR.bat line 112 from

    cmake -G %GENERATOR% %PLATFORM%^

to

    cmake -G %GENERATOR% -A x64^

then the error: CMake Error: The source directory "C:/build-carla/carla-0.9.15/Build/osm2odr-visualstudio/x64" does not exist. disappeared, and make PythonAPI successed.

hope this helps

thanks a lot ! it works!

@juanrodriguezdekra
Copy link

Does anyone know why the OSM2ODR.bat file on line 112 does not appear for me:

cmake -G %GENERATOR% %PLATFORM%^

It seems that my OSM2ODR.bat file has been build in a different way than expected...
Instead of that, this is my OSM2ODR.bat file:

#! /bin/bash
DOC_STRING="Build OSM2ODR."

USAGE_STRING=$(cat <<- END
Usage: $0 [-h|--help]

commands

[--clean]    Clean intermediate files.
[--rebuild]  Clean and rebuild both configurations.

END
)

REMOVE_INTERMEDIATE=false
BUILD_OSM2ODR=false
GIT_PULL=true
CURRENT_OSM2ODR_COMMIT=1835e1e9538d0778971acc8b19b111834aae7261
OSM2ODR_BRANCH=aaron/defaultsidewalkwidth
OSM2ODR_REPO=https://github.com/carla-simulator/sumo.git

OPTS=getopt -o h --long help,rebuild,build,clean,carsim,no-pull -n 'parse-options' -- "$@"

eval set -- "$OPTS"

while [[ $# -gt 0 ]]; do
case "$1" in
--rebuild )
REMOVE_INTERMEDIATE=true;
BUILD_OSM2ODR=true;
shift ;;
--build )
BUILD_OSM2ODR=true;
shift ;;
--no-pull )
GIT_PULL=false
shift ;;
--clean )
REMOVE_INTERMEDIATE=true;
shift ;;
-h | --help )
echo "$DOC_STRING"
echo "$USAGE_STRING"
exit 1
;;
* )
shift ;;
esac
done

source $(dirname "$0")/Environment.sh

function get_source_code_checksum {
local EXCLUDE='pycache'
find "${OSM2ODR_SOURCE_FOLDER}"/* ! -path "${EXCLUDE}" -print0 | sha1sum | awk '{print $1}'
}

if ! { ${REMOVE_INTERMEDIATE} || ${BUILD_OSM2ODR}; }; then
fatal_error "Nothing selected to be done."
fi

==============================================================================

-- Clean intermediate files --------------------------------------------------

==============================================================================

if ${REMOVE_INTERMEDIATE} ; then

log "Cleaning intermediate files and folders."

rm -Rf ${OSM2ODR_BUILD_FOLDER}*

fi

==============================================================================

-- Build library -------------------------------------------------------------

==============================================================================

if ${BUILD_OSM2ODR} ; then
log "Building OSM2ODR."

[ ! -d ${OSM2ODR_BUILD_FOLDER} ] && mkdir ${OSM2ODR_BUILD_FOLDER}

if ${GIT_PULL} ; then
if [ ! -d ${OSM2ODR_SOURCE_FOLDER} ] ; then
git clone -b ${OSM2ODR_BRANCH} ${OSM2ODR_REPO} ${OSM2ODR_SOURCE_FOLDER}
fi
cd ${OSM2ODR_SOURCE_FOLDER}
git fetch
git checkout ${CURRENT_OSM2ODR_COMMIT}
fi

mkdir -p ${OSM2ODR_BUILD_FOLDER}
cd ${OSM2ODR_BUILD_FOLDER}

export CC="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang"
export CXX="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++"
export PATH="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin:$PATH"

cmake ${OSM2ODR_SOURCE_FOLDER}
-G "Eclipse CDT4 - Ninja"
-DCMAKE_CXX_FLAGS="-stdlib=libstdc++"
-DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_CLIENT_FOLDER}
-DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install/include
-DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install/lib/libproj.a
-DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install/include
-DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install/lib/libxerces-c.a

ninja osm2odr
ninja install

mkdir -p ${OSM2ODR_SERVER_BUILD_FOLDER}
cd ${OSM2ODR_SERVER_BUILD_FOLDER}

LLVM_BASENAME=llvm-8.0
LLVM_INCLUDE="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1"
LLVM_LIBPATH="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu"

echo $LLVM_INCLUDE
echo $LLVM_LIBPATH

cmake ${OSM2ODR_SOURCE_FOLDER}
-G "Eclipse CDT4 - Ninja"
-DCMAKE_CXX_FLAGS="-fPIC -std=c++14 -stdlib=libc++ -I${LLVM_INCLUDE} -L${LLVM_LIBPATH}"
-DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_SERVER_FOLDER}
-DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install-server/include
-DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install-server/lib/libproj.a
-DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/include
-DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/lib/libxerces-c.a

ninja osm2odr
ninja install

mkdir -p ${OSM2ODR_SERVER_BUILD_FOLDER}
cd ${OSM2ODR_SERVER_BUILD_FOLDER}

LLVM_BASENAME=llvm-8.0
LLVM_INCLUDE="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1"
LLVM_LIBPATH="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu"

cmake ${OSM2ODR_SOURCE_FOLDER}
-G "Eclipse CDT4 - Ninja"
-DCMAKE_CXX_FLAGS="-fPIC -std=c++14 -stdlib=libc++ -I${LLVM_INCLUDE} -L${LLVM_LIBPATH}"
-DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_SERVER_FOLDER}
-DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install-server/include
-DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install-server/lib/libproj.a
-DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/include
-DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/lib/libxerces-c.a

ninja osm2odr
ninja install

fi

log " OSM2ODR Success!"

@aminoed
Copy link

aminoed commented Jan 19, 2024

Does anyone know why the OSM2ODR.bat file on line 112 does not appear for me:

cmake -G %GENERATOR% %PLATFORM%^

It seems that my OSM2ODR.bat file has been build in a different way than expected... Instead of that, this is my OSM2ODR.bat file:

#! /bin/bash DOC_STRING="Build OSM2ODR."

USAGE_STRING=$(cat <<- END Usage: $0 [-h|--help]

commands

[--clean]    Clean intermediate files.
[--rebuild]  Clean and rebuild both configurations.

END )

REMOVE_INTERMEDIATE=false BUILD_OSM2ODR=false GIT_PULL=true CURRENT_OSM2ODR_COMMIT=1835e1e9538d0778971acc8b19b111834aae7261 OSM2ODR_BRANCH=aaron/defaultsidewalkwidth OSM2ODR_REPO=https://github.com/carla-simulator/sumo.git

OPTS=getopt -o h --long help,rebuild,build,clean,carsim,no-pull -n 'parse-options' -- "$@"

eval set -- "$OPTS"

while [[ $# -gt 0 ]]; do case "$1" in --rebuild ) REMOVE_INTERMEDIATE=true; BUILD_OSM2ODR=true; shift ;; --build ) BUILD_OSM2ODR=true; shift ;; --no-pull ) GIT_PULL=false shift ;; --clean ) REMOVE_INTERMEDIATE=true; shift ;; -h | --help ) echo "$DOC_STRING" echo "$USAGE_STRING" exit 1 ;; * ) shift ;; esac done

source $(dirname "$0")/Environment.sh

function get_source_code_checksum { local EXCLUDE='pycache' find "${OSM2ODR_SOURCE_FOLDER}"/* ! -path "${EXCLUDE}" -print0 | sha1sum | awk '{print $1}' }

if ! { ${REMOVE_INTERMEDIATE} || ${BUILD_OSM2ODR}; }; then fatal_error "Nothing selected to be done." fi

==============================================================================

-- Clean intermediate files --------------------------------------------------

==============================================================================

if ${REMOVE_INTERMEDIATE} ; then

log "Cleaning intermediate files and folders."

rm -Rf ${OSM2ODR_BUILD_FOLDER}*

fi

==============================================================================

-- Build library -------------------------------------------------------------

==============================================================================

if ${BUILD_OSM2ODR} ; then log "Building OSM2ODR."

[ ! -d ${OSM2ODR_BUILD_FOLDER} ] && mkdir ${OSM2ODR_BUILD_FOLDER}

if ${GIT_PULL} ; then if [ ! -d ${OSM2ODR_SOURCE_FOLDER} ] ; then git clone -b ${OSM2ODR_BRANCH} ${OSM2ODR_REPO} ${OSM2ODR_SOURCE_FOLDER} fi cd ${OSM2ODR_SOURCE_FOLDER} git fetch git checkout ${CURRENT_OSM2ODR_COMMIT} fi

mkdir -p ${OSM2ODR_BUILD_FOLDER} cd ${OSM2ODR_BUILD_FOLDER}

export CC="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang" export CXX="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++" export PATH="$UE4_ROOT/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v17_clang-10.0.1-centos7/x86_64-unknown-linux-gnu/bin:$PATH"

cmake ${OSM2ODR_SOURCE_FOLDER} -G "Eclipse CDT4 - Ninja" -DCMAKE_CXX_FLAGS="-stdlib=libstdc++" -DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_CLIENT_FOLDER} -DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install/include -DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install/lib/libproj.a -DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install/include -DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install/lib/libxerces-c.a

ninja osm2odr ninja install

mkdir -p ${OSM2ODR_SERVER_BUILD_FOLDER} cd ${OSM2ODR_SERVER_BUILD_FOLDER}

LLVM_BASENAME=llvm-8.0 LLVM_INCLUDE="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1" LLVM_LIBPATH="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu"

echo $LLVM_INCLUDE echo $LLVM_LIBPATH

cmake ${OSM2ODR_SOURCE_FOLDER} -G "Eclipse CDT4 - Ninja" -DCMAKE_CXX_FLAGS="-fPIC -std=c++14 -stdlib=libc++ -I${LLVM_INCLUDE} -L${LLVM_LIBPATH}" -DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_SERVER_FOLDER} -DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install-server/include -DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install-server/lib/libproj.a -DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/include -DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/lib/libxerces-c.a

ninja osm2odr ninja install

mkdir -p ${OSM2ODR_SERVER_BUILD_FOLDER} cd ${OSM2ODR_SERVER_BUILD_FOLDER}

LLVM_BASENAME=llvm-8.0 LLVM_INCLUDE="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/include/c++/v1" LLVM_LIBPATH="$UE4_ROOT/Engine/Source/ThirdParty/Linux/LibCxx/lib/Linux/x86_64-unknown-linux-gnu"

cmake ${OSM2ODR_SOURCE_FOLDER} -G "Eclipse CDT4 - Ninja" -DCMAKE_CXX_FLAGS="-fPIC -std=c++14 -stdlib=libc++ -I${LLVM_INCLUDE} -L${LLVM_LIBPATH}" -DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_SERVER_FOLDER} -DPROJ_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/proj-install-server/include -DPROJ_LIBRARY=${CARLA_BUILD_FOLDER}/proj-install-server/lib/libproj.a -DXercesC_INCLUDE_DIR=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/include -DXercesC_LIBRARY=${CARLA_BUILD_FOLDER}/xerces-c-3.2.3-install-server/lib/libxerces-c.a

ninja osm2odr ninja install

fi

log " OSM2ODR Success!"

That's the "BuildOSM2ODR.sh" File, not the bat file.

@juanrodriguezdekra
Copy link

juanrodriguezdekra commented Jan 22, 2024

Yes, you are right. I then proceeded to change the command on line 112 to:
cmake -G %GENERATOR% -A x64^

In the PythonAPI make everything was correct and without incident.
make PythonAPI without errors
But in the make launch I got:
D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Sensor/SceneCaptureSensor.h(15): fatal error C1083: No se puede abrir el archivo incluir: 'Renderer/Public/GBufferView.h': No such file or directory
make: *** [CarlaUE4Editor] Error 6

error make launch

This is the new point I'm stuck at, in case anyone knows how to get out of here.

@juanrodriguezdekra
Copy link

Yes, you are right. I then proceeded to change the command on line 112 to: cmake -G %GENERATOR% -A x64^

In the PythonAPI make everything was correct and without incident. make PythonAPI without errors But in the make launch I got: D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Sensor/SceneCaptureSensor.h(15): fatal error C1083: No se puede abrir el archivo incluir: 'Renderer/Public/GBufferView.h': No such file or directory make: *** [CarlaUE4Editor] Error 6

error make launch

This is the new point I'm stuck at, in case anyone knows how to get out of here.

The problem of D:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Sensor/SceneCaptureSensor.h(15): fatal error C1083: Cannot open file include: 'Renderer/Public/GBufferView.h' : No such file or directory
resides in the branch in which it is being built. This way you can fix it:
Clone the repository, make sure you are on the "carla" branch and make sure you rebuild the engine afterwards. Then rebuild Carla version 0.9.15. This should solve the problem.

The GBufferView header cannot be compiled because it is not found in the standard version of Unreal Engine. It is something that has been added to Carla's branch. If you do a git diff between both versions of standard Unreal and Carla's, you'll notice that there are only a few changes, and the addition of GBufferView is one of them.

The solution is reinstalling UE4 and Carla folder from the begining, and that is all.

@Avinashnr
Copy link

same issue for me. I changed .\Util\BuildTools\BuildOSM2ODR.bat line 112 from

    cmake -G %GENERATOR% %PLATFORM%^

to

    cmake -G %GENERATOR% -A x64^

then the error: CMake Error: The source directory "C:/build-carla/carla-0.9.15/Build/osm2odr-visualstudio/x64" does not exist. disappeared, and make PythonAPI successed.

hope this helps

Thanks it worked!

@zhanz5
Copy link

zhanz5 commented Sep 12, 2024

same issue for me. I changed .\Util\BuildTools\BuildOSM2ODR.bat line 112 from

    cmake -G %GENERATOR% %PLATFORM%^

to

    cmake -G %GENERATOR% -A x64^

then the error: CMake Error: The source directory "C:/build-carla/carla-0.9.15/Build/osm2odr-visualstudio/x64" does not exist. disappeared, and make PythonAPI successed.

hope this helps

After I run this, I get this. I don't know why

dependencies/include\carla/road/element/RoadInfoMarkRecord.h(1): warning C4819: 该文件包含不能在当前代码页(936)中表示的 字符。请将该文件保存为 Unicode 格式以防止数据丢失
"D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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:\ProgramData\anaconda3\libs /LIBPATH:D:\ProgramData\anaconda3 /LIBPATH:D:\ProgramData\anaconda3\PCbuild\amd64 "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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-312\Release\source/libcarla/libcarla.obj /OUT:build\lib.win-amd64-cpython-312\carla\libcarla.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\source/libcarla\libcarla.cp312-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_80.lib D:\carla\PythonAPI\carla\dependencies/lib\libpng.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
正在创建库 build\temp.win-amd64-cpython-312\Release\source/libcarla\libcarla.cp312-win_amd64.lib 和对象 build\temp.win-amd64-cpython-312\Release\source/libcarla\libcarla.cp312-win_amd64.exp
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)" (??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: 无法解析的外部符号 "void __cdecl boost::python::converter::throw_no_pointer_from_python(struct _object *,struct boost::python::converter::registration const &)" (?throw_no_pointer_from_python@converter@python@boost@@YAXPEAU_object@@AEBUregistration@123@@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 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 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,unsigned __int64)" (?allocate@instance_holder@python@boost@@SAPEAXPEAU_object@@_K11@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 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 __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 __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 const &,class boost::python::handle 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 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-cpython-312\carla\libcarla.cp312-win_amd64.pyd : fatal error LNK1120: 78 个无法解析的外部命令
error: command 'D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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 "D:\carla\PythonAPI\carla\dist"!

@Lyanyv
Copy link

Lyanyv commented Sep 12, 2024

@Jenson66 Rerun make PythonAPI, it should work then.

@qshjd-123
Copy link

I encountered the same problem, how did you solve it?

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