-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 fatal error C1083: Cannot open include file 'OSM2ODR.h' No such file or directory: #3320
Comments
I also meet the issues when I update the code to master. I can run "make launch" and run a simulator by the Unreal Edior. But when I run "make PythonAPI" to get the corresponding *.egg file, I meet the following error:
I see the error notification, so I go to the carla/build, and I see that the xerces-c-3.2.3-install folder is null, and the xerces-c-3.2.3-source has been download, I dont't know how to make the xerces-c-3.2.3-install really install. Need help too. Thank you! |
@Axel1092 could you please provide some help with this issue? |
HI @H-Whisky, try removing all |
Hey, I was getting the same error so I deleted the 'xerces*' folders and files in the 'carla/build' folder. Then ran the command but I'm still getting the same error. Error-- Configuring incomplete, errors occurred! MSBUILD : error MSB1009: Project file does not exist.
-[BuildPythonAPI]: Carla lib for python has been successfully installed in "F:\Programs\Project\Carla\PythonAPI\carla\dist"! |
Hi @H-Whisky, sorry for the delay, I need the error log of the whole console, you only sent the PythonAPI part but what is actually failing is one of the dependencies. I need you to delete everything inside the Build folder, run |
I also meet the same problem. I make osm2odr and found the xerces cannot output the lib. When I build the xerces lib, I found Windows kit 10 already have the icucc.lib and xerces cannot link. Could you please help me to solve this problem? |
@mc275 So you mean that that library is missing or it already exists? Can you share the full console log as well please? |
Hello there, Having the same issue here, I did what you said @Axel1092
and I got this (sorry for it being in french) :
Does it help ? |
I have the same issue. Did you find a solution? |
The reason is that xerces lib conflict with conda and VS2017. I modify the setup.py and set the xerces lib path |
Hi all, @MrMojitoo sorry for the late response. The problem is that the library XercesC is missing from your system. Before 0.9.10 for ubuntu, you need to install it in your system with |
It seems like Xerces can't be installed properly, here is one solution I found.
Folder |
I'm sorry but i'm also having the issue with osm2odr. myPath\mingw64\include\zconf.h(475): fatal error C1083: Impossible d'ouvrir le fichier include : 'unistd.h' : No such file or directory (compilation du fichier source C:\Dev\Carla\Util\OSM2ODR\src\utils\iodevices\OutputDevice_File.cpp) [C:\Dev\Carla\Build\osm2odr-visualstudio\src\osm2odr.vcxproj] A support on this one would be really appreciated ! |
Same Issue on Ubuntu 18.04, Carla 0.9.11 |
Thanks a lot , your comment reall helped me a lot @icerooqiu |
@brieucdnl, your issue seems to be related to your visual studio installation as the unistd.h file mentioned in your error log is visual studio one. |
Sorry to reply you so late, I have already got the answer, thank you for your help. |
Hi @H-Whisky Can you please tell me how you solved the issue? |
On windows 10, I solved this by downloading xerces from the apache website https://mirror.synyx.de/apache//xerces/c/3/sources/xerces-c-3.2.3.zip and extracting the contents to <D:>\carla\Build\xerces-c-3.2.3-source. Make sure the folder name is xerces-c-3.2.3-source. Then run make PythonAPI |
I've solved this problem on windows. |
Thanks so much, that's really helpful. I really appreciate it!!!!! I have been stuck on this problem for a long time. lol |
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. |
For anyone who don't use conda, here is the step to build xerces manually:
|
Thanks so much, that's really helpful. |
Thank you so much, your comment was very usefull. It's working now CARLA 0.9.11 |
Hi, im having some issues while Building PythonAPI. Could please help. I copy-paste file xerces-c_3.lib from carla\Build\xerces-c-3.2.3-install\lib to folder carla\PythonAPI\carla\dependencies\lib, still have same issue.. Carla -14 version im using with UE for Carla and visual studio 2019. Error after copy the xerec files and running make PythonAPI again: -[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Creating "CMakeLists.txt.in"... SUCCESS########### IMPORTANT! All the CARLA library dependences should be installed now. You only need the ASSET PACK with all the meshes and textures. This script provides the assets for CARLA 0.9.14:
Unzip it in the "C:\Users\andri\source\repos\carla\Unreal\CarlaUE4\Content\Carla" folder. -[BuildLibCarla]: [Batch params]: --server --client Checking Build System Checking Build System -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
|
Hi @Alex1091 and @germanros1987 I'm having the same issue as @AndritMuca . Info: Carla 14 version and visual studio 2019. I'd appreciate your solutions to how to proceed: Upon building CARLA Python API I get stuck in this part with the following error:
-[Setup]: Creating "CMakeLists.txt.in"... SUCCESS########### IMPORTANT! All the CARLA library dependences should be installed now. You only need the ASSET PACK with all the meshes and textures. This script provides the assets for CARLA 0.9.14:
Unzip it in the "C:\carla\Unreal\CarlaUE4\Content\Carla" folder. -[BuildLibCarla]: [Batch params]: --server --client Checking Build System Checking Build System
|
I have tried this multiple times but I am getting an error... I am on windows 10, trying to install carla 9.13 from source... any help would be greatly appreciated! |
It is due to an error on Setup.bat file. It tries to copy xerces lib to a non existing path. Change this: copy %INSTALLATION_DIR%\xerces-c-3.2.3-install\lib\xerces-c_3.lib %CARLA_PYTHON_DEPENDENCIES%\lib to xcopy /Y /S /I "%INSTALLATION_DIR%\xerces-c-3.2.3-install\lib\xerces-c_3.lib" "%CARLA_PYTHON_DEPENDENCIES%\lib" > NUL do the same for sqlite3 |
it seems doesn't work today, after following these steps,error still says '“OSM2ODR.h”: No such file or directory'. |
#6898 and u had tried to reinstall xerces but nothing worked , u can tried to change the it works for me! |
after generated the |
I am having also the same issue. Maybe I will try the Linux build |
Also works for me, but I get lib boost error after |
I have encountered the same issue. The |
Hello, |
It works for me, win11 + carla9.15, thanks! |
In case someone finds this useful, combining this fix and this one has worked for me. |
I had the same issue today. |
You are genius! Thank you a lot!!! |
This also worked for me too (Windows 10, Carla 0.19.5), thanks a bunch! |
I currently experience the same problem (Can ot open OSM2ODR.H) at a different location: I call
The problem starts with the missing x64 folder and ends with a missing header file requested "c:\Carla\carla\PythonAPI\carla\source\libcarla\OSM2ODR.cpp(7): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "OSM2ODR.h": No such file or directory" I can find this header in "C:\Carla\carla\Build\om2odr-source\src" but this path is not in the include statements -I for the cl.exe call above. Maybe it should have been copied somewhere else, probably into the missing x64 folder. I also have a bit of trouble understanding how the previous step of building the Unreal Engine is linked to this "building Carla" part. Can this problem actually have something to do with the previous step of compiling the Engine? Although that went fine, I can open the UE editor and it seems to work as expected. SOLVED: #6898 cmake -G %GENERATOR% -A x64^ |
Hi, I'm building on Windows and make launch runs fine. When I run make PythonAPI, I receive this error log. it finishes with:
-[BuildPythonAPI]: Carla lib for python has been successfully installed in "C:\Users\User\Documents\carla\PythonAPI\carla\dist"!
Yet there is no directory /dist created. Has anyone else come across this issue?
Here is the full error log:
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "C:\Users\User\Documents\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\Users\User\Documents\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "C:\Users\User\Documents\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "C:\Users\User\Documents\carla\Build" --zlib-install-dir "C:\Users\User\Documents\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "C:\Users\User\Documents\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:\Users\User\Documents\carla\Build"
-[install_rpclib]: A rpclib installation already exists.
-[install_rpclib]: Delete "C:\Users\User\Documents\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:\Users\User\Documents\carla\Build"
-[install_gtest]: A Google Test installation already exists.
-[install_gtest]: Delete "C:\Users\User\Documents\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:\Users\User\Documents\carla\Build"
-[install_recast]: A "Recast & Detour" installation already exists.
-[install_recast]: Delete "C:\Users\User\Documents\carla\Build\recast-cdce4e-install" if you want to force a rebuild.
-[install_recast]: Exiting...
-[Setup]: Installing Boost...
-[install_boost]: [Batch params]: --build-dir "C:\Users\User\Documents\carla\Build" --toolset msvc-14.1 --version 1.72.0 -j 8
-[install_boost]: A Boost installation already exists.
-[install_boost]: Delete "C:\Users\User\Documents\carla\Build\boost-1.72.0-install" if you want to force a rebuild.
-[install_boost]: Exiting...
1 file(s) copied.
1 file(s) copied.
-[Setup]: Installing Xercesc...
-[install_xercesc]: [Batch params]: --build-dir "C:\Users\User\Documents\carla\Build"
-[install_xercesc]: A xerces installation already exists.
-[install_xercesc]: Delete "C:\Users\User\Documents\carla\Build\xerces-c-3.2.3-install" if you want to force a rebuild.
-[install_xercesc]: 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:\Users\User\Documents\carla\Build\ directory)
You only need the ASSET PACK with all the meshes and textures.
This script provides the assets for CARLA 0.9.10:
You can download the assets from here:
Unzip it in the "C:\Users\User\Documents\carla\Unreal\CarlaUE4\Content\Carla" folder.
If you want another version, search it in C:\Users\User\Documents\carla\Util\ContentVersions.txt.
-[BuildLibCarla]: [Batch params]: --server --client
-- Build debug: ON
-- Build release: ON
-- Build test: ON
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/User/Documents/carla/Build/libcarla-visualstudio
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
carla_server.vcxproj -> C:\Users\User\Documents\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server.lib
carla_server_debug.vcxproj -> C:\Users\User\Documents\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server_debug.lib
-- Install configuration: "Release"
-- Build debug: ON
-- Build release: ON
-- Build test: ON
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/User/Documents/carla/Build/libcarla-visualstudio
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
carla_client.vcxproj -> C:\Users\User\Documents\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib
carla_client_debug.vcxproj -> C:\Users\User\Documents\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib
-- Install configuration: "Release"
-[BuildLibCarla]: LibCarla server has been successfully installed in "C:\Users\User\Documents\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies"!
-[BuildLibCarla]: LibCarla client has been successfully installed in "C:\Users\User\Documents\carla\PythonAPI\carla\dependencies"!
-[BuildOSM2ODR]: [Batch params]: --build
-- CMAKE_BINARY_DIR: C:/Users/User/Documents/carla/Build/osm2odr-visualstudio
-- CMAKE_SOURCE_DIR: C:/Users/User/Documents/carla/Util/OSM2ODR
-- Platform:
-- Host: Windows-6.3.9600 AMD64
-- Target: Windows-6.3.9600 AMD64
-- CMake: 3.18.2
-- CMake generator: Visual Studio 15 2017 Win64
-- CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
-- Compiler: MSVC 19.16.27043.0
-- Found Python: C:/Users/User/AppData/Local/Programs/Python/Python37/python.exe
-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Documents/carla/Build/osm2odr-visualstudio/CMakeFiles/CMakeOutput.log".
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: install.vcxproj
-[BuildOSM2ODR]: OSM2ODR has been successfully installed in "C:\Users\User\Documents\carla\PythonAPI\carla\dependencies"
-[BuildPythonAPI]: [Batch params]: --py3
Building Python API for Python 3.
compiling:
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
running install_lib
running build_py
running build_ext
building 'carla.libcarla' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Idependencies/include -IC:\Users\User\AppData\Local\Programs\Python\Python37\include -IC:\Users\User\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsource/libcarla/libcarla.cpp /Fobuild\temp.win-amd64-3.7\Release\source/libcarla/libcarla.obj /experimental:external /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
libcarla.cpp
dependencies/include\png.h(522): warning C4005: 'int_p_NULL': macro redefinition
dependencies/include\carla/image/ImageIOConfig.h(48): note: see previous definition of 'int_p_NULL'
dependencies/include/system\boost/gil/io/path_spec.hpp(75): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1015): note: see declaration of 'wcstombs'
dependencies/include/system\boost/gil/io/path_spec.hpp(120): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1015): note: see declaration of 'wcstombs'
dependencies/include/system\boost/gil/io/path_spec.hpp(129): warning C4996: 'wcstombs': This function or variable may be unsafe. Consider using wcstombs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdlib.h(1015): note: see declaration of 'wcstombs'
c:\users\user\documents\carla\pythonapi\carla\source\libcarla\OSM2ODR.cpp(7): fatal error C1083: Cannot open include file: 'OSM2ODR.h': No such file or directory
-[BuildPythonAPI]: Carla lib for python has been successfully installed in "C:\Users\User\Documents\carla\PythonAPI\carla\dist"!
The text was updated successfully, but these errors were encountered: