Linking an addon to an existing project
If you are working on the project and suddenly realize that you need to link an addon, don't worry. You can do it at any time by performing the following steps:
If the addon is not installed in the
addons
folder yet, download and install it by following instructions from the Installing a non-core addon section.Add all the
.h
,.cpp
, and.lib
or.a
files from thesrc
andlib
folders of the addon to your development environment's project.If necessary, add paths to the addon's folder and all its subfolders into the project's settings.
Tip
Most addons contain the file install.xml
in their folders. This file describes the exact information about linking an addon for each platform. By the way, Project Generator uses this information to link an addon. You can read this file and follow its information to link the addon yourself.
Note, for adding paths to addon's folder in openFrameworks's project for Linux, you need to just add line with the addon's name in addons.make
file in the project's folder. See details at http://www.openframeworks.cc/setup/linux-codeblocks/.