为CodeBlocks安装OpenFrameworksWizard

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.
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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值