in need of help pls

Problems building or running the engine, queries about how to use features etc.
Post Reply
jheppz
Gnoblar
Posts: 8
Joined: Fri Aug 07, 2009 7:52 am

in need of help pls

Post by jheppz »

Hi,

I am new to ubuntu 9.04 ogre programming. i have a basic code that compiles correctly
// ----------------------------------------------------------------------------
// Include the main OGRE header files
// Ogre.h just expands to including lots of individual OGRE header files
// ----------------------------------------------------------------------------
#include <Ogre.h>
// ----------------------------------------------------------------------------
// Include the OGRE example framework
// This includes the classes defined to make getting an OGRE application running
// a lot easier. It automatically sets up all the main objects and allows you to
// just override the bits you want to instead of writing it all from scratch.
// ----------------------------------------------------------------------------
#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.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
fprintf(stderr, "An exception has occurred: %s\n",
e.what());
#endif
}

return 0;
}
but when i run it nothing displays (no errors) im using codeblocks and ogre 1.4.9

also can add me to my msn for faster communication (jeffpaolo.ortiga@ingenico.com)

i really need your help
t

kindly help
jeff
User avatar
twilight17
Goblin
Posts: 297
Joined: Thu Aug 23, 2007 3:47 am
x 1

Re: in need of help pls

Post by twilight17 »

What do you expect it to do? You didn't tell it to do anything.
jheppz
Gnoblar
Posts: 8
Joined: Fri Aug 07, 2009 7:52 am

Re: in need of help pls

Post by jheppz »

hi twilight

base in http://www.ogre3d.org/forums/ucp.php?mode=login (If using the Ogre source distribution, this should be located in the "[OgreSource_DIRECTORY]\Samples\Common\include" directory. Be sure you can compile and run this code before continuing to the next section, though nothing other than a blank screen with a framerate box will show up until we add things later in the tutorial.)

so there should be a window that will display the fps right?


also im getting process terminated with status 0

any idea?

thanks
jeff
jheppz
Gnoblar
Posts: 8
Joined: Fri Aug 07, 2009 7:52 am

Re: in need of help pls

Post by jheppz »

got it working

thanks guys
User avatar
Fish
Greenskin
Posts: 131
Joined: Fri Aug 22, 2008 6:12 pm

Re: in need of help pls

Post by Fish »

And what exactly did you do to get it working? Please post your solutions as it may help others.

-Fish
jheppz
Gnoblar
Posts: 8
Joined: Fri Aug 07, 2009 7:52 am

Re: in need of help pls

Post by jheppz »

well in ubuntu the directory paths are different with windows os,

correcting the paths of all the resources and pluigin + quake3.cfg setting will make it ok..

thanks!
Post Reply