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

B2 ERROR with "make PythonAPI" and "make launch" #4535

Open
ThibaultFy opened this issue Aug 13, 2021 Discussed in #4534 · 18 comments
Open

B2 ERROR with "make PythonAPI" and "make launch" #4535

ThibaultFy opened this issue Aug 13, 2021 Discussed in #4534 · 18 comments
Assignees
Labels
build system Changes related to the build system

Comments

@ThibaultFy
Copy link

Discussed in #4534

Originally posted by ThibaultFy August 13, 2021
I'm having trouble with my Windows build for 0.9.12. I'm getting the following message:

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

Thanks for your help !

@ThibaultFy
Copy link
Author

ThibaultFy commented Aug 13, 2021

My problem solved itself by removing the build folder and changing the path on my repo... I don't have more explanation than this...

@TrinhTuanHung2021
Copy link

TrinhTuanHung2021 commented Aug 14, 2021

My problem solved itself by removing the build folder and changing the path on my repo... I don't have more explanation than this...

Hi
Could you guide me on how to do "make pythonAPI" command? I run it on X64 native tool command prompt but it crashes all the time. Thanks

@ThibaultFy
Copy link
Author

Hi
Could you guide me on how to do "make pythonAPI" command? I run it on X64 native tool command prompt but it crashes all the time. Thanks

Hi, I can't really help you from scratch, but you may find a lot of information on the Carla website, discord or github. If you have a recurrent issue, maybe you should open a specific one with detailed in order to ask for help to the carla community :)

@vinayakap
Copy link

My problem solved itself by removing the build folder and changing the path on my repo... I don't have more explanation than this...

Hi

I'm having same issue.... I deleted build folder and it is partially working, but want to know what you mean by "changing path on my repo"? I wanna give it a try to see if it works

@vinayakap
Copy link

vinayakap commented Aug 26, 2021


** Visual Studio 2019 Developer Command Prompt v16.11.1
** Copyright (c) 2021 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>D:

D:>cd CARLA\carla

D:\CARLA\carla>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "D:\CARLA\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "D:\CARLA\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "D:\CARLA\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "D:\CARLA\carla\Build" --zlib-install-dir "D:\CARLA\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "D:\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 "D:\CARLA\carla\Build"
-[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 15 2017 Win64**

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "D:/CARLA/carla/Build/rpclib-src/build/CMakeFiles/CMakeOutput.log".

-[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...

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

i always get this error, it's looking for VS2017, but i've VS2019

@BedirhanKeskin
Copy link

I also have the same problem with @ThibaultFy for Windows Build. Carla version is 0.9.12

@khemrind-idsi
Copy link

I'm having the same issue with 0.9.12. I've followed the latest docs for building in Windows, but this error keeps occurring:

C:\UnrealProjects\CARLA\Build\boost-1.72.0-source\boost\compatibility\cpp_c_headers\cwctype
        1 file(s) copied.
...failed updating 1 target...
...skipped 4 targets...
...updated 15297 targets...
    -[install_boost]: [B2 ERROR] An error ocurred while installing using "b2.exe".
    -[install_boost]: Exiting with error...

@BedirhanKeskin
Copy link

I was having the error when I run "make Launch". I downgraded the python version to 3.8.10 from 3.10. I reinstalled CMake, Make. Then I applied the document from Part Two: Build CARLA. Now, there is no error b2.exe error.

@khemrind-idsi
Copy link

@BedirhanKeskin Downgrading python from 3.10 to 3.8.10 was the solution for me. Thanks!

@vini-at-potential
Copy link

Same here, had to downgrade from Python 3.10 to 3.8.10 to make it work. I did not try Python 3.9.6 though, so don't know which is the latest python version possible.

@MattRowe18 MattRowe18 added the build system Changes related to the build system label Dec 1, 2021
@hche8927
Copy link

Same here, the issue was likely caused by Python 3.10, installing Python 3.9.9 fixed it for me.

@lyjlalala
Copy link

lyjlalala commented Mar 10, 2022

1
As the screenshot shows, I got the setup error when I was typing "make PythonAPI".
My setting:

  • carla: 0.9.13
  • Windows 10 (not linux in ubuntu)
  • VS: 2019 with additional elements.
  • Make: GNU Make 3.81
  • CMake: 3.23.0-rc2
  • Python: 3.8.8
    I'm not sure what causes this error, can anyone help?

@ruixuanz
Copy link

1 As the screenshot shows, I got the setup error when I was typing "make PythonAPI". My setting:

  • carla: 0.9.13
  • Windows 10 (not linux in ubuntu)
  • VS: 2019 with additional elements.
  • Make: GNU Make 3.81
  • CMake: 3.23.0-rc2
  • Python: 3.8.8
    I'm not sure what causes this error, can anyone help?

Same issue here. Have you found a solution?

@RafesiA
Copy link

RafesiA commented Sep 2, 2022

I really sorry for my bad english skill first.

I solved this issue by other way.

The bottom line is unzip boost_1_72_0.zip manually and paste it into `boost-1.72.0-source'

make launch or make PythonAPI, processes will create carla/Build/boost_1_72_0.zip. and expanding. When which task done, PowerSheel throw b2.exe error like this.

So i tried b2.exe --help in PowerShell, it throw error 'unable to load boost.build: could not find "boost-build.jam"'

I guess it should be missing files when expanding on PowerShell. and checked downloaded zip file, compare with unziped folder. finally i found some files are missed while exapnding on PowerShell.

That's it. i just unzip boost_1_72_0.zip manually, and it does work.

don't forget excute bootstrap.bat for create b2.exe

@Ja20019
Copy link

Ja20019 commented Sep 12, 2022

this issue was caused by Python 3.10, to remove python 3.10 then install python 3.8 to fix it.

@stale
Copy link

stale bot commented Jun 2, 2023

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

@stale stale bot added the stale Issue has not had recent activity label Jun 2, 2023
@fontray
Copy link

fontray commented Oct 30, 2024

I'm having the same issue. I've followed the latest docs for building in Windows, but this error keeps occurring:
螢幕擷取畫面 2024-10-30 081358
My setting:

  • carla: 0.9.15
  • Windows 11
  • VS: 2022 with additional elements.
  • Make: GNU Make 3.81
  • CMake: 3.30.2
  • Python: 3.8.0

I already try unzip boost_1_80_0.zip manually and excute bootstrap.bat , but it doesn't work
I'm not sure what causes this error, can anyone help?

@stale stale bot removed the stale Issue has not had recent activity label Oct 30, 2024
@T1murY
Copy link

T1murY commented Nov 6, 2024

I'm having the same issue. I've followed the latest docs for building in Windows, but this error keeps occurring: 螢幕擷取畫面 2024-10-30 081358 My setting:

* carla: 0.9.15

* Windows 11

* VS: 2022 with additional elements.

* Make: GNU Make 3.81

* CMake: 3.30.2

* Python: 3.8.0

I already try unzip boost_1_80_0.zip manually and excute bootstrap.bat , but it doesn't work I'm not sure what causes this error, can anyone help?

I have this issue as well exactly the same, ı have followed this #7082 (comment) issue to here and stuck here any solution?
image

it seems that the issue comes from here when ı try to run b2 manually
error: Name clash for 'pC:\carla\Build\boost-1.80.0-source\stage\libboost_filesystem-vc143-mt-gd-1_80.lib'
error:
error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error: "- 32"
error: "- 64"
error:
error: Please make sure to have consistent requirements for these
error: properties everywhere in your project, especially for install
error: targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Changes related to the build system
Projects
None yet
Development

No branches or pull requests