Windows

Building Carla 9 11 on Windows Error LNK2038 on make PythonAPI



Download this code from
CARLA, an open-source simulator for autonomous driving research, provides a Python API for interacting with the simulation environment. However, when building CARLA 0.9.11 on Windows, you might encounter the LNK2038 error during the compilation of the PythonAPI. This tutorial will guide you through the process of building CARLA 0.9.11 on Windows and address the LNK2038 error.
Before you begin, ensure that you have the following prerequisites installed on your system:
Navigate to the Util directory and run the Setup.bat script.
Next, generate the Visual Studio project files.
Open the generated UE4.sln solution in Visual Studio. Build the solution in both Development Editor and Development Server configurations.
Return to the CARLA root directory and execute the following commands:
This script will download additional dependencies and generate the necessary files for the CARLA build.
If you encounter the LNK2038 error during the PythonAPI build, proceed to the next step.
The LNK2038 error indicates a mismatch between the compiler and linker versions. To resolve this, follow these steps:
Open the Carla/Unreal/CarlaUE4/Intermediate/ProjectFiles/UE4.vcxproj file in a text editor.
Locate the following lines:
Replace your_toolset_version and your_windows_version with the appropriate values. For example:
Save the file and close the text editor.
Re-run the make PythonAPI command.
You have successfully built CARLA 0.9.11 on Windows and resolved the LNK2038 error during the PythonAPI compilation. You can now use CARLA for your autonomous driving research and development. If you encounter any further issues, refer to the official CARLA documentation and community forums for additional support.
ChatGPT

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button