-
Notifications
You must be signed in to change notification settings - Fork 0
Compiling Camomile ELSE in Windows 10
To compile Camomile-ELSE in Windows first you will need to Install dependencies to set your compiling environment.
-
Install git-portable: https://github.com/git-for-windows/git/releases/download/v2.29.2.windows.1/PortableGit-2.29.2-64-bit.7z.exe
-
will use git-bash
-
in this tutorial I assume you will install git-portable in folder:
C:\Users\<<your_user>>\Documents\
-
Install CMake: https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-win64-x64.msi
- Install with default settings
-
Install Visual Studio Community 2015 (lot of time!! and requires login in MS) https://visualstudio.microsoft.com/vs/older-downloads/
- with 8.1 sdk
- Add dirent.h and unistd.h files to
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include
. These files are needed to compile ELSE library in Camomile.- download
dirent.h
from https://github.com/tronkko/dirent/releases - download
unistd.h
from https://github.com/win32ports/unistd_h
- download
git clone -q https://github.com/GerHobbelt/pthread-win32.git
cd pthread-win32
sed -i 's/4820;4668;4255;/4820;4668;4255;4711;4100;4312;4127;4296;4456;4619;4310;4311;/' pthread_lib.2015.vcxproj
sed -i 's/MultiThreadedDLL/MultiThreaded/' pthread_lib.2015.vcxproj
sed -i 's/MultiThreadedDebugDLL/MultiThreadedDebug/' pthread_lib.2015.vcxproj
cd C:\Users\<<your_user>>\Documents\PortableGit\PortableGit\pthread-win32
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" pthread.2015.sln /t:pthread_lib /nologo /verbosity:quiet /p:Configuration=Release /p:Platform=x64 /p:OutDir=lib/
come back to git-bash and...
cd ..
git clone --recursive https://github.com/emviveros/Camomile-ELSE.git
cp ./pthread-win32/pthread.h ./Camomile-ELSE/Dependencies/LibPd/pure-data/src/pthread.h && cp ./pthread-win32/sched.h ./Camomile-ELSE/Dependencies/LibPd/pure-data/src/sched.h && cp ./pthread-win32/semaphore.h ./Camomile-ELSE/Dependencies/LibPd/pure-data/src/semaphore.h && cp ./pthread-win32/lib/pthread_lib.lib ./Camomile-ELSE/Dependencies/LibPdBuild/VisualStudio2015/pthread.lib && cp ./pthread-win32/lib/pthread_lib.lib ./Camomile-ELSE/Dependencies/LibPdBuild/pthread.lib
cd C:\Users\<<your_user>>\<<PortableGit_directory>>\Camomile-ELSE\Dependencies\LibPdBuild\VisualStudio2015
"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 14 2015 Win64" ..
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" libpd.sln /t:libpdstatic /nologo /verbosity:quiet /p:Configuration=Release /p:Platform=x64
cd ../../..\Effect\Builds\VisualStudio2015\
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" CamomileFx.sln /nologo /p:Configuration=Release /p:Platform=x64
cd ../../..\Instrument\Builds\VisualStudio2015\
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" Camomile.sln /nologo /p:Configuration=Release /p:Platform=x64
cd ../../..\LV2\Builds\VisualStudio2015\
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" CamomileLV2.sln /nologo /p:Configuration=Release /p:Platform=x64
if you need to clean build for whatever do:
for clean Effect compilation, in Camomile-ELSE\Effect\Builds\VisualStudio2015
folder do:
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" CamomileFx.sln /t:clean /p:Configuration=Release /p:Platform=x64
for clean Instrument compilation, in Camomile-ELSE\Instrument\Builds\VisualStudio2015
folder do:
"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" Camomile.sln /t:clean /p:Configuration=Release /p:Platform=x64