Building Plugins With Mac OS X

Once you've created the object file containing your plugin functions, you'll need to execute a command like the following to build the plugin file.

g++ -bundle -o myPlugin.o ./myPluginFuncs.o [required libraries] -bundle_loader /Applications/breve.app/Contents/MacOS/breve

Note that the location of breve.app may be different on your system, so you'll need to change part of the pathname accordingly. Regardless of the path to breve.app, you will need to append the text "/Contents/MacOS/breve".

The [required libraries] means that you may have to include linker options to include any other libraries that your plugin relies on. For example, if your plugin functions require code from the standard math library, you may need to add -lm.