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

Building on Windows 0.8.X #21

Closed
nsubiron opened this issue Nov 13, 2017 · 112 comments
Closed

Building on Windows 0.8.X #21

nsubiron opened this issue Nov 13, 2017 · 112 comments
Assignees

Comments

@nsubiron
Copy link
Collaborator

nsubiron commented Nov 13, 2017

This issue have changed alot since it was opened. Take your time to investigate ;)

New and automated instructions

Now exists an automated way to use and modify CARLA in Windows!
Take a look into our documentation: HOW TO BUILD ON WINDOWS

Before posting in this issue:

  • Make sure you have readed the documentation.
  • Search for similar comments (just a quick ctrl+F search).
  • Make sure you use the correct Unreal Engine version.

If your questions satisfy the previous points, we will be glad to answer them. 😬

Discord

Consider join our discord channel for a further talk.
We have a Windows specific channel.
discord


Old instructions

@yocabon provided some great PowerShell scripts: Win64BuildScripts.zip.

We are working for adding these scripts to CARLA. Please comment if you have any trouble using them.


Directions for building on Windows (not automated)

Install Unreal Engine 4.17 and Visual Studio 2015. (Later versions of Visual Studio work too).

Some Linux utilities are required (like make, cmake, rm…), it is best if you have some Linux environment like Cygwin installed.

The dependencies should be built and installed under "Util/Build" folder as follows

Util/
  Build/
    boost-install/
    protobuf-install/
Build CarlaServer

Open a cmd.exe in the root folder of CARLA. Setup the environment calling vcvarsall.bat. If you have Visual Studio 2015 you can call it with (don’t forget the amd64 at the end)

$ "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

Then just run make and should work

$ make

If everything goes well, CarlaServer should have been installed under "Unreal/CarlaUE4/Plugins/Carla/CarlaServer".

Build and launch CARLAUE4

At this point, double-clicking on "Unreal/CarlaUE4/CarlaUE4.uproject" should work. A warning about Carla plugin being not compatible appears sometimes, it’s an Unreal’s bug and can be ignored, press "no" to disable Carla plugin. Then press yes when asked to compile the missing modules.

If that doesn’t work, you can open the project with Visual Studio. Right click the "CarlaUE4.uproject" and select "Generate Visual Studio Project Files". Then open the Visual Studio solution it generates (*.sln). Hopefully this will give some hints on what fails.

@fangjin-cool
Copy link

