From 5049ba589525a52a0a7eeb74ae763a967acf6534 Mon Sep 17 00:00:00 2001 From: derivator Date: Fri, 14 Feb 2014 16:27:32 +0100 Subject: [PATCH] Make Vocaluxe buildable and playable on GNU/Linux Build with MonoDevelop or make. Summary of the biggest changes: * Correct for case differences between System.Data.SQLite and Mono.Data.Sqlite * Exclude Direct3D and DirectSound from linux builds * Provide linux versions of some windows-specific build events * Exclude VocaluxeTests from linux builds so xbuild will work * Add ability to build the native PitchTracker on linux * Fix some problems with acinerella module * Fix some windows-specific dependency checks that fail on linux * Set OpenGL color format to 24-bit on linux --- HowToBuildLinux.md | 4 ++++ Output/Linux/blank.cur | Bin 0 -> 326 bytes .../PartyModeChallenge.csproj | 7 +++++- .../PartyModeChallengeMedley.csproj | 7 +++++- .../PartyModeTicTacToe.csproj | 7 +++++- PitchTracker/Helper.h | 2 +- PitchTracker/PitchWrapper.h | 7 +++++- PitchTracker/makefile | 20 ++++++++++++++++++ Vocaluxe.sln | 8 ------- Vocaluxe/Base/CRecord.cs | 2 ++ Vocaluxe/CProgrammHelper.cs | 4 +++- Vocaluxe/Lib/Database/CCoverDB.cs | 3 +++ Vocaluxe/Lib/Database/CDatabaseBase.cs | 3 +++ Vocaluxe/Lib/Database/CHighscoreDB.cs | 4 ++++ Vocaluxe/Lib/Database/CResourceDB.cs | 4 ++++ Vocaluxe/Lib/Draw/CDrawBaseWindows.cs | 6 ++++++ Vocaluxe/Lib/Draw/COpenGL.cs | 4 ++++ Vocaluxe/Lib/Input/CHIDAPI.cs | 2 +- .../GstreamerSharp/CGstreamerSharpAudio.cs | 4 ++-- .../CGstreamerSharpAudioStream.cs | 2 +- .../Record/PortAudio/CPortAudioRecord.cs | 3 +++ Vocaluxe/Lib/Video/Acinerella/CAcinerella.cs | 2 +- Vocaluxe/Lib/Video/Acinerella/acinerella.c | 3 ++- Vocaluxe/Lib/Video/Acinerella/makefile | 8 +++++-- Vocaluxe/Program.cs | 3 +++ Vocaluxe/Vocaluxe.csproj | 20 ++++++++++-------- VocaluxeLib/VocaluxeLib.csproj | 4 +++- makefile | 12 +++++++++++ 28 files changed, 123 insertions(+), 32 deletions(-) create mode 100644 HowToBuildLinux.md create mode 100644 Output/Linux/blank.cur create mode 100644 PitchTracker/makefile create mode 100644 makefile diff --git a/HowToBuildLinux.md b/HowToBuildLinux.md new file mode 100644 index 00000000..ebce087c --- /dev/null +++ b/HowToBuildLinux.md @@ -0,0 +1,4 @@ +# Build Vocaluxe - HowTo (Linux) + +* Clone the repository (see [this](https://github.com/Vocaluxe/Vocaluxe/blob/develop/HowToBuildWin.md) for help) +* Navigate to the cloned repository and execute `make`. Make sure that all dependencies are installed and the process completes without errors. \ No newline at end of file diff --git a/Output/Linux/blank.cur b/Output/Linux/blank.cur new file mode 100644 index 0000000000000000000000000000000000000000..048f06b4aefde54e0ff825ccb5a5db4d7001d513 GIT binary patch literal 326 zcmZQzU}9ioP*7k10|Q0|1~DK@1BexX*a3(cfe;L!6oi8y|NsAw;0zE8=!O9W0CiJ? AlK=n! literal 0 HcmV?d00001 diff --git a/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj b/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj index 193da7d0..1d0a49a9 100644 --- a/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj +++ b/PartyModes/PartyModeChallenge/PartyModeChallenge.csproj @@ -93,9 +93,14 @@ - if exist "$(SolutionDir)Output\PartyModes\$(TargetName)\Code" rd "$(SolutionDir)Output\PartyModes\$(TargetName)\Code" /S /Q + if exist "$(SolutionDir)Output\PartyModes\$(TargetName)\Code" rd "$(SolutionDir)Output\PartyModes\$(TargetName)\Code" /S /Q cd $(SolutionDir)Partymodes\ xcopy "$(ProjectDir)*.cs" "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" /EXCLUDE:Excludes.txt /I /Y + rm -rf "$(SolutionDir)Output\PartyModes\$(TargetName)\Code" +mkdir -p "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" +cp -R $(ProjectDir)*.cs "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\" +rm -f "$(SolutionDir)Output\PartyModes\$(TargetName)\Code\GlobalSuppressions.cs" +