[SOLVED] Problems building OgreNewt
kintaro
15-02-2006 18:30:02
I know that this is a very newbie question, but I tried to solve this problem in many different ways, I searched in this forum and find similar questions and tried those solutions, but nothing worked. So, I decided clean up every thing, and follow exactly the instructions in the wiki page. I am using OGRE 1.0.6, vs 2003, latest Newton SDK and OgreNewt. Here is my build log, from vs:
------ Build started: Project: OgreNewt_Main, Configuration: Release Win32 ------
Compiling...
cl : Command line error D2016 : '/O2' and '/RTC1' command-line options are incompatible
Build log was saved at "file://c:\Ogre\OgreNewt\OgreNewt_Main\obj\Release\BuildLog.htm"
OgreNewt_Main - 1 error(s), 0 warning(s)
------ Build started: Project: Demo07_CustomJoints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
MyCustomBallSocket.cpp
c:\OGRE\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo07.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo07_CustomJoints\Build\Release\BuildLog.htm"
Demo07_CustomJoints - 5 error(s), 0 warning(s)
------ Build started: Project: Demo06_SimpleBuoyancy, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo06.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
CEGUIFrameListener.cpp
c:\OGRE\OgreNewt\demos\Demo06_SimpleBuoyancy\CEGUIFrameListener.h(10) : fatal error C1083: Cannot open include file: 'OgreNoMemoryMacros.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo06_SimpleBuoyancy\Build\Release\BuildLog.htm"
Demo06_SimpleBuoyancy - 5 error(s), 0 warning(s)
------ Build started: Project: Demo05_SimpleVehicle, Configuration: Release Win32 ------
Compiling...
SimpleVehicle.cpp
c:\OGRE\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo05.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo05_SimpleVehicle\Build\Release\BuildLog.htm"
Demo05_SimpleVehicle - 5 error(s), 0 warning(s)
------ Build started: Project: Demo04_Raycasting, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo04.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
CEGUIFrameListener.cpp
c:\OGRE\OgreNewt\demos\Demo04_Raycasting\CEGUIFrameListener.h(10) : fatal error C1083: Cannot open include file: 'OgreNoMemoryMacros.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo04_Raycasting\Build\Release\BuildLog.htm"
Demo04_Raycasting - 5 error(s), 0 warning(s)
------ Build started: Project: Demo03_CollisionCallbacks, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo03.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
conveyorMatCallback.cpp
c:\OGRE\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
conveyorBelt.cpp
c:\OGRE\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo03_CollisionCallbacks\Build\Release\BuildLog.htm"
Demo03_CollisionCallbacks - 6 error(s), 0 warning(s)
------ Build started: Project: Demo02_Joints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo02.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo02_Joints\Build\Release\BuildLog.htm"
Demo02_Joints - 4 error(s), 0 warning(s)
------ Build started: Project: Demo01_TheBasics, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
demo01.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo01_TheBasics\Build\Release\BuildLog.htm"
Demo01_TheBasics - 4 error(s), 0 warning(s)
------ Build started: Project: Demo08_RagdollExample, Configuration: Release Win32 ------
Compiling...
Line3D.cpp
c:\OGRE\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonFrameListener.cpp
c:\OGRE\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo08.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\OgreNewt\demos\Demo08_RagdollExample\Build\Release\BuildLog.htm"
Demo08_RagdollExample - 4 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 9 failed, 0 skipped
So what should I do?
Thanks for help.
Horizon
16-02-2006 10:54:19
You've put OgreNewt in the wrong path. Look in the "Doc\html\index.html". OgreNewt comes with a project for MSVC++ 7.1 and MSVC++ 8.0 (2005). unfortunately I have no other IDE's or compilers setup on my system, so I cannot provide any other projects. the MSVC solution should build out of the box, assuming you take a few things into consideration.
unzip this in the ogreaddons directory alongside your "ogrenew" directory. to compile correctly, it also assumes you have the Newton SDK installed in another directory alongside this one called "NewtonSDK".
for example something like this:
* c:/programming/Ogre/ogrenew <- ogre installation
* c:/programming/Ogre/ogreaddons/OgreNewt <- OgreNewt main directory.
* c:/programming/NewtonSDK <- Newton SDK.
kintaro
16-02-2006 17:02:09
Hi Horizon, thanks for help.
I have change my diretory tree to be exactly like yours, and I also confirmed the includes directories and library directories, everything is ok. But there were build erros. Like, Cannot open include file: 'Ogre.h' or "newton.h". It seems that my vsc++ 7.1 is not finding OgreMain\include directory, even this is in included directory and others dirextories too.
So what should I do now?
My build log is below:
------ Build started: Project: OgreNewt_Main, Configuration: Debug Win32 ------
OgreNewt_Main - up-to-date.
------ Build started: Project: Demo07_CustomJoints, Configuration: Debug Win32 ------
Demo07_CustomJoints - up-to-date.
------ Build started: Project: Demo06_SimpleBuoyancy, Configuration: Debug Win32 ------
Demo06_SimpleBuoyancy - up-to-date.
------ Build started: Project: Demo05_SimpleVehicle, Configuration: Debug Win32 ------
Demo05_SimpleVehicle - up-to-date.
------ Build started: Project: Demo04_Raycasting, Configuration: Debug Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo04.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
CEGUIFrameListener.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Demo04_Raycasting\CEGUIFrameListener.h(10) : fatal error C1083: Cannot open include file: 'OgreNoMemoryMacros.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogrenew\ogreaddons\OgreNewt\demos\Demo04_Raycasting\Build\Debug\BuildLog.htm"
Demo04_Raycasting - 5 error(s), 0 warning(s)
------ Build started: Project: Demo03_CollisionCallbacks, Configuration: Debug Win32 ------
Demo03_CollisionCallbacks - up-to-date.
------ Build started: Project: Demo02_Joints, Configuration: Debug Win32 ------
Demo02_Joints - up-to-date.
------ Build started: Project: Demo01_TheBasics, Configuration: Debug Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Demo01_TheBasics\OgreNewtonFrameListener.h(2) : fatal error C1083: Cannot open include file: 'ExampleFrameListener.h': No such file or directory
OgreNewtonApplication.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Demo01_TheBasics\OgreNewtonApplication.h(2) : fatal error C1083: Cannot open include file: 'ExampleApplication.h': No such file or directory
demo01.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Demo01_TheBasics\OgreNewtonApplication.h(2) : fatal error C1083: Cannot open include file: 'ExampleApplication.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogrenew\ogreaddons\OgreNewt\demos\Demo01_TheBasics\Build\Debug\BuildLog.htm"
Demo01_TheBasics - 3 error(s), 0 warning(s)
------ Build started: Project: Demo08_RagdollExample, Configuration: Debug Win32 ------
Compiling...
Line3D.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonFrameListener.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(11) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
OgreNewtonApplication.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo08.cpp
c:\OGRE\ogrenew\ogreaddons\OgreNewt\demos\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogrenew\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Build\Debug\BuildLog.htm"
Demo08_RagdollExample - 4 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 6 succeeded, 3 failed, 0 skipped
Horizon
16-02-2006 17:20:10
I think you still have a small mistake in your directories. You have put "ogreaddons" inside the "ogrenew" directory. Actually these two should be besides eachother in the same directory (in my quote called "Ogre").
Like this:
Ogre
+ogrenew
-+OgreMain
+ogreaddons
-+OgreNewt
NewtonSDK
walaber
16-02-2006 17:31:35
here's how it looks on my computer:
PROGRAMMING\
OGRE\
ogrenew\
ogreaddons\ogrenewt
NewtonSDK\
kintaro
17-02-2006 16:56:31
Ok, thanks very much again for your valuable help. Yesterday, I tried in many ways to compile ogrenewt but it was unsuccesfull, again. Here is my build log, and I have change my directory tree to be like yours.
Not changing nothing in the solution config, the build log is:
------ Build started: Project: OgreNewt_Main, Configuration: Release Win32 ------
Compiling...
cl : Command line error D2016 : '/O2' and '/RTC1' command-line options are incompatible
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\OgreNewt_Main\obj\Release\BuildLog.htm"
OgreNewt_Main - 1 error(s), 0 warning(s)
------ Build started: Project: Demo07_CustomJoints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
MyCustomBallSocket.cpp
c:\OGRE\ogreaddons\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo07.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo07_CustomJoints\Build\Release\BuildLog.htm"
Demo07_CustomJoints - 5 error(s), 0 warning(s)
------ Build started: Project: Demo06_SimpleBuoyancy, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo06.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
CEGUIFrameListener.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo06_SimpleBuoyancy\CEGUIFrameListener.h(10) : fatal error C1083: Cannot open include file: 'OgreNoMemoryMacros.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo06_SimpleBuoyancy\Build\Release\BuildLog.htm"
Demo06_SimpleBuoyancy - 5 error(s), 0 warning(s)
------ Build started: Project: Demo05_SimpleVehicle, Configuration: Release Win32 ------
Compiling...
SimpleVehicle.cpp
c:\OGRE\ogreaddons\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo05.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo05_SimpleVehicle\Build\Release\BuildLog.htm"
Demo05_SimpleVehicle - 5 error(s), 0 warning(s)
------ Build started: Project: Demo04_Raycasting, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo04_Raycasting\OgreNewtonFrameListener.h(4) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
OgreNewtonApplication.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo04_Raycasting\OgreNewtonApplication.h(5) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
Demo04.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo04_Raycasting\OgreNewtonApplication.h(5) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo04_Raycasting\Build\Release\BuildLog.htm"
Demo04_Raycasting - 3 error(s), 0 warning(s)
------ Build started: Project: Demo03_CollisionCallbacks, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo03.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
conveyorMatCallback.cpp
c:\OGRE\ogreaddons\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
conveyorBelt.cpp
c:\OGRE\ogreaddons\OgreNewt\OgreNewt_Main\inc\OgreNewt_World.h(12) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo03_CollisionCallbacks\Build\Release\BuildLog.htm"
Demo03_CollisionCallbacks - 6 error(s), 0 warning(s)
------ Build started: Project: Demo02_Joints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo02.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo02_Joints\Build\Release\BuildLog.htm"
Demo02_Joints - 4 error(s), 0 warning(s)
------ Build started: Project: Demo01_TheBasics, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\Include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
demo01.cpp
..\Include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo01_TheBasics\Build\Release\BuildLog.htm"
Demo01_TheBasics - 4 error(s), 0 warning(s)
------ Build started: Project: Demo08_RagdollExample, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Ragdoll.h(15) : fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory
OgreNewtonApplication.cpp
c:\OGRE\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Ragdoll.h(15) : fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Ogre\ogreaddons\OgreNewt\demos\Demo08_RagdollExample\Build\Release\BuildLog.htm"
Demo08_RagdollExample - 2 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 9 failed, 0 skipped
My directory structury:
C:\Ogre
|
C:\Ogre\ogrenew
|
C:\Ogre\ogreaddons\ogrenewt
|
C:\NewtonSDK
Thanks for help.
kintaro
17-02-2006 17:22:27
Another question is if I change my ogre to version 1.0.7, I will havea any problem runnning ogrenewt 0.6 and or NewtonSDK?
Thanks for help
walaber
17-02-2006 18:53:41
i don't know what the problem could be... it should find ogre.h. try adjusting the include directories in OgreMain project file...
but also, make sure Ogre.h exists in ogre\ogrenew\ogremain\include
there should be no problem changing to Ovre 1.0.7, as lost as you have modified the demos so that any references to "destroyEntity" are changed to "removeEntity", which is the function name in 1.0.x
kintaro
17-02-2006 19:09:07
Yes, I checked all the include files, and everything is ok. Ogre.h really existis, and I had no problem in other applications. I know that this is not recomended, but I tried to put OGRE.h in demo->include directory, and it was accepted, but other file it was not find, and this file really existis, and is from ogremain->include. I am thinking that, here, the ogrenewt is not finding the ogremain->include directory, and I don't know why. There are other similar problems, like can´t find newton.h.
haffax
17-02-2006 20:19:34
Post your buildlog.htm.
Zach Griffin
18-02-2006 08:12:47
The first problem is the optimizations. Go to project properties then c/c++ optimizations->optimization and disable it. Then you should get some errors in the exampleframelistener.h which im still trying to work out. That error is:
C:\Programming\Ogre\ogreaddons\OgreNewt\demos\Include\ExampleFrameListener.h(256) : error C2039: 'setDetailLevel' : is not a member of 'Ogre::Camera'
C:\Programming\Ogre\ogreaddons\OgreNewt\demos\Include\ExampleFrameListener.h(256) : error C2065: 'SDL_SOLID' : undeclared identifier
It also does the same for SDL_WIREFRAME and SDL_POINTS. The code in exampleframe listener is:
if (mInputDevice->isKeyDown(KC_R) && mTimeUntilNextToggle <=0)
{
mSceneDetailIndex = (mSceneDetailIndex+1)%3 ;
switch(mSceneDetailIndex) {
case 0 : mCamera->setDetailLevel(SDL_SOLID) ; break ;
case 1 : mCamera->setDetailLevel(SDL_WIREFRAME) ; break ;
case 2 : mCamera->setDetailLevel(SDL_POINTS) ; break ;
}
mTimeUntilNextToggle = 0.5;
}
Zach Griffin
18-02-2006 11:01:17
Ok well that problem is solved now. The exampleframelistener.h used in OgreNewt is out of date, as with Dagon the setDetailLevel is now called SetPolygonMode. If you replace OgreNewt's version with the new Dagon version it will eliminate that problem. Of course you also get more problems which im trying to work out.
walaber
18-02-2006 18:29:14
i am updating OgreNewt now to link to the ExamleFrameListener.h file that is included with Ogre, instead of maintaining its own copy, which obviously I should have done before.
I will update CVS, and upload a new binary to my website later today.
CaseyB
19-02-2006 06:23:14
When should this fix be available through CVS?
walaber
19-02-2006 07:41:16
it already is. I also updated the download from my website. anyone having trouble compiling, I would recommend grabbing the new version, and we'll address any more problems from there!
CaseyB
19-02-2006 07:54:57
Apparently the CVS anonymous acces hasn't updated yet so I grabbed the archive from you site and when I tried to build it said that ExampleFrameListener.h wasn't found. Looking at the includes that is because it lives in ogrenew/samples/common/include, and the only ogre include was ogrenew/ogremain/include. Once I fixed that I got this linker error.
Linking...
Creating library lib\Release_DLL\OgreNewt_Main.lib and object lib\Release_DLL\OgreNewt_Main.exp
OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: void __thiscall Line3D::addPoint(class Ogre::Vector3 const &)" (?addPoint@Line3D@@QAEXABVVector3@Ogre@@@Z) referenced in function "private: static void __cdecl OgreNewt::Debugger::newtonPerPoly(struct NewtonBody const *,int,float const *,int)" (?newtonPerPoly@Debugger@OgreNewt@@CAXPBUNewtonBody@@HPBMH@Z)
OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: void __thiscall Line3D::drawLines(void)" (?drawLines@Line3D@@QAEXXZ) referenced in function "public: void __thiscall OgreNewt::Debugger::showLines(class OgreNewt::World *)" (?showLines@Debugger@OgreNewt@@QAEXPAVWorld@2@@Z)
OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: __thiscall Line3D::Line3D(void)" (??0Line3D@@QAE@XZ) referenced in function "public: void __thiscall OgreNewt::Debugger::showLines(class OgreNewt::World *)" (?showLines@Debugger@OgreNewt@@QAEXPAVWorld@2@@Z)
lib\Release_DLL\OgreNewt_Main.dll : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://c:\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\obj\Release_DLL\BuildLog.htm"
OgreNewt_Main - 4 error(s), 3 warning(s)
and the Buildlog.htm doesn't seem to have anything helpful. Any ideas?
Zach Griffin
19-02-2006 09:30:23
In your OgreNewt.h hash define dagon debugger. Theres a post about it somewhere.
CaseyB
19-02-2006 15:58:23
Cool thanks! I just added _OGRENEWT_DEBUGGER_DAGON to the preprocessir definitions and it worked like a charm!
walaber
19-02-2006 20:40:47
Casey- which project was missing the include directory? I thought I fixed them all... are you using vc8.0 or 7.1?
CaseyB
20-02-2006 00:10:10
It was the OgreNewt_Main project under VC8 in both the DebugDLL and ReleaseDLL builds.
I also had trouble building the demos becuase it couldn't find the CEGUIBase.lib. It was looking for it in ..\..\..\..\cegui_mk2\lib, but in my system I found it in C:\Ogre\ogrenew\Dependancies\lib\{Debug|Release}
walaber
20-02-2006 01:40:37
hmm. ok. I'll fix that.
Kerion
21-02-2006 04:38:15
In your OgreNewt.h hash define dagon debugger. Theres a post about it somewhere.
Err, I need to tell OgreNewt to use the Dagon debugger, when I am building it against Azathoth?
Just wan't to clarify, because I am building OgreNewt as we speak and running in to that issue...
EDIT: That obviously didn't work...as some Dagon objects were missing
So how do we get this to work with Azathoth?
EDIT2: Ahh, to get it to build correctly on Azathoth, you need to add Line3D.cpp as a source file from .\Demos\Include. This resolved the unresolved externals when building using VC8 and 1.0.7 Azathoth. If I had read the top of OgreNewton_Debugger.h sooner, I would have known this
walaber
21-02-2006 05:01:24
okay, I updated CVS with the new projects, and the download on my website is fixed as well.
yeah, the debugger is a little funky right now. hopefully we can get the dagon version working, as dagon will be released soon anyway
kintaro
21-02-2006 21:28:43
Ok, people, sorry about not posting replies in these days, but I formated my hd, and re-instaled OGRE 1.0.7, and latest NewtonSDK and updated OgreNewts from walaber website. I get errors, but they are different from the previous.
(In release mode) My new buildlog is :
------ Build started: Project: OgreNewt_Main, Configuration: Release Win32 ------
Compiling...
cl : Command line error D2016 : '/O2' and '/RTC1' command-line options are incompatible
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\obj\Release\BuildLog.htm"
OgreNewt_Main - 1 error(s), 0 warning(s)
------ Build started: Project: Demo07_CustomJoints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
MyCustomBallSocket.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\inc\OgreNewt_World.h(13) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo07.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo07_CustomJoints\Build\Release\BuildLog.htm"
Demo07_CustomJoints - 5 error(s), 0 warning(s)
------ Build started: Project: Demo06_SimpleBuoyancy, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo06.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
CEGUIFrameListener.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo06_SimpleBuoyancy\CEGUIFrameListener.h(10) : fatal error C1083: Cannot open include file: 'OgreNoMemoryMacros.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo06_SimpleBuoyancy\Build\Release\BuildLog.htm"
Demo06_SimpleBuoyancy - 5 error(s), 0 warning(s)
------ Build started: Project: Demo05_SimpleVehicle, Configuration: Release Win32 ------
Compiling...
SimpleVehicle.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\inc\OgreNewt_World.h(13) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo05.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo05_SimpleVehicle\Build\Release\BuildLog.htm"
Demo05_SimpleVehicle - 5 error(s), 0 warning(s)
------ Build started: Project: Demo04_Raycasting, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\OgreNewtonFrameListener.h(4) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
OgreNewtonApplication.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\OgreNewtonApplication.h(5) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo04.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\OgreNewtonApplication.h(5) : fatal error C1083: Cannot open include file: 'OgreNewt.h': No such file or directory
CEGUIFrameListener.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\CEGUIFrameListener.h(11) : fatal error C1083: Cannot open include file: 'CEGUI/CEGUI.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\Build\Release\BuildLog.htm"
Demo04_Raycasting - 4 error(s), 1 warning(s)
------ Build started: Project: Demo03_CollisionCallbacks, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo03.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
conveyorMatCallback.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\inc\OgreNewt_World.h(13) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
conveyorBelt.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\inc\OgreNewt_World.h(13) : fatal error C1083: Cannot open include file: 'newton.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo03_CollisionCallbacks\Build\Release\BuildLog.htm"
Demo03_CollisionCallbacks - 6 error(s), 0 warning(s)
------ Build started: Project: Demo02_Joints, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Demo02.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo02_Joints\Build\Release\BuildLog.htm"
Demo02_Joints - 4 error(s), 0 warning(s)
------ Build started: Project: Demo01_TheBasics, Configuration: Release Win32 ------
Compiling...
OgreNewtonFrameListener.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleFrameListener.h(38) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
OgreNewtonApplication.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Line3D.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\line3D.h(4) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
demo01.cpp
..\..\..\..\ogrenew\Samples\Common\include\ExampleApplication.h(24) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo01_TheBasics\Build\Release\BuildLog.htm"
Demo01_TheBasics - 4 error(s), 0 warning(s)
------ Build started: Project: Demo08_RagdollExample, Configuration: Release Win32 ------
Compiling...
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
OgreNewtonFrameListener.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo08_RagdollExample\Ragdoll.h(15) : fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory
OgreNewtonApplication.cpp
c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo08_RagdollExample\Ragdoll.h(15) : fatal error C1083: Cannot open include file: 'tinyxml.h': No such file or directory
Demo08.cpp
Generating Code...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo08_RagdollExample\Build\Release\BuildLog.htm"
Demo08_RagdollExample - 2 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 9 failed, 0 skipped
Thanks a lot for help.
walaber
21-02-2006 22:14:31
the compiler obviously cannot find the ogre include files.
you will have to work this out, this is just a directory issue.
also don't forget to download the tinyxml library if you want to be able to compile the Ragdoll demo.
kintaro
23-02-2006 19:19:03
Hi, verything complied ok execept Ragdol demo. The previous erros were an issue of directory, like walaber said. Another problem is that, even the demos compiled ok, they are not running. In putted the needded file in the work directory, but none demo runned, it crashes in windows error report windon. What should I do to run properly the demos?
For the ragdol demo, it is follow the buildlog:
------ Rebuild All started: Project: OgreNewt_Main, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'OgreNewt_Main', configuration 'Release|Win32'.
Compiling...
OgreNewt_World.cpp
OgreNewt_Vehicle.cpp
OgreNewt_TreeCollisionSerializer.cpp
OgreNewt_Tools.cpp
OgreNewt_RayCast.cpp
src\OgreNewt_RayCast.cpp(83) : warning C4018: '>' : signed/unsigned mismatch
OgreNewt_MaterialPair.cpp
OgreNewt_MaterialID.cpp
OgreNewt_Joint.cpp
OgreNewt_Debugger.cpp
OgreNewt_ContactCallback.cpp
OgreNewt_CollisionPrimitives.cpp
src\OgreNewt_CollisionPrimitives.cpp(384) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
src\OgreNewt_CollisionPrimitives.cpp(430) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
OgreNewt_Collision.cpp
OgreNewt_Body.cpp
OgreNewt_BasicJoints.cpp
OgreNewt_BasicFrameListener.cpp
Creating library...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\OgreNewt_Main\obj\Release\BuildLog.htm"
OgreNewt_Main - 0 error(s), 3 warning(s)
------ Rebuild All started: Project: Demo07_CustomJoints, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo07_CustomJoints', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
MyCustomBallSocket.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo07.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo07_CustomJoints\Build\Release\BuildLog.htm"
Demo07_CustomJoints - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo06_SimpleBuoyancy, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo06_SimpleBuoyancy', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo06.cpp
CEGUIFrameListener.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo06_SimpleBuoyancy\Build\Release\BuildLog.htm"
Demo06_SimpleBuoyancy - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo05_SimpleVehicle, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo05_SimpleVehicle', configuration 'Release|Win32'.
Compiling...
SimpleVehicle.cpp
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo05.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo05_SimpleVehicle\Build\Release\BuildLog.htm"
Demo05_SimpleVehicle - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo04_Raycasting, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo04_Raycasting', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo04.cpp
CEGUIFrameListener.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo04_Raycasting\Build\Release\BuildLog.htm"
Demo04_Raycasting - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo03_CollisionCallbacks, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo03_CollisionCallbacks', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo03.cpp
conveyorMatCallback.cpp
conveyorBelt.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo03_CollisionCallbacks\Build\Release\BuildLog.htm"
Demo03_CollisionCallbacks - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo02_Joints, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo02_Joints', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo02.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo02_Joints\Build\Release\BuildLog.htm"
Demo02_Joints - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo01_TheBasics, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo01_TheBasics', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
demo01.cpp
Generating Code...
Linking...
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo01_TheBasics\Build\Release\BuildLog.htm"
Demo01_TheBasics - 0 error(s), 1 warning(s)
------ Rebuild All started: Project: Demo08_RagdollExample, Configuration: Release Win32 ------
Deleting intermediate files and output files for project 'Demo08_RagdollExample', configuration 'Release|Win32'.
Compiling...
OgreNewtonFrameListener.cpp
OgreNewtonApplication.cpp
Line3D.cpp
\Programming\Ogre\ogreaddons\ogrenewt\demos\Include\Line3D.cpp(79) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
Demo08.cpp
Generating Code...
Linking...
OgreNewtonFrameListener.obj : error LNK2019: unresolved external symbol "public: __thiscall RagDoll::RagDoll(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class OgreNewt::World *,class Ogre::SceneNode *)" (??0RagDoll@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVWorld@OgreNewt@@PAVSceneNode@Ogre@@@Z) referenced in function "public: virtual bool __thiscall OgreNewtonFrameListener::frameStarted(struct Ogre::FrameEvent const &)" (?frameStarted@OgreNewtonFrameListener@@UAE_NABUFrameEvent@Ogre@@@Z)
OgreNewtonFrameListener.obj : error LNK2019: unresolved external symbol "public: __thiscall RagDoll::~RagDoll(void)" (??1RagDoll@@QAE@XZ) referenced in function "public: void * __thiscall RagDoll::`scalar deleting destructor'(unsigned int)" (??_GRagDoll@@QAEPAXI@Z)
../Bin/Release/Demo08_RagdollExample.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Programming\Ogre\ogreaddons\ogrenewt\demos\Demo08_RagdollExample\Build\Release\BuildLog.htm"
Demo08_RagdollExample - 3 error(s), 1 warning(s)
---------------------- Done ----------------------
Rebuild All: 8 succeeded, 1 failed, 0 skipped
Thanks a lot for help.
walaber
23-02-2006 19:22:01
as for the demos, please post the ogre.log file from the executable directory, it should give an idea why they are crashing.
as for the "scalable desctructor" thing... I remember seeing this before, but I cannot remember the solution. anyone?
kintaro
23-02-2006 19:39:09
Ok, the OGRE.log for running demo1 is:
16:18:08: Creating resource group General
16:18:08: Registering ResourceManager for type Material
16:18:08: Registering ResourceManager for type Mesh
16:18:08: Registering ResourceManager for type Skeleton
16:18:08: Loading library OgrePlatform_d.dll
16:18:08: OverlayElementFactory for type Panel registered.
16:18:08: OverlayElementFactory for type BorderPanel registered.
16:18:08: OverlayElementFactory for type TextArea registered.
16:18:08: Registering ResourceManager for type Font
16:18:08: ArchiveFactory for archive type FileSystem registered.
16:18:08: ArchiveFactory for archive type Zip registered.
16:18:08: DevIL version: Developer's Image Library (DevIL) 1.6.7 Oct 28 2005
16:18:08: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
16:18:08: Registering ResourceManager for type HighLevelGpuProgram
16:18:08: Loading library C:\Programming\Ogre\ogrenew\PlugIns\RenderSystem_Direct3D7
16:18:08: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: DynLib::load
Description: Could not load dynamic library C:\Programming\Ogre\ogrenew\PlugIns\RenderSystem_Direct3D7. System Error: Não foi possível encontrar o módulo especificado.
.
File: c:\programming\ogre\ogrenew\ogremain\src\ogredynlib.cpp
Line: 82
Stack unwinding: <<beginning of stack>>
Two things, ogredynlib.cpp existis in its right directory, but RenderSystem_Direct3D7 is in:
C:\Programming\Ogre\ogrenew\RenderSystems
So what should I do?
Thanks walaber for you help.
CaseyB
23-02-2006 19:47:04
Either put the plugin in the directory that the app is runnig from, or modify the plugin.cfg to point to the correct directory.
walaber
23-02-2006 22:46:05
go to ogrenew/samples/common/bin/debug (or release) and copy every .dll file over into where you are making your project (in this case, ogreaddons/ogrenewt/demos/bin/debug (or release)).
kintaro
01-03-2006 17:04:26
Thanks walaber, it worked. I also had to build the config files like resources.cfg. Every thing worked perfectly, thanks walaber and every one who helped me.
There are problems with the VC 7.1 project files.
The RTC1/O2 problem can be fixed easily enough by setting C++/Code Generation to Default.
There are also directory problems.
A directory structure like this:
\OGRE\ogrenew
\OGRE\ogreaddons\OgreNewt
\NewtonSDK
Does not work with the current include paths:
..\..\..\..\ogrenew\OgreMain\include
..\..\..\..\..\NewtonSDK\sdk
The OgreNewt_Main project file(s) live in a folder below OgreNewt:
\ogreaddons\OgreNewt\OgreNewt_Main
So the path to include Ogre should only go up three folders:
..\..\..\ogrenew\OgreMain\include
And the path to include Newton should only go up four folders:
..\..\..\..\NewtonSDK\sdk
Ditto the linker paths.
It should also be noted that the pre-compiled Ogre SDK doesn't live in a ogrenew folder, nor does it include a OgreMain folder. :-\
EDIT: This last problem can be easily fixed by adding additional paths for SDK users, like so:
include: ..\..\..\OgreSDK\include
link: ..\..\..\OgreSDK\lib
Users with both SDK and source in the same folder will need to be aware.
walaber
02-03-2006 23:02:11
i will do a check to see if the include paths are really messed up, and if so in what build configurations. thanks for the info, I will investigate it.
I realize SDK users have a different setup, I will add those directories as well.
Just thought I'd mention...
I grabbed the current CVS to check out the auto hull ragdoll (\o/) and the directory probs noted above are still present.
Oddly, OgreNewt_Main Debug included Sample correctly (three folders up) but OgreMain incorrectly (four folders up).
walaber
09-03-2006 05:23:03
I don't use VC7.1 anymore so it' difficult to check all of these... would you mind sending me an updated set of project files with properly setup include directories?
OvermindDL1
09-03-2006 09:08:56
I just keep changing them manually. The pathnames to link to ogrenewtmain lib and a couple others are one directory higher then you specify (just needs one more "../" at the beginning of the paths to fix.
walaber
09-03-2006 16:04:27
Bren provided me with a set of updated project files (thanks!).
they have been commited to CVS.
abhinavxrai
12-03-2006 13:05:27
Well, I am having more problem with the ogreNewt demos. So yes I have followed everything in this thread + one more problem.
When I can build the demos without any problems. However, when i run the demos, it loads a few dlls - throws two exceptions... unloads a few dll's and exits.
Any idea why?
abhinavxrai
12-03-2006 13:19:32
EDIT to my previous post!
So I found the following error in my ogre.log file
14:45:54: Registering ResourceManager for typr HighLevelGpuProgram
14:45:54: An exception has been thrown!
In the details it says could not load resources.cfg and plugins.cfg file
I couldn't understand this problem. Any ideas?
walaber
12-03-2006 18:17:10
where did you download OgreNewt from?
all ogre applications use a resources.cfg and config.cfg file to tell Ogre where it can find the various models / textures / etc.
there is a good chance you are trying to run the demo from inside your IDE, and you haven't set the "working directory" in the "debugging" settings section.
if you don't set the workig directory, it won't be able to find those files.
the working directory should be where the .exe is located (for the demos its demos/bin/debug or demos/bin/release)
abhinavxrai
13-03-2006 06:05:18
Walaber - thank you for your note. It saved me ages trying to figure out my problem. Yes, my working directory was set to a different path, because I changed directories.
I have downloaded OgreNewt from your website, as I just cannot log onto the CVS.
*EDIT I got he demos functioning, the only problem was the working directory, that had to set for each individual project. w00t w00t. Thanks again walaber!!