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

Issues with building Colosseum on UE5 #98

Open
mhe1999 opened this issue Aug 2, 2024 · 9 comments
Open

Issues with building Colosseum on UE5 #98

mhe1999 opened this issue Aug 2, 2024 · 9 comments

Comments

@mhe1999
Copy link

mhe1999 commented Aug 2, 2024

Bug report

  • Colosseum Version/#commit: Latest commit
  • UE/Unity version: Unreal Engine 5.3.2(as i see you recommended in some of your documents)
  • autopilot version: N/A
  • OS Version: Windows 11
  • VS version: Fresh installation of VS2022 community version 17.10.5 as the only VS on my system
  • SDK versions installed with the VS2022: windows 10 SDKs(10.0.18362, 10.0.19041, 10.0.20348), and windows11 SDKs(10.0.22000, 10.0.22621, 10.0.26100)

What's the issue you encountered?

I am encountering several issues while trying to build and run the Colosseum project on Unreal Engine 5.3.2 on my Windows 11 system. Below are the steps I followed and the errors I encountered:

  1. Cloning Colosseum:

    • Used Developer Command Prompt in Visual Studio to clone the latest commit of Colosseum.
    • Command used: git clone https://github.com/CodexLabsLLC/Colosseum.git
    • Ran git submodule update --init. (the built wasn’t successful without it, the build output suggested that i update the submodules)
  2. Building Colosseum:

    • Ran the build.cmd script.
    • During the build process, encountered the following errors:
      BlocksV2.Target.cs(11,47): error CS0117: 'BuildSettingsVersion' does not contain a definition for 'V5'
      BlocksV2.Target.cs(12,51): error CS0117: 'EngineIncludeOrderVersion' does not contain a definition for 'Unreal5_4'
      BlocksV2Editor.Target.cs(11,47): error CS0117: 'BuildSettingsVersion' does not contain a definition for 'V5'
      BlocksV2Editor.Target.cs(12,51): error CS0117: 'EngineIncludeOrderVersion' does not contain a definition for 'Unreal5_4'
      
  3. Attempted Fix:

    • Changed BuildSettingsVersion.V5 to BuildSettingsVersion.Latest and EngineIncludeOrderVersion.Unreal5_4 to EngineIncludeOrderVersion.Latest in the BlocksV2.Target.cs and BlocksV2Editor.Target.cs files.
    • This allowed the build process to complete without errors.
  4. Further Steps Taken:

    • Ran clean_rebuild.bat.
    • Set 'Visual Studio 2022' as the 'Source Code Editor' in Unreal Engine.
    • Right-clicked on BlocksV2.uproject and selected 'Generate Visual Studio project files'.
    • Opened the BlocksV2.sln file in Visual Studio, set BlocksV2 as the startup project, and ran the project.
  5. Encountered Build Errors:

    • Received the following errors:
      error LNK2019: unresolved external symbol _Thrd_sleep_for referenced in function "void __cdecl std::this_thread::sleep_for<__int64,struct std::ratio<1,1000> >(class std::chrono::duration<__int64,struct std::ratio<1,1000> > const &)" (??$sleep_for@_JU?$ratio@$00$0DOI@@std@@@this_thread@std@@YAXAEBV?$duration@_JU?$ratio@$00$0DOI@@std@@@chrono@1@@Z)
      1>MavLinkCom.lib(MavLinkNodeImpl.obj) : error LNK2001: unresolved external symbol _Thrd_sleep_for
      1>MavLinkCom.lib(AdHocConnectionImpl.obj) : error LNK2001: unresolved external symbol _Thrd_sleep_for
      1>Colosseum\Unreal\Environments\BlocksV2\Plugins\AirSim\Binaries\Win64\UnrealEditor-AirSim.dll : fatal error LNK1120: 1 unresolved externals
      1>Total time in Parallel executor: 0.56 seconds
      1>Total execution time: 0.90 seconds
      1>Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\Build.bat" BlocksV2Editor Win64 Development -Project="Colosseum\Unreal\Environments\BlocksV2\BlocksV2.uproject" -WaitMutex -FromMsBuild" exited with code 6.
      1>Done building project "BlocksV2.vcxproj" -- FAILED.
      ========== Build: 0 succeeded, 1 failed, 10 up-to-date, 0 skipped ==========
      ========== Build completed at 11:02 AM and took 01.531 seconds ==========
      
  6. Popup Messages:

    • Selected 'Yes' on the popup(“there were build errors, would you like to continue and run the last successful build”) to rebuild the project.
    • Encountered the error: "BlocksV2 could not be compiled. Try rebuilding from source manually."
    • Same issue when opening the BlocksV2 project using Unreal Engine 5.3.2, instead of opening with VS2022, with the message: "The following modules are missing or built with a different engine version: BlocksV2, AirSim. Would you like to rebuild them now?" Selecting 'Yes' results in the same "BlocksV2 could not be compiled, Try rebuilding from source manually." error.
  7. Additional Information:

    • Installed .NET versions on my system are 6.0.424 and 8.0.303.
    • Unreal Engine works perfectly with other projects, including those using blueprints and C++ files.
    • Tried creating a new project and adding the Colosseum plugin (including updating uproject and DefaultGame.ini), but encountered the same issues.

