More Ubuntu build progress...

This commit is contained in:
Marcel Pi 2024-03-06 17:20:13 +01:00
parent fefe396ec3
commit d72dd89db4
14 changed files with 46 additions and 33 deletions

View File

@ -257,11 +257,11 @@ carla_string_option (
carla_string_option (
CARLA_STREETMAP_VERSION
"Target StreetMap version."
UE5Native
ue5.3
)
carla_string_option (
CARLA_STREETMAP_TAG
"Target StreetMap git tag."
${CARLA_LIBOSMSCOUT_VERSION}
${CARLA_STREETMAP_VERSION}
)

View File

@ -114,13 +114,3 @@ endif ()
if (BUILD_CARLA_UE)
add_subdirectory (Unreal)
endif ()
carla_two_step_configure_file (
${CARLA_WORKSPACE_PATH}/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.Build.cs
${CARLA_WORKSPACE_PATH}/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Carla.Build.cs.in
)
carla_two_step_configure_file (
${CARLA_WORKSPACE_PATH}/Unreal/CarlaUnreal/Plugins/CarlaTools/Source/CarlaTools/CarlaTools.Build.cs
${CARLA_WORKSPACE_PATH}/Unreal/CarlaUnreal/Plugins/CarlaTools/Source/CarlaTools/CarlaTools.Build.cs.in
)

View File

@ -1,4 +1,4 @@
launch PythonAPI LibCarla CarlaUE4Editor CarlaUnrealEditor launch-only:
launch PythonAPI LibCarla CarlaUnrealEditor CarlaUnrealEditor launch-only:
@echo "MakeFile build is currently disabled."
# include Util/BuildTools/Vars.mk

View File

@ -81,7 +81,6 @@ target_compile_definitions (
${CARLA_COMMON_DEFINITIONS}
${CARLA_RTTI_DEFINITIONS}
BOOST_ALL_NO_LIB
BOOST_PYTHON_STATIC_LINK
LIBCARLA_WITH_PYTHON_SUPPORT
)
@ -101,6 +100,8 @@ endif ()
add_custom_target (
carla-python-api-symlink
ALL
COMMENT
"Creating CARLA PythonAPI .PYD/.SO symlink..."
COMMAND
${CMAKE_COMMAND} -E create_symlink $<TARGET_FILE:carla-python-api> ${PYTHON_API_PATH}/examples/carla${PYD_EXT}
)

View File

@ -19,34 +19,55 @@ set (
${CARLA_WORKSPACE_PATH}/Unreal/CarlaUnreal
)
set (
CARLA_UE_PLUGINS_PATH
${CARLA_UE_PATH}/Plugins
)
set (
CARLA_UE_PROJECT_PATH
${CARLA_UE_PATH}/CarlaUnreal.uproject
)
execute_process (
carla_two_step_configure_file (
${CARLA_UE_PLUGINS_PATH}/Carla/Source/Carla/Carla.Build.cs
${CARLA_UE_PLUGINS_PATH}/Carla/Source/Carla/Carla.Build.cs.in
)
carla_two_step_configure_file (
${CARLA_UE_PLUGINS_PATH}/CarlaTools/Source/CarlaTools/CarlaTools.Build.cs
${CARLA_UE_PLUGINS_PATH}/CarlaTools/Source/CarlaTools/CarlaTools.Build.cs.in
)
add_custom_target (
carla-ue-generate-project-files
ALL
COMMENT
"Generating UE project files for CARLA..."
COMMAND
${CARLA_UE_GENERATE_PROJECT_SCRIPT}
-project=${CARLA_UE_PROJECT_PATH}
-game
-engine
-makefiles
RESULT_VARIABLE
GENERATE_RPJECT_FILES_RESULT
-CMakefile
)
if (NOT ${GENERATE_RPJECT_FILES_RESULT})
message (
FATAL_ERROR
"Could not generate Unreal Engine project files."
)
endif ()
add_custom_target (
carla-ue-build
ALL
DEPENDS
carla-ue-generate-project-files
COMMENT
"Building CARLA UE..."
COMMAND
${CMAKE_COMMAND}
-S ${CARLA_UE_PATH}
-B ${CMAKE_CURRENT_BINARY_DIR}
-G ${CMAKE_GENERATOR}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
)
file (
MAKE_DIRECTORY
${CARLA_UE_PATH}/Content/Carla/ExportedMaps
)
add_subdirectory (
CarlaUnreal
)

View File

@ -21,5 +21,6 @@ Config/CarSimConfig.ini
*.code-workspace
.idea
.vscode
.ignore
CMakeLists.txt
Makefile

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -8,7 +8,7 @@ import subprocess
"""Generic function for running a commandlet with its arguments."""
ue4_path = os.environ["UE4_ROOT"]
uproject_path = unreal.Paths.project_dir() + ("CarlaUE4.uproject")
uproject_path = unreal.Paths.project_dir() + ("CarlaUnreal.uproject")
run = "-run=%s" % ("GenerateTileCommandlet")
print("Before any Commandlet:")

View File

@ -4,7 +4,7 @@ using UnrealBuildTool;
using System;
using EpicGames.Core;
public class CarlaUE4Target : TargetRules
public class CarlaUnrealTarget : TargetRules
{
[CommandLine("-unity-build")]
bool EnableUnityBuild = true;
@ -15,7 +15,7 @@ public class CarlaUE4Target : TargetRules
Console.WriteLine(string.Format("{0} is {1}.", name, state));
}
public CarlaUE4Target(TargetInfo Target) :
public CarlaUnrealTarget(TargetInfo Target) :
base(Target)
{
DefaultBuildSettings = BuildSettingsVersion.Latest;

View File

@ -4,7 +4,7 @@ using UnrealBuildTool;
using System;
using EpicGames.Core;
public class CarlaUE4EditorTarget : TargetRules
public class CarlaUnrealEditorTarget : TargetRules
{
[CommandLine("-unity-build")]
bool EnableUnityBuild = true;
@ -15,7 +15,7 @@ public class CarlaUE4EditorTarget : TargetRules
Console.WriteLine(string.Format("{0} is {1}.", name, state));
}
public CarlaUE4EditorTarget(TargetInfo Target) :
public CarlaUnrealEditorTarget(TargetInfo Target) :
base(Target)
{
DefaultBuildSettings = BuildSettingsVersion.Latest;