游戏开发论坛

 找回密码
 立即注册
搜索
查看: 5076|回复: 2

OGRE EXCEPTION(7:InternalErrorException):

[复制链接]

8

主题

21

帖子

21

积分

注册会员

Rank: 2

积分
21
发表于 2010-5-9 16:14:00 | 显示全部楼层 |阅读模式
排除万难终于编译过了我的第一个Ogre程序,出现了以下对话框,试了很多方法都不行,特来请教


是vs2008+ogre1.6.5下面的程序
#include "ExampleApplication.h"

class TutorialApplication : public ExampleApplication
{
protected:
public:
    TutorialApplication()
    {
    }

    ~TutorialApplication()
    {
    }
protected:
    void createScene(void)
    {
    }
};

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
    // Create application object
    TutorialApplication app;

    try {
        app.go();
    } catch( Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
        fprintf(stderr, "An exception has occured: %s\n",
                e.getFullDescription().c_str());
#endif
    }

    return 0;
}


然后资源配置文件应该没问题啊
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=../../media
FileSystem=../../media/fonts
FileSystem=../../media/materials/programs
FileSystem=../../media/materials/scripts
FileSystem=../../media/materials/textures
FileSystem=../../media/models
FileSystem=../../media/overlays
FileSystem=../../media/particle
FileSystem=../../media/gui
FileSystem=../../media/DeferredShadingMedia
FileSystem=../../media/PCZAppMedia
Zip=../../media/packs/cubemap.zip
Zip=../../media/packs/cubemapsJS.zip
Zip=../../media/packs/dragon.zip
Zip=../../media/packs/fresneldemo.zip
Zip=../../media/packs/ogretestmap.zip
Zip=../../media/packs/skybox.zip

0

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2012-6-12 10:45:00 | 显示全部楼层

Re:OGRE EXCEPTION(7:InternalErrorException):

我也遇到了这个问题,刚开始学OGRE,配置的问题差点让我放弃学习了,请问这是怎么解决的呢?隔了那么久还记得么

1

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2012-6-29 08:46:00 | 显示全部楼层

Re:OGRE EXCEPTION(7:InternalErrorException):

大意是 不能解压ZIP包,Ogre里面有lib是管理zip包的,就是不知道怎么整。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-2-28 02:56

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表