when Build CarlaServer with $ make
but How can I "make" in win10? I can`t find that command, and I get "makefile(8) : fatal error U1034" when I use nmake.

@yocabon
Copy link

yocabon commented Nov 16, 2017

The powershell scripts provided should work without the make command.
In order to use "make" you need a Linux like environment (cygwin...).

@fangjin-cool
Copy link

sorry, I miss the script for build CarlaServer ^_^, Thank you so much ~

@black3r
Copy link

black3r commented Dec 19, 2017

suggestions for the powershell scripts:

  • Install 7Zip with -Scope CurrentUser.. that way administrative rights are not needed.
  • return to the original directory after successfully ending the script. Now when I run the ./Setup.ps1 I end up in /Util/Build and then I need to cd down to launch ./BuildServer.ps1

@eds89
Copy link

eds89 commented Jan 10, 2018

Where can I download Unreal Engine version 4.17 exactly? I can only find 4.17.6 from the Epic Megagames installer.

@black3r
Copy link

black3r commented Jan 10, 2018

if the third version number is not specified, it should not matter, so 4.17.6 should be ok..

@nsubiron
Copy link
Collaborator Author

@eds89 @black3r Yes, any subversion of 4.17 should work. If you want to go safe 4.17.2 has been tested.

@eds89
Copy link

eds89 commented Jan 10, 2018 via email

@YCU-Masaki
Copy link

YCU-Masaki commented Jan 18, 2018

It seems that I succeeded building with powershell, but BuildServer.ps1 couldn't work.
I got a message that is
"CMake Error: The source directory "C:/Users/masaki/Downloads/Win64BuildScripts/Util/cmake" does not appear to contain CMakeLists.txt."
Actually this file doesn't exist in this directory.
How can I deal with this>

@nsubiron
Copy link
Collaborator Author

@android-masaki The PowerShell scripts are meant to be run inside CARLA project folder. First clone the CARLA project and copy the scripts in that folder.

@josheligoldman
Copy link

Could somebody please just explain to me in simple words how to install Carla.

@black3r
Copy link

black3r commented Jan 28, 2018

  1. Install the pre-requisites (Visual Studio 2015, Unreal Engine 4.17.*)
  2. Download Carla
  3. Download the PowerShell scripts from the top of this page
  4. Make sure you've got ~40GB free HDD space
  5. Extract Carla somewhere and extract the scripts into the same folder. There should be Setup.sh, Setup.ps1 and Setup.cmd next to each other.
  6. Run an elevated (admin) PowerShell prompt in the directory.
  7. Run Setup.ps1 in the prompt
  8. Run BuildServer.ps1 in the prompt
  9. Download automotive materials from Unreal marketplace following the guide on wiki https://carla.readthedocs.io/en/latest/how_to_add_automotive_materials/
  10. Open {CARLA}/Unreal/CarlaUE4/CarlaUE4.uproject in Unreal Engine. (You may encounter some errors or warnings, but you should be able to ignore them.).
  11. Press "Launch" (not "Play")
  12. Wait until it builds (takes a loong time) and runs Carla
  13. Now you've got Carla installed in {CARLA}/Unreal/CarlaUE4/Saved/StagedBuilds/WindowsNoEditor and can launch it with CarlaUE4.exe from that directory using the same console commands as described in the wiki for ./CarlaUE4.sh

If I've forgot something, maybe someone can correct me..., If anyone finds this guide to work, maybe we could put it on the wiki instead of "Coming soon"?

@josheligoldman
Copy link

when I run Setup.ps1 I get the following error:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe does not exist

@nsubiron
Copy link
Collaborator Author

@black3r
Copy link

black3r commented Jan 29, 2018

@josheligoldman @nsubiron you don't need to setup the environment, the script does that for you.., and it looks like that environment setup part of the script is what doesn't work for you.., the thing is the script is hard-wired to use Visual Studio 2015, that has the cl.exe in folder C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\

so if you want to use the automated script, you need to use Visual Studio 2015, and you have to have the C++ components installed (i think it is possible now to install only C#)

@yocabon
Copy link

yocabon commented Jan 29, 2018

You either need Visual Studio 2015 or Visual Studio 2017 with visual C++ 2015 build tools installed.
By default, the scripts are looking for vcvars64.bat inside "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC".

You change change that behavior by adding the argument -VCPath "YourDrive:/YourPath/Microsoft Visual Studio 14.0/VC".

Example

.\BuildServer.cmd -VCPath "D:/Programs/Microsoft Visual Studio 14.0/VC"

Building CarlaServer
Getting MSVC environment from D:\Programs\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat
...

@razza-tu
Copy link

Hi everyone,

I have followed all of the above instructions in attempting this installation, but when trying to run the project, I am told that I am missing:

  • UE4Editor-CarlaUE4.dll

  • UE4Editor-Carla.dll

At which point of the build should these have been created? I have been using the PowerShell scripts provided at the top of this page.

@davidSedlacek
Copy link

Hello everyone.

I had successfully build Carla on Win2012 server with Visual Studio 2015, thanks to the provided scripts
( @nsubiron ) and then thanks to @black3r I prepared the Caral executable. -super :)

I would like to mention, that for the successful run of python client it is necessary to install several python libraries. I did not find them in any description. So I put the list here:

pip install pygame
pip install numpy
pip install protobuf
pip install pillow

@nsubiron
Copy link
Collaborator Author

@razza-tu These two libraries are compiled by Unreal, when opening the project it usually asks if you want to rebuild them, just click "yes". Then the project will open after compilation if there were no errors.

@davidSedlacek True, this is mentioned in the How to run guide, but not here. You could also get all dependencies at once with

pip install -r PythonClient/requirements.txt

@razza-tu
Copy link

@nsubiron Thanks for your reply. I have tried building these files with Unreal, exactly as you described. Unfortunately, my compiler crashes mid-build. The error reads as follows:

C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla\MapGen\DoublyConnectedEdgeList.cpp(47): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1507)
To work around this problem, try simplifying or changing the program near the locations listed above.

@nsubiron
Copy link
Collaborator Author

nsubiron commented Jan 30, 2018

@razza-tu Hmm yes, I've seen this before. Can you change in line 47 of "DoublyConnectedEdgeList.cpp" the decltype(a) to float? VS compiler doesn't like that.

--- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp
+++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/MapGen/DoublyConnectedEdgeList.cpp
@@ -44,7 +44,7 @@ namespace MapGen {
     using Dcel = DoublyConnectedEdgeList;
     // from [-pi, pi] to [0, 1].
     auto normalize = [](auto a) {
-      constexpr decltype(a) twoPi = 2.0 * 3.14159265359;
+      constexpr float twoPi = 2.0 * 3.14159265359;
       a /= twoPi;
       while (a >= 1.0) a -= 1.0;
       while (a <  0.0) a += 1.0;

Let me know if it works and I will change the code.

EDIT: This is now fixed in "master" branch.

@razza-tu
Copy link

razza-tu commented Jan 30, 2018

This fixed the problem for UE4Editor-CarlaUE4.dll.

However, UE4Editor-Carla.dll was still not created in this process. I am not given an error message for this. Just told that it couldn't be built.

When asked if I want to disable the plugin, if I respond "Yes", the project starts initialising. This process reaches 45% before telling me that UE4Editor-Carla.dll was not found, triggering an error.

Do you recognise this problem too, per chance?

(Thanks for your help so far, btw)

@nsubiron
Copy link
Collaborator Author

You are supposed to respond "No" to disable the plugin. That might be the issue.

If it keeps giving errors you can open the project with Visual Studio for debugging. Right click "Unreal/CarlaUE4/CarlaUE4.uproject" and select "Generate Visual Studio project files". Then open the generated .sln with Visual Studio and build the solution.

@razza-tu
Copy link

razza-tu commented Jan 30, 2018

I tried this initially. The log disappears before I can capture any information, and I am left with the message:

CarlaUE4 could not be compiled. Try rebuilding from source manually.

Trying the Visual Studio approach now.

@ishaan95
Copy link

ishaan95 commented Aug 5, 2022

Make PythonAPI error: "system cannot find the path specified" During make PythonAPI & at the installing zlib step, there is an error that says "cannot find the path specified". Does anybody know what path it is looking for and how to fix this issue? Make PythonAPI error

It's trying to install zlib at the carla/Build path on the line above. I think the directory path should be something that starts with D:/ (as seen to the left of make PythonApi command).

@AngelaC5
Copy link

AngelaC5 commented Aug 5, 2022

Make PythonAPI error: "system cannot find the path specified" During make PythonAPI & at the installing zlib step, there is an error that says "cannot find the path specified". Does anybody know what path it is looking for and how to fix this issue? Make PythonAPI error

It's trying to install zlib at the carla/Build path on the line above. I think the directory path should be something that starts with D:/ (as seen to the left of make PythonApi command).

Yeah, it seems so. The directory path is wrong. I'm not really sure why it is changed... I'll look into it. Thanks.

@Nighttell
Copy link

@fuzailpalnak
Copy link

Type = zip
Physical Size = 198681558
64-bit = +
Characteristics = Zip64

Everything is Ok

Folders: 6752
Files: 72069
Size:       710168359
Compressed: 198681558
    -[install_boost]: Removing "boost_1_80_0.zip"
Access is denied.
The system cannot find the path specified.
    -[install_boost]: Generating build...
'bootstrap.bat' is not recognized as an internal or external command,
operable program or batch file.

    -[install_boost]: [BOOTSTRAP ERROR] An error ocurred while executing "bootstrap.bat".
    -[install_boost]: Exiting with error...

-[Setup]:
   Ok, and error ocurred, don't panic!
   We have different platforms where you can find some help :)

   - Make sure you have read the documentation:
       http://carla.readthedocs.io/en/latest/how_to_build_on_windows/

   - If the problem persists, you can ask on our Github's "Building on Windows" issue:
       https://github.com/carla-simulator/carla/issues/21

   - Or just use our Discord channel!
       We'll be glad to help you there :)
       https://discord.gg/42KJdRj
make: *** [setup] Error 1

Can someone help me with this issue

@debipe20
Copy link

debipe20 commented Jun 5, 2023

Any suggestions?

C:\Users\ddas\Documents\carla>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Asynchronous jobs: 12
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Install directory: "C:\Users\ddas\Documents\carla\Build"
-[Setup]: Creating "C:\Users\ddas\Documents\carla\Build" folder...
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\Users\ddas\Documents\carla\Build"
-[install_zlib]: Retrieving zlib.
-[install_zlib]: Extracting zlib from "zlib-1.2.13.zip".
-[install_zlib]: Removing "zlib-1.2.13.zip"
-[install_zlib]: Creating "C:\Users\ddas\Documents\carla\Build\zlib-source\build"
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/ddas/Documents/carla/Build/zlib-source/build/CMakeFiles/CMakeScratch/TryCompile-unc326

Run Build Command(s):C:/Program Files/CMake/bin/cmake.exe -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_b8314\fast &&     C:\Program Files (x86)\GnuWin32\bin  -f CMakeFiles\cmTC_b8314.dir\build.make /nologo -L                  CMakeFiles\cmTC_b8314.dir\build
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
Stop.

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)

-- Configuring incomplete, errors occurred!

-[install_zlib]: [CMAKE ERROR] An error ocurred while executing cmake command.
-[install_zlib]: [CMAKE ERROR] Possible causes:
-[install_zlib]:                - Make sure "CMake" is installed.
-[install_zlib]:                - Make sure it is available on your Windows "path".
-[install_zlib]:                - Make sure you have cmake 3.12.4 or higher installed.
-[install_zlib]: Exiting with error...

-[Setup]:
Ok, and error ocurred, don't panic!
We have different platforms where you can find some help :)

@kenblu24
Copy link

kenblu24 commented Nov 27, 2023

@debipe20 I was able to solve this issue by ensuring that the appropriate Windows SDK is installed, and that it is in the path. To verify that this is the issue, try where rc in the console. If it can't find the file, then install the appropriate Windows SDK and add it to the path:

  1. Using your Visual Code (VC) installer that you used to install VC (I'm using 2019), go Modify > Individual Components > Search for Windows SDK and select Windows 11 SDK (10.0.22000.0).
  2. Add C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64 to your path. This is where rc.exe, rcdll.dll, and ServicingCommon.dll are. You can do this by going to Start>"Edit the system environment variables" (System Properties)>Environment Variables>User variables>Path>Edit>New><>
  3. Try building again

Version info: I experienced this issue (failing to build zlib-source) trying to make PythonAPI for both Carla 0.9.14 and Carla 0.9.15 on Windows 11 x64 22631 with Python 3.11.6 with cmake 3.26.4 using Visual Studio Community 2019 with VS 2015 C++ build tools (v14.00) and Windows 11 SDK (10.0.22000.0) (among other things).

Note:
I recently experienced the same issue while trying to build cfclient (a completely different program) with VC 22, and in that instance, it was okay to copy the above files to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin, but this was not enough for building CARLA.

See Also:

@kenblu24
Copy link

Hi all, I'm getting an issue during make PythonAPI. The dependencies seem to have installed correctly, but I get the following printout.

(see above comment for my version info)

-[Setup]: Creating "CMakeLists.txt.in"...
-[Setup]:
   ###########
   # SUCCESS #
   ###########

   IMPORTANT

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

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

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

       http://carla-assets.s3.amazonaws.com/20231108_c5101a5.tar.gz

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

-[BuildLibCarla]: [Batch params]: --server --client --generator ""
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 6.2.9200.
-- Build debug:   ON
-- Build release: ON
-- Build test:    ON
-- Configuring done (0.1s)
-- Generating done (0.5s)
-- Build files have been written to: D:/carla/carla/Build/libcarla-visualstudio
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  carla_server.vcxproj -> D:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server.lib
  carla_server_debug.vcxproj -> D:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server_debug.lib
  -- Install configuration: "Release"
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 6.2.9200.
-- Build debug:   ON
-- Build release: ON
-- Build test:    ON
-- Configuring done (0.0s)
-- Generating done (0.5s)
-- Build files have been written to: D:/carla/carla/Build/libcarla-visualstudio
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  carla_client.vcxproj -> D:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib
  carla_client_debug.vcxproj -> D:\carla\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib
  -- Install configuration: "Release"
-[BuildLibCarla]: LibCarla server has been successfully installed in "D:\carla\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies\"!
-[BuildLibCarla]: LibCarla client has been successfully installed in "D:\carla\carla\PythonAPI\carla\dependencies\"!
-[BuildOSM2ODR]: [Batch params]: --generator "" --build --all
HEAD is now at 1835e1e9538 Remove logs
CMake Warning:
  Ignoring extra path from command line:

   "D:\carla\carla\Build\om2odr-source""


CMake Error: The source directory "D:/carla/carla/Build/osm2odr-visualstudio/X64" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Error: could not load cache
The system cannot find the file specified.
The system cannot find the file specified.
-[BuildOSM2ODR]: OSM2ODR has been successfully installed in "D:\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
C:\Users\kenbl\AppData\Local\Programs\Python\Python311\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
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Idependencies/include -IC:\Users\kenbl\AppData\Local\Programs\Python\Python311\include -IC:\Users\kenbl\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" /EHsc /Tpsource/libcarla/libcarla.cpp /Fobuild\temp.win-amd64-cpython-311\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
cl : Command line warning D9002 : ignoring unknown option '/experimental:external'
cl : Command line warning D9002 : ignoring unknown option '/external:W0'
cl : Command line warning D9002 : ignoring unknown option '/external:I'
cl : Command line warning D9024 : unrecognized source file type 'dependencies/include/system', object file assumed
cl : Command line warning D9027 : source file 'dependencies/include/system' ignored
libcarla.cpp
dependencies/include\carla/Memory.h(9): fatal error C1083: Cannot open include file: 'boost/enable_shared_from_this.hpp': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\cl.exe' failed with exit code 2

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

D:\carla\carla>

I've checked, and the file exists in D:\carla\carla\Build\boost-1.80.0-install\include\boost\enable_shared_from_this.hpp

@Rohantpawar
Copy link

Rohantpawar commented Feb 13, 2024

The system cannot find the path specified.
0 file(s) copied.
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "C:\UnrealEngine_CARLA\CARLA\carla\Build" --zlib-install-dir "C:\UnrealEngine_CARLA\CARLA\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "C:\UnrealEngine_CARLA\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 "C:\UnrealEngine_CARLA\CARLA\carla\Build" --generator "Visual Studio 16 2019"
-[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
-[install_rpclib]: Generating build...
CMake Error at CMakeLists.txt:2 (project):
Generator

Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!

-[install_rpclib]: [CMAKE ERROR] An error ocurred while executing the cmake.
-[install_rpclib]: [CMAKE ERROR] Possible causes:
-[install_rpclib]:                - Make sure "CMake" is installed.
-[install_rpclib]:                - Make sure it is available on your Windows "path".
-[install_rpclib]:                - CMake 3.9.0 or higher is required.
-[install_rpclib]: Exiting with error...

I am getting this error during build carla make Python API any solution to this

@Emilyhelin122
Copy link

I am trying to lauch carla 0.9.13 UE4.26 on windows10 using visual studio 2022 with all the requirements for carla satisfied. I have no prior UE5.3 build/installation. I am struggling in running . I would really appreciate it if you can give me some clues to solve it😭 I have checked the UE4_ROOT but it only changed from ERROR 1 to ERROR 6
Screenshot 2024-07-06 202610

@Emilyhelin122
Copy link

This is the full error.
error6.txt

@F4uZZy03
Copy link

F4uZZy03 commented Sep 3, 2024

image
I'm having this problem with CMAKE. I've already made a new path, but it keeps showing the error.

@IsYang23
Copy link

IsYang23 commented Sep 9, 2024

Anyone met this error when running make pythonAPI GENERATOR="Visual Studio 17 2022"
Please help me solve this issue.
Thanks

-[install_boost]: [B2 ERROR] An error ocurred while installing using "b2.exe".
-[install_boost]: Exiting with error...

-[Setup]:
Ok, and error ocurred, don't panic
We have different platforms where you can find some help :)

@hitmaster999
Copy link

hitmaster999 commented Sep 25, 2024

"git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git ." is already invalid

@Siddhartha80
Copy link

Siddhartha80 commented Nov 23, 2024

image
facing error B2 while executing make PythonAPI

Please guide me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests