vinniefalco / Amalgamate

A tool for creating an amalgamation from C and C++ sources
Other
434 stars 76 forks source link

How to run this under OSX? #6

Open logsol opened 9 years ago

logsol commented 9 years ago

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

ben-crowhurst commented 9 years ago

+1 *BSD/Linux/Solaris?

pejalo commented 4 years ago

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

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 commented 2 years ago

+1 *BSD/Linux/Solaris?

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