InstallingOpenFrameworksWizard
Note: for now this wizard only works for CodeBlocks on Windows Note: this is work in progress, please message me at the openframeworks forum
Introduction¶
This project contains a wizard which lets you easily create new openFrameworks projects. You just select the ofAddons you want to use in your project and all includes, linker information are set for you.
Details¶
To install this wizard follow these steps.
1. Export the repository¶
(You can download a nice command line SVN client from: http://www.sliksvn.com/en/download or use http://tortoisesvn.tigris.org/)
svn export http://ofcodeblocks.googlecode.com/svn/trunk/ ofcodeblocks-read-only
2. Copy the wizard files to the CodeBlocks installation¶
The wizard files are located in the wizard directory. Put them in (for a default CodeBlocks installation) this directory:
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/
After copying the files you should have a folder like:
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/logo.png
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/wizard.xrc
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/wizard.png
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/wizard.script
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/files/main.php
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/files/testApp.h
C:/Program Files/CodeBlocks/share/CodeBlocks/templates/wizard/of/files/testApp.cpp
3. Start CodeBlocks and add the wizard¶
After starting CodeBlocks follow these steps:
- File > New > Project
- Click right mouse button on one of the project
- Select Edit global registration script
- Add this line in the RegisterWizards() function (around line 66 but in the RegisterWizards() function)
RegisterWizard(wizProject, _T("openframeworks"), _T("OpenFrameworks"), _T("2D/3D Graphics"));
- Press CTRL+S (save the file)
- Close and restart CodeBlocks
4. Create a new openFrameworks project with the wizard¶
- File > New > Project > OpenFrameworks (press OK)
- Fill in your project details (Project title, Folder, Filename). Note that you must create your project in the same directory where you installed openFrameworks By creating your project in the openFrameworks directory your project will stay portable (files are linked/included using relative paths). So create a directory like:
D:/of/addons
D:/of/apps/
D:/of/apps/MYPROJECTS/ <-- create such a directory (for example your name :> )
D:/of/....
- Select the addons you want to use for your project (you can use CTRL + SHIFT + MouseClick to add multiple addons). Addons which depend on each other will be added to your project automatically; for example the ofxOsc needs the ofxNetwork, when adding ofxOsc we add ofxNetwork for you.
- Click 'next', select your projects (debug/release) and Finish