emviveros / Camomile-ELSE

An audio plugin with Pure Data embedded that allows to load and to control patches
GNU General Public License v3.0
11 stars 0 forks source link

Compiling Camomile-ELSE in Windows #1

Closed emviveros closed 3 years ago

emviveros commented 3 years ago

Fail to compile Camomile-ELSE in Windows. Tried to follow compiling camomile in Windows tutorial in official Camomile repository

Here is the error log: log_Camomile_ELSE_Effect_compilation_FAIL.txt

The steps I did:

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\Esteban\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\Esteban\Documents\PortableGit\PortableGit\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 C:\Users\Esteban\Documents\PortableGit\PortableGit\Camomile-ELSE\Effect\Builds\VisualStudio2015\

"C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" CamomileFx.sln /nologo /p:Configuration=Release /p:Platform=x64

and it finalizes with lots of errors and warnings described in log above

emviveros commented 3 years ago

Solved.

You can track how to solve here: https://github.com/pierreguillot/Camomile/issues/138#issuecomment-737648473

Wiki with solution: https://github.com/emviveros/Camomile-ELSE/wiki/Compiling-Camomile-ELSE-in-Windows-10