Adding Juce to existing projects


#1

Hi, are there any guidelines anywhere for adding Juce to an existing project, i.e. not using Intro/Projucer?

 

thx


#2

I don't know about any guidelines.

And I haven't done this for years. But some things I do remeber that might help:

It depends on what you want to do.
If you don't need any JUCE GUI stuff, it might work to just add the classes (and their dependencies) you want to use.
If not and you run your own event loop, call

initialiseJuce_GUI();

otherwise, use the START_JUCE_APPLICATION macro when initialising your application.

An old project where I contributed an "audio engine" using JUCE to an Objective-C codebase:
https://github.com/klangfreund/Choreographer/tree/master/Audio%20Engine
The AudioEngine.mm is the main interface between.


#3

Hi, it may not help entirely, but I haven't found any guideline for integrating the libraries into a project.
All you need to do is to add the appconfig, juceheader.h and juceheader.cpp to your project and you are set!