Skip to content

Linux fails to compile in Ubuntu 24.04 LTS #369

Description

@masakk1

I'm trying to use Stride3d for the first time.

Platform

I'm running Ubuntu 24.04 LTS in a distrobox.

Steps to reproduce

  1. Install the necessary dependencies from the linux setup guide
sudo apt install dotnet10
sudo apt install libfreetype6-dev libopenal-dev libsdl2-dev libfreeimage-dev 
  1. Create project
dotnet new console --framework net10.0 --name Issue01Project
cd Issue01Project
  1. Add packages
dotnet add package Stride.CommunityToolkit --prerelease
dotnet add package Stride.CommunityToolkit.Linux --prerelease
dotnet add package Stride.CommunityToolkit.Bepu --prerelease
  1. Change to Linux platform.

    • Add <StridePlatform>Linux</StridePlatform> to the Issue01Project.csproj
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions