Well, after all that, although I did successfully build OGRE and CEGUI (and QuickGUI as well), exactly the same error occurred with the newly built libs as did with the Ubuntu binaries 24 hours ago. When I tried to run the initial code in Basic Tutorial 1, it immediately exited the program with this error ...
Code:
An exception has occurred: OGRE EXCEPTION(6:FileNotFoundException): 'resources.cfg' file not
found! in ConfigFile::load at OgreConfigFile.cpp (line 84)
*-*-* OGRE Shutdown
... and that is also exactly what happened when I ran the SampleApp code in CodeBlocks' ogre project (after fixing up the Project Properties). The missing final step needed to successfully run the sample code is that there must be a 'resources.cfg' file in the project root directory containing the following:
Code:
# Resource locations to be added to the 'boostrap' path
# This assumes that the entire Samples/Media directory from the OGRE source
# has been copied to the project root directory.
# 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
(I just took the resources.cfg file from Samples/Common/bin and edited the paths.)
Now, the sample code actually runs! It would probably be helpful to the next new user if you would edit your Post #1 to include this resources.cfg file in your Step 5 ("Creating an Ogre Project").
Bookmarks