Settings

Default settings

@JulianDev24
Copy link

Heya,

I updated the version to Unreal 5.4, so just use a different engine version and it should work

@mhe1999
Copy link
Author

mhe1999 commented Aug 6, 2024

Heya,

I updated the version to Unreal 5.4, so just use a different engine version and it should work

Thanks a lot. To my surprise, it did the trick. @JulianDev24

@DeepChavan30
Copy link

@mhe1999 It didn't work for me even for 5.4. Can you please share which branch of coloseum you used or any specific changes you made?

@mhe1999
Copy link
Author

mhe1999 commented Aug 9, 2024

@DeepChavan30
I’ve been using the main branch and haven’t made any changes related to building. Are you encountering the exact same errors as I did? you can share more details about the specific errors and the versions you’re using.

@DeepChavan30
Copy link

DeepChavan30 commented Aug 9, 2024

Thanxs @mhe1999
It worked after i made some changes in .uproject and build it from source using visual studio. But causes error while cross compiling for linux os. Changes made in .uproject are
initially:

{
	"FileVersion": 3,
	"EngineAssociation": "5.4",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "MyProject",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
                		"AirSim"
            		]

		}
	],
	"Plugins": [
		{
            		"Name": "AirSim",
            		"Enabled": true
        	},
        	{
            		"Name": "ModelingToolsEditorMode",
            		"Enabled": true,
            		"TargetAllowList": [
                		"Editor"
            		]
        	}

	]
}

After changes

{
	"FileVersion": 3,
	"EngineAssociation": "5.4",
	"Category": "",
	"Description": "",
	"Modules": [
		{
			"Name": "MyProject",
			"Type": "Runtime",
			"LoadingPhase": "Default",
			"AdditionalDependencies": [
                		"AirSim"
            		]

		}
	],
	"Plugins": [
		{
            		"Name": "AirSim",
            		"Enabled": true
        	}

	]
}

@mhe1999
Copy link
Author

mhe1999 commented Aug 12, 2024

@DeepChavan30,
I tried your JSON file on Windows, and it worked without any issues. I don’t have experience with Linux for this project, so I’m unable to recreate your problem.

@xxEoD2242
Copy link

Can we close this?

@DeepChavan30
Copy link

Yes

@prestonzen
Copy link

prestonzen commented Dec 31, 2024

Tried the 5.4 engine from the built versions of 5.2 (main) and 5.3 (branch). When I click Blocksv2 it loads on 5.4 but then I get this error at 75%

image

Windows 11
Microsoft V Studio 2022

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

5 participants