pierreguillot / Camomile

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

Compilation failure on Mac OS 10.12.6 Sierra #313

Closed Jakki12 closed 1 year ago

Jakki12 commented 1 year ago

First of all, thank you very much for your great work on this project, Pierre.

I am stumbling into a compilation failure on this system:

    Mac OS 10.12.6 High Sierra
    Xcode 9.2

Steps I took:

git clone --recursive https://github.com/pierreguillot/Camomile.git
cd Camomile
mkdir build && cd build

Running cmake .. -G"Xcode" failed telling me to update cmake. I did this by downloading it from the webpage, installing it so that I can run it as an application. Then I ran PATH="/Applications/CMake.app/Contents/bin":"$PATH" in order to be able to use it from the command line. After that cmake --versiongives me 3.24.2, which should be fine.

Indeed, when I ran cmake .. -G"Xcode" again that seemed to work fine.

Then I ran cmake --build .

This gave me the following errors:

After: === BUILD TARGET Camomile OF PROJECT Camomile WITH CONFIGURATION Debug ===

the Command

CompileC build/Camomile.build/Debug/Camomile.build/Objects-normal/x86_64/PluginEditorInteraction.o Source/PluginEditorInteraction.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

throws these errors:

/Users/wbjc/Documents/Jakki_Dokumente/Jobs/Kulturakademie_Luebeck/Studio/Camomile/Source/PluginEditorInteraction.cpp:265:69: error: 
      'this' cannot be explicitly captured when the capture default is '='
                m_file_chooser->launchAsync(folderChooserFlags, [=, this](FileChooser const& fileChooser)
                                                                  ~~^~~~
/Users/wbjc/Documents/Jakki_Dokumente/Jobs/Kulturakademie_Luebeck/Studio/Camomile/Source/PluginEditorInteraction.cpp:298:69: error: 
      'this' cannot be explicitly captured when the capture default is '='
                m_file_chooser->launchAsync(folderChooserFlags, [=, this](FileChooser const& fileChooser)
                                                                  ~~^~~~

And this command:

CompileC build/Camomile.build/Debug/Camomile.build/Objects-normal/x86_64/PluginEditorConsole.o Source/PluginEditorConsole.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

..throws this error:

/Users/wbjc/Documents/Jakki_Dokumente/Jobs/Kulturakademie_Luebeck/Studio/Camomile/Source/PluginEditorConsole.cpp:189:60: error: 'this'
      cannot be explicitly captured when the capture default is '='
        menu.showMenuAsync(juce::PopupMenu::Options(), [=, this](int level)
                                                         ~~^~~~

and this command:

CompileC build/Camomile.build/Debug/Camomile.build/Objects-normal/x86_64/PluginEditorObject.o Source/PluginEditorObject.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

throws this error:

The following build commands failed:
    CompileC build/Camomile.build/Debug/Camomile.build/Objects-normal/x86_64/PluginEditorConsole.o Source/PluginEditorConsole.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I greatly appreciate any help for getting this to compile:-)

Jakki12 commented 1 year ago

I seemded to have fixed the issue by replacing [=, this] with [&, this]