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

make PythonAPI #6248

Open
arjunsk07 opened this issue Feb 24, 2023 · 8 comments
Open

make PythonAPI #6248

arjunsk07 opened this issue Feb 24, 2023 · 8 comments

Comments

@arjunsk07
Copy link

CARLA version: 0.9.13
Platform/OS: windows 10

When I am giving the command make PythonAPI, it is not getting successfull, it is throwing error in the BuildPythonAPI section saying that it is unable to create process and points out to a location which actually doesnt exist at all.

Some parts of the make process is shown below, the error sections

  
**C:\CARLA\carla\LibCarla\source\carla\client\FIleTransfer.cpp(8,10): fatal error C1083: Cannot open include file: 'carla/Version.h': No such file or directory [C:\CARLA\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\carla_client.vcxproj]**

**C:\CARLA\carla\LibCarla\source\carla\client\FIleTransfer.cpp(8,10): fatal error C1083: Cannot open include file: 'carla/Version.h': No such file or directory [C:\CARLA\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\carla_client_debug.vcxproj]**

Cloning into 'C:\CARLA\carla\Build\om2odr-source'...
remote: Enumerating objects: 1006678, done.
remote: Counting objects: 100% (13071/13071), done.
remote: Compressing objects: 100% (1772/1772), done.
remote: Total 1006678 (delta 12401), reused 11299 (delta 11299), pack-reused 993607Receiving objects: 100% (1006678/1006Receiving objects: 100% (1006678/1006678), 717.74 MiB | 10.90 MiB/s, done.

Resolving deltas: 100% (846536/846536), done.
Updating files: 100% (78068/78068), done.
Note: switching to 'ee0c2b9241fef5365a6bc044ac82e6580b8ce936'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at ee0c2b9241 Removed debug warnings
-- Setting build type to 'Release' as none was specified.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.29.30148.0
-- The CXX compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 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 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BINARY_DIR: C:/CARLA/carla/Build/osm2odr-visualstudio
-- CMAKE_SOURCE_DIR: C:/CARLA/carla/Build/om2odr-source
--
-- Platform:
--     Host: Windows-10.0.19044 AMD64
--     Target: Windows-10.0.19044 AMD64
--     CMake: 3.20.21032501-MSVC_2
--     CMake generator: Visual Studio 16 2019
--     CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
--     Compiler: MSVC 19.29.30148.0
--
-- Found XercesC: C:\CARLA\carla\Build\\xerces-c-3.2.3-install\lib\xerces-c.lib (found version "3.2.4")
-- Found Proj: C:/CARLA/carla/Build/proj-install/lib/proj.lib
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Enabled features: Windows-10.0.19044 AMD64 MSVC 19.29.30148.0 Release Proj
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZLIB_LIBRARY
    linked by target "osm2odr" in directory C:/CARLA/carla/Build/om2odr-source/src

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/CARLA/carla/Build/om2odr-source/src/CMakeLists.txt
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
  OSM2ODR.cpp
  NBAlgorithms.cpp
  NBAlgorithms_Railway.cpp
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
  NBAlgorithms_Ramps.cpp
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
cl : command line warning D9025: overriding '/external:W3' with '/external:W2' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
  NBConnection.cpp
  NBContHelper.cpp
  NBDistrict.cpp
  NBDistrictCont.cpp
  NBEdge.cpp
  NBEdgeCont.cpp
  NBFrame.cpp
  NBHeightMapper.cpp
  NBHelpers.cpp
  NBLoadedSUMOTLDef.cpp
  NBLoadedTLDef.cpp
  NBNetBuilder.cpp
  NBNode.cpp
  NBNodeCont.cpp
  NBNodeShapeComputer.cpp
  NBOwnTLDef.cpp
  NBPTLine.cpp
  NBPTLineCont.cpp
  NBPTPlatform.cpp
  NBPTStop.cpp
  NBPTStopCont.cpp
  NBParking.cpp
  NBRequest.cpp
  NBSign.cpp
  NBTrafficLightDefinition.cpp
  NBTrafficLightLogic.cpp
  NBTrafficLightLogicCont.cpp
  NBTypeCont.cpp
  NIFrame.cpp
  NIImporter_ArcView.cpp
  NIImporter_DlrNavteq.cpp
  NIImporter_ITSUMO.cpp
  NIImporter_MATSim.cpp
  NIImporter_OpenDrive.cpp
  NIImporter_OpenStreetMap.cpp
  NIImporter_SUMO.cpp
  NIImporter_VISUM.cpp
  NILoader.cpp
  NINavTeqHelper.cpp
  NITypeLoader.cpp
  NIVisumTL.cpp
  NIXMLConnectionsHandler.cpp
  NIXMLEdgesHandler.cpp
  NIXMLNodesHandler.cpp
  NIXMLPTHandler.cpp
  NIXMLShapeHandler.cpp
  NIXMLTrafficLightsHandler.cpp
  NIXMLTypesHandler.cpp
  NIImporter_Vissim.cpp
  NIVissimAbstractEdge.cpp
  NIVissimBoundedClusterObject.cpp
  NIVissimClosedLaneDef.cpp
  NIVissimClosures.cpp
  NIVissimConflictArea.cpp
  NIVissimConnection.cpp
  NIVissimConnectionCluster.cpp
  NIVissimDistrictConnection.cpp
  NIVissimDisturbance.cpp
  NIVissimEdge.cpp
  NIVissimEdgePosMap.cpp
  NIVissimExtendedEdgePoint.cpp
  NIVissimNodeCluster.cpp
  NIVissimNodeDef.cpp
  NIVissimNodeDef_Edges.cpp
  NIVissimNodeDef_Poly.cpp
  NIVissimNodeParticipatingEdge.cpp
  NIVissimSource.cpp
  NIVissimTL.cpp
  NIVissimTrafficDescription.cpp
  NIVissimVehTypeClass.cpp
  NIVissimVehicleClass.cpp
  NIVissimVehicleType.cpp
  NIVissimSingleTypeParser_Auswertungsdefinition.cpp
  NIVissimSingleTypeParser_Detektordefinition.cpp
  NIVissimSingleTypeParser_DynUml.cpp
  NIVissimSingleTypeParser_Einheitendefinition.cpp
  NIVissimSingleTypeParser_Emission.cpp
  NIVissimSingleTypeParser_Fahrtverlaufdateien.cpp
  NIVissimSingleTypeParser_Fahrverhaltendefinition.cpp
  NIVissimSingleTypeParser_Fahrzeugklassendefinition.cpp
  NIVissimSingleTypeParser_Fahrzeugtypdefinition.cpp
  NIVissimSingleTypeParser_Fensterdefinition.cpp
  NIVissimSingleTypeParser_Gefahrwarnungsdefinition.cpp
  NIVissimSingleTypeParser_Gelbverhaltendefinition.cpp
  NIVissimSingleTypeParser_Geschwindigkeitsverteilungsdefinition.cpp
  NIVissimSingleTypeParser_Haltestellendefinition.cpp
  NIVissimSingleTypeParser_Kantensperrung.cpp
  NIVissimSingleTypeParser_Kennungszeile.cpp
  NIVissimSingleTypeParser_Knotendefinition.cpp
  NIVissimSingleTypeParser_LSAKopplungsdefinition.cpp
  NIVissimSingleTypeParser_Laengenverteilungsdefinition.cpp
  NIVissimSingleTypeParser_Langsamfahrbereichdefinition.cpp
  NIVissimSingleTypeParser_Lichtsignalanlagendefinition.cpp
  NIVissimSingleTypeParser_Liniendefinition.cpp
  NIVissimSingleTypeParser_Linksverkehr.cpp
  NIVissimSingleTypeParser_Messungsdefinition.cpp
  NIVissimSingleTypeParser_Netzobjektdefinition.cpp
  NIVissimSingleTypeParser_Parkplatzdefinition.cpp
  NIVissimSingleTypeParser_Querschnittsmessungsdefinition.cpp
  NIVissimSingleTypeParser_Querverkehrsstoerungsdefinition.cpp
  NIVissimSingleTypeParser_Rautedefinition.cpp
  NIVissimSingleTypeParser_Reisezeitmessungsdefinition.cpp
  NIVissimSingleTypeParser_Richtungsentscheidungsdefinition.cpp
  NIVissimSingleTypeParser_Richtungspfeildefinition.cpp
  NIVissimSingleTypeParser_Routenentscheidungsdefinition.cpp
  NIVissimSingleTypeParser_Signalgeberdefinition.cpp
  NIVissimSingleTypeParser_Signalgruppendefinition.cpp
  NIVissimSingleTypeParser_SimRate.cpp
  NIVissimSingleTypeParser_Simdauer.cpp
  NIVissimSingleTypeParser_Startuhrzeit.cpp
  NIVissimSingleTypeParser_Startzufallszahl.cpp
  NIVissimSingleTypeParser_Stauparameterdefinition.cpp
  NIVissimSingleTypeParser_Stauzaehlerdefinition.cpp
  NIVissimSingleTypeParser_Stopschilddefinition.cpp
  NIVissimSingleTypeParser_Streckendefinition.cpp
  NIVissimSingleTypeParser_Streckentypdefinition.cpp
  NIVissimSingleTypeParser_TEAPACDefinition.cpp
  NIVissimSingleTypeParser_VWunschentscheidungsdefinition.cpp
  NIVissimSingleTypeParser_Verbindungsdefinition.cpp
  NIVissimSingleTypeParser_Verkehrszusammensetzungsdefinition.cpp
  NIVissimSingleTypeParser_Verlustzeitmessungsdefinition.cpp
  NIVissimSingleTypeParser_Zeitenverteilungsdefinition.cpp
  NIVissimSingleTypeParser_Zeitschrittfaktor.cpp
  NIVissimSingleTypeParser_Zuflussdefinition.cpp
  NIVissimSingleTypeParser_Zusammensetzungsdefinition.cpp
  NIVissimSingleTypeParser__XKurvedefinition.cpp
  NIVissimSingleTypeParser__XVerteilungsdefinition.cpp
  NWFrame.cpp
  NWWriter_Amitran.cpp
  NWWriter_DlrNavteq.cpp
  NWWriter_MATSim.cpp
  NWWriter_OpenDrive.cpp
  NWWriter_SUMO.cpp
  NWWriter_XML.cpp
  odrSpiral.cpp
  socket.cpp
  storage.cpp
  FileHelpers.cpp
  IDSupplier.cpp
  MsgHandler.cpp
  Parameterised.cpp
  PolySolver.cpp
  RGBColor.cpp
  RandHelper.cpp
C:\CARLA\carla\Build\om2odr-source\src\netwrite\NWWriter_OpenDrive.cpp(312,66): warning C4244: 'argument': conversion from 'unsigned __int64' to 'double', possible loss of data [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]C:\CARLA\carla\Build\om2odr-source\src\netwrite\NWWriter_OpenDrive.cpp(605,49): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\CARLA\carla\Build\om2odr-source\src\netwrite\NWWriter_OpenDrive.cpp(656,28): warning C4146: unary minus operator applied to unsigned type, result still unsigned [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\CARLA\carla\Build\om2odr-source\src\netwrite\NWWriter_OpenDrive.cpp(656,50): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\CARLA\carla\Build\om2odr-source\src\netwrite\NWWriter_OpenDrive.cpp(656,50): warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
  SUMOTime.cpp
  SUMOVehicleClass.cpp
  StdDefs.cpp
  StringTokenizer.cpp
  StringUtils.cpp
  SysUtils.cpp
  SystemFrame.cpp
  DistributionCont.cpp
  Distribution_Parameterized.cpp
  Distribution_Points.cpp
  PolygonDynamics.cpp
  SUMOPolygon.cpp
  Shape.cpp
  ShapeContainer.cpp
  ShapeHandler.cpp
  Option.cpp
  OptionsCont.cpp
  OptionsIO.cpp
  OptionsLoader.cpp
  OptionsParser.cpp
  GenericSAXHandler.cpp
  SAXWeightsHandler.cpp
  SUMOSAXAttributes.cpp
  SUMOSAXAttributesImpl_Cached.cpp
  SUMOSAXAttributesImpl_Xerces.cpp
  SUMOSAXHandler.cpp
  SUMOSAXReader.cpp
  SUMOXMLDefinitions.cpp
  XMLSubSys.cpp
  Boundary.cpp
  Bresenham.cpp
  GeoConvHelper.cpp
  GeomConvHelper.cpp
  GeomHelper.cpp
  Position.cpp
  PositionVector.cpp
  LineReader.cpp
  NamedColumnsParser.cpp
  OutputDevice.cpp
  OutputDevice_CERR.cpp
  OutputDevice_COUT.cpp
  OutputDevice_File.cpp
  OutputDevice_Network.cpp
  OutputDevice_String.cpp
  PlainXMLFormatter.cpp
  Circuit.cpp
  Element.cpp
  Node.cpp
**C:\CARLA\carla\Build\om2odr-source\src\utils\iodevices\OutputDevice_File.cpp(41,48): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\iosfwd(229): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\CARLA\carla\Build\om2odr-source\src\utils\iodevices\OutputDevice_File.cpp(61,56): error C2065: 'binary': undeclared identifier [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\CARLA\carla\Build\om2odr-source\src\utils\iodevices\OutputDevice_File.cpp(61,103): error C2027: use of undefined type 'std::basic_ofstream<char,std::char_traits<char>>' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\iosfwd(229): message : see declaration of 'std::basic_ofstream<char,std::char_traits<char>>' [C:\CARLA\carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj]
-[BuildOSM2ODR]: OSM2ODR has been successfully installed in "C:\CARLA\carla\PythonAPI\carla\dependencies\"
-[BuildPythonAPI]: [Batch params]: --py3
Building Python API for Python 3.
Unable to create process using 'C:\Users\sd\AppData\Local\Programs\Python\Python39\python.exe setup.py bdist_egg bdist_wheel': The system cannot find the file specified.**


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

C:\CARLA\carla>make clean
-[Package]: [Batch params]: --clean --ue-version 4.26
fatal: not a git repository (or any of the parent directories): .git

-[Package]: [ERROR] Carla Version is not set
make: *** [clean] Error 1

Here in this I am getting 2 fatal errors:

  1. fatal error C1083: Cannot open include file: 'carla/Version.h': No such file or directory [C:\CARLA\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\carla_client_debug.vcxproj]
  2. fatal error C1083: Cannot open include file: 'carla/Version.h': No such file or directory [C:\CARLA\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\carla_client_debug.vcxproj]

And in the last Building Python API for Python 3.
Unable to create process using 'C:\Users\sd\AppData\Local\Programs\Python\Python39\python.exe setup.py bdist_egg bdist_wheel': The system cannot find the file specified.
This error is so strange, because I have only python 3.7 with me and there is no such location like what it mentioned above.
Have checked in environmental variables and everywhere but there is not any python 3.9 related files or paths.

How to get rid of these errors?
@fabianoboril Can you please help me in this?
Thanks in advance

@Riha-He
Copy link

Riha-He commented Apr 10, 2023

I have the same problem.
Have you solved this problem?

@Hassan-BABAOUSMAIL
Copy link

Chech this issue #2642

@NnaYelsel
Copy link

If you downloaded Carla instead of git cloning it, you will have some problems with Version.h because this one is looking for the version of Carla in git.

So you need to add a line on Setup.bat.
Remove: for /f %%i in ('git describe --tags --dirty --always') do set carla_version=%%i
and add the line:
set carla_version="0.9."

@saitejeswar1
Copy link

I am still not able to solve this error. Here is the error log

C:\carla>make PythonAPI
-[BuildUE4Plugins]: [Batch params]: --build --all
HEAD is now at 260273d Correct descriptor
-[BuildUE4Plugins]: STREETMAP has been successfully installed in "C:\carla\Unreal\CarlaUE4\Plugins"
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --generator "" --all
-[Setup]: Asynchronous jobs: 12
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Generator: "Visual Studio 16 2019"
-[Setup]: Install directory: "C:\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "C:\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
1 file(s) copied.
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "C:\carla\Build" --zlib-install-dir "C:\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "C:\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:\carla\Build" --generator "Visual Studio 16 2019"
-[install_rpclib]: A rpclib installation already exists.
-[install_rpclib]: Delete "C:\carla\Build\rpclib-install" if you want to force a rebuild.
-[install_rpclib]: Exiting...
-[Setup]: Installing Google Test...
-[install_gtest]: [Batch params]: --build-dir "C:\carla\Build" --generator "Visual Studio 16 2019"
-[install_gtest]: A Google Test installation already exists.
-[install_gtest]: Delete "C:\carla\Build\gtest-install" if you want to force a rebuild.
-[install_gtest]: Exiting...
-[Setup]: Installing "Recast & Detour"...
-[install_recast]: [Batch params]: --build-dir "C:\carla\Build" --generator "Visual Studio 16 2019"
-[install_recast]: A "Recast & Detour" installation already exists.
-[install_recast]: Delete "C:\carla\Build\recast-install" if you want to force a rebuild.
-[install_recast]: Exiting...
-[Setup]: Installing Boost...
-[install_boost]: [Batch params]: --build-dir "C:\carla\Build" --toolset msvc-14.2 --version 1.80.0 -j 12
-[install_boost]: A Boost installation already exists.
-[install_boost]: Delete "C:\carla\Build\boost-1.80.0-install" if you want to force a rebuild.
-[install_boost]: Exiting...
-[Setup]: Installing Xercesc...
-[install_xercesc]: [Batch params]: --build-dir "C:\carla\Build" --generator "Visual Studio 16 2019"
-[install_xercesc]: A xerces installation already exists.
-[install_xercesc]: Delete "C:\carla\Build\xerces-c-3.2.3-install" if you want to force a rebuild.
-[install_xercesc]: Exiting...
1 file(s) copied.
1 file(s) copied.
-[Setup]: Installing Sqlite3
-[install_sqlite3]: [Batch params]: --build-dir "C:\carla\Build"
-[install_sqlite3]: A Sqlite3 installation already exists.
-[install_sqlite3]: Delete "C:\carla\Build\sqlite3-install" if you want to force a rebuild.
-[install_sqlite3]: Exiting...
1 file(s) copied.
1 file(s) copied.
-[Setup]: Installing PROJ
-[install_proj]: [Batch params]: --build-dir "C:\carla\Build" --generator "Visual Studio 16 2019"
-[install_proj]: A PROJ installation already exists.
-[install_proj]: Delete "C:\carla\Build\proj-install" if you want to force a rebuild.
-[install_proj]: Exiting...
1 file(s) copied.
1 file(s) copied.
-[Setup]: Installing Eigen
-[install_eigen]: [Batch params]: --build-dir "C:\carla\Build"
0 File(s) copied
0 File(s) copied
1 file(s) copied.
1 file(s) copied.

-[install_eigen]: Eigen has been successfully installed in "C:\carla\Build\eigen-install"
-[install_eigen]: Exiting...

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

SUCCESS

###########

IMPORTANT

All the CARLA library dependences should be installed now.
(You can remove all "*-src" folders in C:\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 "C:\carla\Unreal\CarlaUE4\Content\Carla" folder.
If you want another version, search it in C:\carla\Util\ContentVersions.txt.

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

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

1>Checking Build System
carla_client.vcxproj -> C:\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib
carla_client_debug.vcxproj -> C:\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib
1>
-- Install configuration: "Release"
-[BuildLibCarla]: LibCarla server has been successfully installed in "C:\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies"!
-[BuildLibCarla]: LibCarla client has been successfully installed in "C:\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:

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

CMake Error: The source directory "C:/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 "C:\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
    creating source\carla.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'
    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
    running install_lib
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\carla
    copying source\carla\command.py -> build\lib.win-amd64-3.7\carla
    copying source\carla_init_.py -> build\lib.win-amd64-3.7\carla
    running build_ext
    building 'carla.libcarla' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\source
    creating build\temp.win-amd64-3.7\Release\source\libcarla
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idependencies/include -IC:\Users\I010910\AppData\Local\Programs\Python\Python37\include -IC:\Users\I010910\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\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.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.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
    C:\carla\PythonAPI\carla\source\libcarla\OSM2ODR.cpp(7): fatal error C1083: Cannot open include file: 'OSM2ODR.h': No such file or directory
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2

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

@dev3225
Copy link

dev3225 commented Dec 11, 2023

I am also facing this error with make PythonAPI.
CMake Error: The source directory "C:/carla/Build/osm2odr-visualstudio/x64" does not exist.
Any updates?

@saitejeswar1
Copy link

@dev3225 check this issue #6898. I could solve it with this method mentioned here.

@dev3225
Copy link

dev3225 commented Dec 14, 2023

Thankyou @saitejeswar1! it worked now.

@haorank
Copy link

haorank commented Apr 9, 2024

@NnaYelsel I cannot thank you enough!! it worked!

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

7 participants