stride3d / stride3d/stride-community-toolkit
Linux fails to compile in Ubuntu 24.04 LTS
Open
Nobody has claimed this yet.
bug-fix
- Dominant language
- C#
- Stars
- 128
- Forks
- 33
- Avg merge
- 12h 29m
- Merged PRs (30d)
- 4
Description
I'm trying to use Stride3d for the first time.
Platform
I'm running Ubuntu 24.04 LTS in a distrobox.
Steps to reproduce
- Install the necessary dependencies from the linux setup guide
sudo apt install dotnet10
sudo apt install libfreetype6-dev libopenal-dev libsdl2-dev libfreeimage-dev
- Create project
dotnet new console --framework net10.0 --name Issue01Project
cd Issue01Project
- Add packages
dotnet add package Stride.CommunityToolkit --prerelease
dotnet add package Stride.CommunityToolkit.Linux --prerelease
dotnet add package Stride.CommunityToolkit.Bepu --prerelease
-
Change to Linux platform.
- Add
<StridePlatform>Linux</StridePlatform>to theIssue01Project.csproj
- Add
-
Run
dotnet build
Relevant files
The project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<StridePlatform>Linux</StridePlatform>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Stride.CommunityToolkit" Version="1.0.0-preview.62" />
<PackageReference Include="Stride.CommunityToolkit.Bepu" Version="1.0.0-preview.62" />
<PackageReference Include="Stride.CommunityToolkit.Linux" Version="1.0.0-preview.62" />
</ItemGroup>
</Project>
Logs
mas@stride-gamedev:~/Documents/Dev/gamedev/Issue01Project$ dotnet build
Restore succeeded with 3 warning(s) in 0.4s
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1903: Package 'Microsoft.Build.Tasks.Core' 17.7.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-h4j7-5rxr-p4wc
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1901: Package 'NuGet.Packaging' 7.0.0 has a known low severity vulnerability, https://github.com/advisories/GHSA-g4vj-cjjj-v7hg
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1901: Package 'NuGet.Protocol' 7.0.0 has a known low severity vulnerability, https://github.com/advisories/GHSA-g4vj-cjjj-v7hg
Issue01Project net10.0 failed with 1 error(s) and 3 warning(s) (2.4s) → bin/Debug/net10.0/Issue01Project.dll
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1903: Package 'Microsoft.Build.Tasks.Core' 17.7.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-h4j7-5rxr-p4wc
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1901: Package 'NuGet.Packaging' 7.0.0 has a known low severity vulnerability, https://github.com/advisories/GHSA-g4vj-cjjj-v7hg
/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj : warning NU1901: Package 'NuGet.Protocol' 7.0.0 has a known low severity vulnerability, https://github.com/advisories/GHSA-g4vj-cjjj-v7hg
/var/home/mas/.nuget/packages/stride.core.assets.compilerapp/4.3.0.2507/buildTransitive/Stride.Core.Assets.CompilerApp.targets(154,5): error MSB3073: The command "dotnet "/var/home/mas/.nuget/packages/stride.core.assets.compilerapp/4.3.0.2507/buildTransitive/../lib/net10.0/Stride.Core.Assets.CompilerApp.dll" --disable-auto-compile --project-configuration "Debug" --platform=Linux --project-configuration=Debug --compile-property:StrideGraphicsApi=OpenGL --output-path="/var/home/mas/Documents/Dev/gamedev/Issue01Project/bin/Debug/net10.0/data" --build-path="/var/home/mas/Documents/Dev/gamedev/Issue01Project/obj/stride/assetbuild/data" --package-file="/var/home/mas/Documents/Dev/gamedev/Issue01Project/Issue01Project.csproj" --msbuild-uptodatecheck-filebase="/var/home/mas/Documents/Dev/gamedev/Issue01Project/obj/Debug/net10.0/stride/assetcompiler-uptodatecheck"" exited with code 1.
Build failed with 1 error(s) and 6 warning(s) in 3.1s
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the Issue01Project.csproj steps and dotnet build on Ubuntu 24.04. Inspect the Stride.Core.Assets.CompilerApp.targets entry shown in the log and compare it with the Linux setup guide. Done means the same project builds successfully without the MSB3073 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, linux
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100