OpenFrameWorks------VS 2005中编译环境搭建

OpenFrameWorks------VS 2005中编译环境搭建
   boss一直在说要把Software的Interactive做的更好,在网上飘的时候发现了OpenFrameWork这个OpenSource的工程,感觉它是把Interactive做到了一种境界,当然对于艺术音乐更是一种境界(哦,顺便提一下基于OpenFrameWorks开发的另一个OpenSource工程,给个URL:http://nortd.com/cubit/这个可是大名鼎鼎的Apple公司的工程师写的Multiple Touch方面的),好了给出本主题开源工程的官网URL:http://www.openframeworks.cc

 

   废话少说哦,进入主题,还在上班呢!

   首先当然是DownLoad下开发包,http://www.openframeworks.cc/download,解压后就可以用VS 2005打开了。

 

   编译会发现C4819 warning.这个很好解决的,在出现这个warning的.h文件最前面加上

   #pragma warning (disable : 4819)

 

   (说明下:有人说VS 2005 SP1解决了这个问题,我没注意的,反正这次重新装系统后没有安装VS 2005 SP1)

  当然肯定还会在libs\qtdevwin\cincludes\icon.h这个文件中出现 Error C2001错误,点到错误的地方发现是乱码哦,官网的forum上有Admin和一个Korea关于这个的讨论(http://www.openframeworks.cc/forum/viewtopic.php?t=18&sid=a0892756fe8e417a3026084fc2ef8ac0),可以点进去看看。解决办法,我觉得最好的是用http://up.rexgo.net/rexgo/Icons.h  来代替出错的文件,也就copy and paste的过程。当然也可以copy下面的代码paste到你的icon.h文件中。

/*
File:       Icons.h
Contains:   Icon Utilities and Icon Services Interfaces.
Version:    Technology: Mac OS 8.5
Release:    QuickTime 6.0.2
Copyright:  (c) 1990-2001 by Apple Computer, Inc. All rights reserved
Bugs?:      For bug reports, consult the following page on
the World Wide Web:
http://developer.apple.com/bugreporter/
*/
#ifndef __ICONS__
#define __ICONS__
#ifndef __MACTYPES__
#include "MacTypes.h"
#endif
#ifndef __QUICKDRAW__
#include "Quickdraw.h"
#endif
#ifndef __FILES__
#include "Files.h"
#endif
#ifndef __CODEFRAGMENTS__
#include "CodeFragments.h"
#endif
#if PRAGMA_ONCE
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_IMPORT
#pragma import on
#endif
#if PRAGMA_STRUCT_ALIGN
#pragma options align=mac68k
#elif PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
/* The following are icons for which there are both icon suites and SICNs. */
/* Avoid using icon resources if possible. Use IconServices instead. */
enum {
kGenericDocumentIconResource = -4000,
kGenericStationeryIconResource = -3985,
kGenericEditionFileIconResource = -3989,
kGenericApplicationIconResource = -3996,
kGenericDeskAccessoryIconResource = -3991,
kGenericFolderIconResource  = -3999,
kPrivateFolderIconResource  = -3994,
kFloppyIconResource         = -3998,
kTrashIconResource          = -3993,
kGenericRAMDiskIconResource = -3988,
kGenericCDROMIconResource   = -3987
};
/* The following are icons for which there are SICNs only. */
/* Avoid using icon resources if possible. Use IconServices instead. */
enum {
kDesktopIconResource        = -3992,
kOpenFolderIconResource     = -3997,
kGenericHardDiskIconResource = -3995,
kGenericFileServerIconResource = -3972,
kGenericSuitcaseIconResource = -3970,
kGenericMoverObjectIconResource = -3969
};
/* The following are icons for which there are icon suites only. */
/* Avoid using icon resources if possible. Use IconServices instead. */
enum {
kGenericPreferencesIconResource = -3971,
kGenericQueryDocumentIconResource = -16506,
kGenericExtensionIconResource = -16415,
kSystemFolderIconResource   = -3983,
kHelpIconResource           = -20271,
kAppleMenuFolderIconResource = -3982
};
/* Obsolete. Use named constants defined above. */
enum {
genericDocumentIconResource = kGenericDocumentIconResource,
genericStationeryIconResource = kGenericStationeryIconResource,
genericEditionFileIconResource = kGenericEditionFileIconResource,
genericApplicationIconResource = kGenericApplicationIconResource,
genericDeskAccessoryIconResource = kGenericDeskAccessoryIconResource,
genericFolderIconResource   = kGenericFolderIconResource,
privateFolderIconResource   = kPrivateFolderIconResource,
floppyIconResource          = kFloppyIconResource,
trashIconResource           = kTrashIconResource,
genericRAMDiskIconResource  = kGenericRAMDiskIconResource,
genericCDROMIconResource    = kGenericCDROMIconResource,
desktopIconResource         = kDesktopIconResource,
openFolderIconResource      = kOpenFolderIconResource,
genericHardDiskIconResource = kGenericHardDiskIconResource,
genericFileServerIconResource = kGenericFileServerIconResource,
genericSuitcaseIconResource = kGenericSuitcaseIconResource,
genericMoverObjectIconResource = kGenericMoverObjectIconResource,
genericPreferencesIconResource = kGenericPreferencesIconResource,
genericQueryDocumentIconResource = kGenericQueryDocumentIconResource,
genericExtensionIconResource = kGenericExtensionIconResource,
systemFolderIconResource    = kSystemFolderIconResource,
appleMenuFolderIconResource = kAppleMenuFolderIconResource
};
/* Avoid using icon resources if possible. Use IconServices instead. */
enum {
kStartupFolderIconResource  = -3981,
kOwnedFolderIconResource    = -3980,
kDropFolderIconResource     = -3979,
kSharedFolderIconResource   = -3978,
kMountedFolderIconResource  = -3977,
kControlPanelFolderIconResource = -3976,
kPrintMonitorFolderIconResource = -3975,
kPreferencesFolderIconResource = -3974,
kExtensionsFolderIconResource = -3973,
kFontsFolderIconResource    = -3968,
kFullTrashIconResource      = -3984
};
/* Obsolete. Use named constants defined above. */
enum {
startupFolderIconResource   = kStartupFolderIconResource,
ownedFolderIconResource     = kOwnedFolderIconResource,
dropFolderIconResource      = kDropFolderIconResource,
sharedFolderIconResource    = kSharedFolderIconResource,
mountedFolderIconResource   = kMountedFolderIconResource,
controlPanelFolderIconResource = kControlPanelFolderIconResource,
printMonitorFolderIconResource = kPrintMonitorFolderIconResource,
preferencesFolderIconResource = kPreferencesFolderIc</span></span></span></span></p>
             <div align="center" class="pager"><span id="pagesSpan"> <span id="1">1</span> <a href="156101_2.html">2</a> <a href="156101_3.html">3</a> <a href="156101_4.html">4</a> <a href="156101_5.html">5</a> <a href="156101_6.html">6</a> <a href="156101_7.html">7</a> <a href="156101_8.html">8</a></span></div>
             <div class="ad7"><script language="javascript" src="/ad/2010/article/ad7.js"></script></div>
             <div class="ad8"><script language="javascript" src="/ad/2010/article/ad8.js"></script></div>
             <div class="index_main_err">如果图片或页面不能正常显示请<a href="javascript:void(0)" onClick="ReportError()" class= "redlink"><font color="#990000"><strong>点击这里</strong></font></a></div>
             </div>
             <div class="index_main_left_foot">
                  <div class="index_main_left_foot1">
                  <p><a href="javascript:window.external.addFavorite(self.location,document.title);">【收藏此页】</a><a href="http://bbs.firnow.com" target="_blank">【飞诺社区】</a><a href="#comment">【发表评论】</a><a href="javascript:window.close()">【关闭】</a></p>
                  <a href="#comment"><img src="http://images.cnblogs.com/2010/article/ping.gif" width="149" height="34" border="0" /></a>
                  </div>
                  <div class="index_main_left_foot2">
                                    <p>上一篇:<a href="/course/3_program/c++/cppjs/20090221/156100.html">C++  迷宫算法(迷宫老鼠)</a></p>
                                                      <p>下一篇:<a href="/course/3_program/c++/cppjs/20090221/156102.html">谈谈C#的私有成员的一个有趣的现象</a></p>
                                    </div>
             </div>
        </div>
        <div class="ad9"><script language="javascript" src="/ad/2010/article/ad9.js"></script></div>
        <div class="index_main_left_3">C++技术文章推荐文章</div>
        <div class="index_main_left_4">
          <ul>
                              <li><a href="/course/3_program/c++/cppjs/2008104/147441.html" target="_blank">        几道笔试题</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20071111/85611.html" target="_blank">VC++常用数据类型及其操作详解</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20100112/189439.html" target="_blank">程序员的争论</a></li>
                    <li><a href="/course/3_program/c++/cppjs/200899/140456.html" target="_blank">        c高手请进</a></li>
                    <li><a href="/course/3_program/c++/cppjs/2007925/73660.html" target="_blank">c99数组长度规定</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20090219/155995.html" target="_blank">Unicode 编码表 -来自wiki百科</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20071119/86892.html" target="_blank">C/C++常见考题深入分析之非完整版(我想永远也不可能完整的,呵呵)</a></li>
                    <li><a href="/course/3_program/c++/cppjs/2008717/133437.html" target="_blank">关于C语言中的结构体对齐问题</a></li>
                    </ul>
          <ul>
                              <li><a href="/course/3_program/c++/cppjs/200875/130473.html" target="_blank">结构体和类区别</a></li>
                    <li><a href="/course/3_program/c++/cppjs/200836/102848.html" target="_blank">tinyxmld的结束符号</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20090415/165072.html" target="_blank">How to solve can't see the Add Virtual Function/Add Windows Message Handler menus on the menu of the class in VC6</a></li>
                    <li><a href="/course/3_program/c++/cppjs/200847/108553.html" target="_blank">C++数据类型的属性与限制</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20090909/174419.html" target="_blank">Change notification</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20100122/193801.html" target="_blank">互斥锁,条件变量的多生产者,单消费者简单代码</a></li>
                    <li><a href="/course/3_program/c++/cppjs/2008615/125626.html" target="_blank">Windows Sockets: Using Class CAsyncSocket</a></li>
                    <li><a href="/course/3_program/c++/cppjs/20090825/171720.html" target="_blank">C# WinForm开发系列 - 文章索引</a></li>
                    </ul>
        </div>
        <div class="index_main_left_5">
              <div class="index_main_left_5_top"><p><a name="comment"></a>文章评论</p></div>
              <div id="divComment" class="index_main_left_5_main"></div>
        </div>
        <div class="index_main_left_6">
            <div class="index_main_left_6_left">
                 <div class="index_main_left_6_left_top">请您留言</div>
                 <div class="index_main_left_6_left_ceneter">
                  <form>
                   <table width="84%" height="216" border="0" cellpadding="10">
                     <tr>
                       <td width="19%" height="29">昵称:</td>
                       <td width="81%"><label>
                         <input type="text" class="index_main_left_6_left_ceneter_text" style="width:150px;" name="tbName" id="tbName" οnclick="this.focus();this.select()" maxlength="20" />
                       </label></td>
                     </tr>
                     <tr>
                       <td>验证码:</td>
                       <td>
                       <span style="float:left;"><input name="tbCode" id="tbCode" class="index_main_left_6_left_ceneter_text" type="text" size="6"  /></span><span id="spanCode" style="float:left; clear:right;"><img  id="Img2" οnclick="this.src=this.src"  style="display:none;"/></span>
                     </tr>
                     <tr>
                       <td height="26" colspan="2"><a href="http://bbs.firnow.com/register.aspx" style="color:#FF0000">注册会员</a> <a href="http://bbs.firnow.com/login.aspx">会员登录</a></td>
                     </tr>
                     <tr>
                       <td height="100" colspan="2"><label>
                         <a name="comment"></a><textarea name="tbContent" id="tbContent" class="index_main_left_6_left_ceneter_textarea" rows="5">
文章出处:飞诺网(www.firnow.com):http://dev.firnow.com/course/3_program/c++/cppjs/20090221/156101.html

 

 

转载于:https://www.cnblogs.com/fence/archive/2010/08/19/1803710.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值