Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure on Mac OS 10.12.6 Sierra #313

Closed
Jakki12 opened this issue Oct 5, 2022 · 1 comment
Closed

Compilation failure on Mac OS 10.12.6 Sierra #313

Jakki12 opened this issue Oct 5, 2022 · 1 comment

Comments

@Jakki12
Copy link

Jakki12 commented Oct 5, 2022

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
Copy link
Author

Jakki12 commented Oct 5, 2022

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

@Jakki12 Jakki12 closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant