.NET10 Migration (#946)

Runtime and build
- Move all projects to .NET 10 with SDK-style project files and a shared
  Directory.Build.props (WIN/LINUX, x86/x64 defines)
- Load managed and unmanaged dependencies from libs/managed and
  libs/unmanaged through assembly and native library resolvers
- Compile party modes with Roslyn instead of CodeDom
- Update AppVeyor to the .NET 10 SDK and dotnet test
- Download the FFmpeg and gstreamer runtimes from the dependencies
  repository during the build
- Remove the VC++ 2015-2022 runtime check, no dependency needs it anymore

Graphics and windowing
- Replace the Direct3D 9 renderer with Direct3D 11 (Vortice)
- Pace Direct3D 11 frames with a frame latency waitable swap chain
- Move window, input and message boxes to SDL3
- Replace System.Drawing with SkiaSharp and WinForms with SDL3 and a
  software renderer

Video and audio
- Replace Acinerella with FFmpeg 8.1.3 (FFmpeg.AutoGen)
- Add hardware accelerated video decoding (D3D11VA, DXVA2, VideoToolbox,
  VAAPI, VDPAU) with software fallback
- Convert YUV video frames to RGB on the GPU in Direct3D 11 and OpenGL
- Add the video options HardwareDecoding, GpuColorConversion,
  DecoderThreads and VideoDownscaleResolution
- Update OpenAL to OpenTK 4 and NAudio recording to WasapiRecorder

Fixes
- Fix the song preview start and shorten the reporter buttons
- Fix a crash when opening the highscore without a selected song
- Use the options slide highlight in the party mode screens to avoid
  brightness flicker on VRR displays
- Disable GameInput in the x86 build, SDL3 crashes in GameInputCreate
  on 32-bit systems with the GameInput runtime installed
- Fix a truncation warning in PitchTracker
This commit is contained in:
McSchneidar authored and GitHub committed 2026-11-02 08:11:20 +01:00
1 parent 5767914372
commit cf2fa796e2
176 files changed
+5218 -8042

No files matched your search

+12 -26
View File
@@ -4,26 +4,19 @@ Runing Vocaluxe on Linux is not offically supported yet -but you can try it your
(the problematic part is fullfilling the runtime dependencies)
* Install ffmpeg 3.2 (a quick and dirty compile script can be found here: [installFFmpeg.sh](https://github.com/lukeIam/Vocaluxe/blob/travis/.travis/installFFmpeg.sh) )
* Get sure your gcc and g++ version is >= 4.8
* Install at least mono 5.8.0 ([HowTo install mono](http://www.mono-project.com/download/stable/))
* Clone the repository
You want to use this branch as it contains some linux specific changes
(compiles on Ubuntu 14.04): [travis@lukeIam/Vocaluxe](https://github.com/lukeIam/Vocaluxe/tree/travis)
* Navigate to the travis branch and execute (commands from [.travis.yml](https://github.com/lukeIam/Vocaluxe/blob/travis/.travis.yml)):
* Install the [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0)
* Get sure gcc, g++, make and pkg-config are installed
* Install the runtime dependencies:
- FFmpeg 8 (libavformat 62, libavcodec 62, libavutil 60, libswscale 9, libswresample 6)
- portaudio
- hidapi (libhidapi-libusb)
- openal (optional, only needed for the OpenAL playback)
- gstreamer 1.0 (optional, only needed for the GStreamer playback)
* Clone the repository and execute in its folder:
```bash
chmod ugo+x ./.build/linuxPostBuildEvent.sh
chmod ugo+x ./.build/linuxPreBuildEvent.sh
chmod ugo+x ./.travis/gitDescribe.sh
wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -P ./.travis/
config=Linux platform=x64
# ./.travis/gitDescribe.sh
mono ./.travis/nuget.exe restore
make -C PitchTracker
make -C Vocaluxe/Lib/Video/Acinerella
msbuild /p:Configuration=Release$config /p:Platform=$platform /p:TargetFrameworkVersion=v4.7 Vocaluxe.sln
make
```
* The build should complete without errors
* change to the Output directory:
@@ -32,15 +25,8 @@ cd Output
```
* Start Vocaluxe:
```bash
mono Vocaluxe.exe
./Vocaluxe
```
* Vocaluxe will start (you will see the splash screen) and then crash because runtime dependencies are missing
Required dependencies (by heart - can be incorrect and incomplete):
- gstreamer 1.0
- ffmpeg 3.2 (maybe we can use the build script which builds the libs at the moment)
- hidapi
- libgstreamersharpglue-1.0.0
- portaudio
- ?
* If GStreamer is not installed, set `PlayBackLib` to `PortAudio` in the `Config.xml`
* If yo make some progress we would be happy if you share it with us in a pull request/issue.