(feedback)
IMHO, things are nicely explained and easy to follow, except a few difficulty that may occur only to me
(Windows 7, 32 bits, VS2015):-
1. In
Downloading Ogre (
https://ogrecave.github.io/ogre/api/2.1 ... ndows.html), I believe the code (and the related image) is wrong :-
Code: Select all
hg clone https://bitbucket.org/cabalistic/ogredeps Dependencies
^ "Dependencies" should be removed
If I follow the tutorial precisely, I will get an error at tortoiseHg "repository not found".
2. In
Building Ogre> step 7, I faced this error :-
Code: Select all
1>D:\__installed\prog_232_ogre3D\inst_08\ogre\OgreMain\src\OgreSceneManager.cpp :
fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
so I need to add the flag :
Code: Select all
Solution Explorer > OgreMain > (right click) property pages > C/C++ > Command Line
change from "/Zm256" to "/Zm256 /bigobj" (both without quote)
3. In
Speeding things up (
https://ogrecave.github.io/ogre/api/2.1 ... urApp.html), I believe the table Parameter-Description should appear before Folder-Description.
As a cmake newbie, I misunderstood that the first table (Folder-Description) is what I should fill in.
4. In
Creating your application with 'EmptyProject' script
It would be nice to shows how to use "symbolic links". (this link might be good
https://www.howtogeek.com/howto/16226/c ... -or-linux/)
This is my first time for such feature, so it is scary that I have to use an external website.
5. In
Creating your application with 'EmptyProject' script
I faced an issue at step 3. I got this error (or warning) at CMake when press "Configure":-
Code: Select all
SDL2MAIN_LIBRARY = SDL2MAIN_LIBRARY-NOTFOUND
SDL2_INCLUDE = SDL2_INCLUDE_DIR-NOTFOUND
SDL2_LIBRARY_TEMP = SDL2_LIBRARY_TEMP-NOTFOUND
I solved it by following spookyboo's guide (
http://www.ogre3d.org/tikiwiki/tiki-ind ... with+CMake) :-
1) open .sln in "Dependencies\src\SDL2" and compile it both debug & release.
2) fill the cmake's textbox that show error as :-
Code: Select all
SDL2MAIN_LIBRARY = (something)/EmptyProject/Dependencies/ogre/ogredeps/src/SDL2/VisualC/Win32/Release/SDL2main.lib
SDL2_INCLUDE_DIR = (something)/EmptyProject/Dependencies/ogre/ogredeps/src/SDL2/include
SDL2_LIBRARY_TEMP = (something)/EmptyProject/Dependencies/ogre/ogredeps/src/SDL2/VisualC/Win32/Release/SDL2.lib
6. After all the steps in both links, I can compile, but can't run 'EmptyProject'.
Code: Select all
The program can't start because SDL2.dll is missing from your computer.
Try reinstalling the program to fix this problem.
I fixed it by copy a file "SDL2.dll" from "Dependencies\ogre\ogredeps\src\SDL2\VisualC\Win32\Release" to
"(something)\EmptyProject\bin\Release"
7. Finally, I can run, but there is no rendering system to select.
The problems seem to be at "Root::loadPlugins...", it doesn't find a pluginsfile = "../Data/plugins_d.cfg".
1) make sure "EmptyProject\bin\Data" has some files like :- ogre.cfg, plugins_d.cfg
2) make sure "EmptyProject\bin\Debug\Plugins" has some files like :- RenderSystem_GL3Plus_d.dll, RenderSystem_Direct3D11_d.dll
3) Project property> General> Output directory = (something)\EmptyProject\bin\$(Configuration)
Ogre seems to expect a correct "Data" folder to place at "../Data" relative to "Project property> General> Output directory".
8. The rendering window (GL3+) appear but all black and glitchy (seem like non-responding), and I can't use any program beside Task Manager.
- I solved it by setting it to non-full screen. I doubt full-screen is not supported.
Edit: I can finally make it full-screen. Note that if a program crashes while Ogre is in Full-screen mode, the Windows will freeze in a short period.
For debugging, it is better to test in non-full-screen.
Thank for writing this tutorial and cmake script.
Despite the difficulty I faced, it is far easier than before.