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

How to run this under OSX? #6

Open
logsol opened this issue Aug 1, 2015 · 3 comments
Open

How to run this under OSX? #6

logsol opened this issue Aug 1, 2015 · 3 comments

Comments

@logsol
Copy link

logsol commented Aug 1, 2015

So far, you only provide visual studio build settings. What steps would be necessary to compile this under OSX?

@ben-crowhurst
Copy link

+1 *BSD/Linux/Solaris?

@pejalo
Copy link

pejalo commented May 30, 2020

Here's how I got this to build on macOS Catalina with Xcode 11.4:

  • Create a new "Command Line Tool" project in Xcode
  • Delete main.cpp from the project
  • Drag the following files into the Project navigator, with "Copy items if needed" checked, and make sure they are added to the "target"
    • Amalgamate.cpp
    • AppConfig.h
    • juce_core_amalgam.cpp
    • juce_core_amalgam.h
    • (Do not include juce_core_amalgam.mm)
  • In the Project navigator, rename juce_core_amalgam.cpp to juce_core_amalgam.mm
  • In the project's Build Settings, under "Apple Clang - Language - Objective-C" change "Objective-C Automatic Reference Counting" from Yes to No
  • In the General settings for the target, under "Frameworks and Libraries" add Cocoa.framework

Build the project! If all goes well, Xcode should say "Build Succeeded"

Within the Project navigator, under the Products folder, you'll see the executable. Right click on it and "Show in Finder" to find it. Copy this file to wherever you want to use it. To run it in a terminal, you may need to change its access permissions first. For example if the executable is called Amalgamate, run chmod 755 Amalgamate.

@redthing1
Copy link

+1 *BSD/Linux/Solaris?

g++ juce_core_amalgam.cpp Amalgamate.cpp -o amalgamate -lstdc++ -lpthread -ldl

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

4 participants