-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Comments
when Build CarlaServer with $ make |
The powershell scripts provided should work without the make command. |
sorry, I miss the script for build CarlaServer ^_^, Thank you so much ~ |
suggestions for the powershell scripts:
|
Where can I download Unreal Engine version 4.17 exactly? I can only find 4.17.6 from the Epic Megagames installer. |
if the third version number is not specified, it should not matter, so 4.17.6 should be ok.. |
I'd be happy to go with the original 4.17, but I can't seem to find it on
the drop-down menu. Epic games seems to have removed it from some reason.
…On 10 January 2018 at 13:18, Néstor Subirón ***@***.***> wrote:
@eds89 <https://github.com/eds89> @black3r <https://github.com/black3r>
Yes, any subversion of 4.17 should work. If you want to go safe 4.17.2 has
been tested.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQUNuV_EdGRQUfIaBIjzqzWj4xnAnQgTks5tJLjDgaJpZM4Qb6ga>
.
|
It seems that I succeeded building with powershell, but BuildServer.ps1 couldn't work. |
@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. |
Could somebody please just explain to me in simple words how to install Carla. |
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"? |
when I run Setup.ps1 I get the following error: |
@black3r thanks! @josheligoldman You need to set up the environment to do a command-line build. |
@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 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#) |
You either need Visual Studio 2015 or Visual Studio 2017 with visual C++ 2015 build tools installed. You change change that behavior by adding the argument -VCPath "YourDrive:/YourPath/Microsoft Visual Studio 14.0/VC". Example
|
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:
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. |
Hello everyone. I had successfully build Carla on Win2012 server with Visual Studio 2015, thanks to the provided scripts 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 |
@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
|
@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:
|
@razza-tu Hmm yes, I've seen this before. Can you change in line 47 of "DoublyConnectedEdgeList.cpp" the --- 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. |
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) |
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. |
I tried this initially. The log disappears before I can capture any information, and I am left with the message:
Trying the Visual Studio approach now. |
https://github.com/carla-simulator/carla/issues/6094 |
Can someone help me with this issue |
Any suggestions? C:\Users\ddas\Documents\carla>make PythonAPI Update the VERSION argument value or use a ... suffix to tell -- The C compiler identification is MSVC 19.29.30148.0
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred!
-[Setup]:
|
@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
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: See Also:
|
Hi all, I'm getting an issue during (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 |
The system cannot find the path specified.
could not find any instance of Visual Studio. -- Configuring incomplete, errors occurred!
I am getting this error during build carla make Python API any solution to this |
This is the full error. |
Anyone met this error when running make pythonAPI GENERATOR="Visual Studio 17 2022" -[install_boost]: [B2 ERROR] An error ocurred while installing using "b2.exe". -[Setup]:
|
"git clone --depth 1 -b carla https://github.com/CarlaUnreal/UnrealEngine.git ." is already invalid |
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:
ctrl+F
search).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.
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
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)
Then just run make and should work
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.
The text was updated successfully, but these errors were encountered: