How to run the Tutorials/Samples?

Problems building or running the engine, queries about how to use features etc.
aarrsstt
Gnoblar
Posts: 1
Joined: Thu Jan 16, 2025 8:40 pm

How to run the Tutorials/Samples?

Post by aarrsstt »

Ogre Version: 3.0.0
Operating System: Windows 11

Hello. Following the instructions, I was able to run the EmptyProject with Visual Studio 2022, I just had to delete the ALL_BUILD project and to change the Debugging, Working Directory to $(OutDir) (rather than to EmptyProject/bin/Release, since I'm building and running the Debug configuration).

I want to let you know however, that I wasn't able to find instructions on how to run the other Tutorials/Samples. I replace the contents of EmptyProject.cpp with the contents of Tutorial00_Basic.cpp and this should work, but it doesn't because the MainEntryPoints methods (createSystems, destroySystems, getWindowTitle) are not implemented there. The instructions mention that we can link against OgreSamplesCommon.lib and that should take care of the issue. OK, I'm adding OgreSamplesCommon_d.lib to Linker, Input, Additional Dependencies, but that doesn't change anything.

Some other errors on that page ("Using Ogre in your App") that I noticed:
"Ogre 2.1" instead of the current version, or just "Ogre Next".
"Include build/Release/include (that's where OgreBuildSettings.h is)" - that directory doesn't exist, that file is actually in build/include
"Add the link path build/Release/lib/" - should be build/lib/Release
Folder "build Internally used by CMake. Ignore it." - Can't ignore it (in Windows), because the solution and project files are generated there.

By the way you can't register in the forum with a Gmail email address.
You should link from the website to the Ogre Next documentation too.
In Learning Resources you are advertising some 14 to 22 year old books (Packtpub links are broken). Are they still usefull? You should at least add a note that they are outdated.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2136
Joined: Sun Mar 30, 2014 2:51 pm
x 1145

Re: How to run the Tutorials/Samples?

Post by paroj »

aarrsstt wrote: Thu Jan 16, 2025 11:17 pm

By the way you can't register in the forum with a Gmail email address.

thats a known issue:
https://github.com/OGRECave/ogre/issues/2924

aarrsstt wrote: Thu Jan 16, 2025 11:17 pm

In Learning Resources you are advertising some 14 to 22 year old books (Packtpub links are broken). Are they still usefull? You should at least add a note that they are outdated.

yes, they are still useful as the Ogre1 API is still mostly the same as used in the books.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2136
Joined: Sun Mar 30, 2014 2:51 pm
x 1145

Re: How to run the Tutorials/Samples?

Post by paroj »

aarrsstt wrote: Thu Jan 16, 2025 11:17 pm

By the way you can't register in the forum with a Gmail email address.

thats a known issue:
https://github.com/OGRECave/ogre/issues/2924

aarrsstt wrote: Thu Jan 16, 2025 11:17 pm

In Learning Resources you are advertising some 14 to 22 year old books (Packtpub links are broken). Are they still usefull? You should at least add a note that they are outdated.

yes, they are still useful as the Ogre1 API is still mostly the same as used in the books.

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5455
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1352

Re: How to run the Tutorials/Samples?

Post by dark_sylinc »

Hi!

Thanks for the feedback! Fixed.

I want to let you know however, that I wasn't able to find instructions on how to run the other Tutorials/Samples.

The rest of the samples are built alongside OgreNext, unless OGRE_BUILD_SAMPLES2 CMake option was not set.

EmptyProject is the exception because that's what people actually want: to have an out of the box project that links to OgreNext while being isolated from OgreNext.

Cheers.