Skip to content

Compiling Camomile ELSE in Windows 10

Esteban Viveros edited this page Dec 29, 2020 · 18 revisions

To compile Camomile-ELSE in Windows first you will need to Install dependencies to set your compiling environment.

Install Dependencies:

image

Compilation

Compile pthread

open git-bash
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
Open command prompt to compile pthread
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/

Compile Camomile-ELSE

come back to git-bash and...

Clone Camomile-ELSE repository
cd ..
git clone --recursive https://github.com/emviveros/Camomile-ELSE.git
Copy pthread-win32 compilation to apropriate directory in "Camomile-ELSE\Dependencies"
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
Go to command prompt to compile LibPd and:
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
Now compile Camomile-ELSE vst3 Effects
cd ../../..\Effect\Builds\VisualStudio2015\

"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" CamomileFx.sln /nologo /p:Configuration=Release /p:Platform=x64
Compile Camomile-ELSE vst3 Instruments
cd ../../..\Instrument\Builds\VisualStudio2015\

"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" Camomile.sln /nologo /p:Configuration=Release /p:Platform=x64
Compile Camomile-ELSE LV2 dll
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