Install problems

hotmirror

14-06-2010 19:48:40

Hi, I'm new here and I have a little problem :D

I have Ogre 1.7 on my computer (windows 7 prof.) and I work with Microsoft Visual C++ 2010 Express Edition...
Now I want to install the OgreOde and I downloaded the OgreOde SDK (this one http://tuan.kuranes.free.fr/Ogre.html#O ... 2-Jan-2006) and Ode SDK (here http://www.ode.org/), but i really have no idea what to do now. I tried some "install tutorials" (like this one http://www.ogre3d.org/tikiwiki/Compile%20OgreOde) but i always got some errors... Yesterday I just tried to include all the include-folder and library-folders of the OgreOde and the Ode SDK to my project, but i got the followng errors:

1>------ Erstellen gestartet: Projekt: Ogre-Game, Konfiguration: Debug Win32 ------
1> 01.cpp
1> Unknown compiler version - please run the configure tests and report the results
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\smart_ptr\detail\spinlock_w32.hpp(62): error C3861: "BOOST_INTERLOCKED_EXCHANGE": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\thread_primitives.hpp(214): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\thread_primitives.hpp(228): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\thread_heap_alloc.hpp(70): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\basic_timed_mutex.hpp(46): error C3861: "BOOST_INTERLOCKED_EXCHANGE_POINTER": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\basic_timed_mutex.hpp(64): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\basic_timed_mutex.hpp(129): error C3861: "BOOST_INTERLOCKED_EXCHANGE_ADD": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\basic_timed_mutex.hpp(152): error C3861: "BOOST_INTERLOCKED_COMPARE_EXCHANGE_POINTER": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\thread_data.hpp(62): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(62): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(67): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(114): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(223): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(238): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(397): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>c:\program files\ogre3d\ogresdk_vc10_v1-7-1\boost_1_42\boost\thread\win32\shared_mutex.hpp(478): error C3861: "BOOST_VERIFY": Bezeichner wurde nicht gefunden.
1>d:\visual c++\projekte\ogre-game\ogre-game\01.cpp(82): warning C4305: 'Argument': Verkürzung von 'double' in 'float'
1>d:\visual c++\projekte\ogre-game\ogre-game\01.cpp(82): warning C4305: 'Argument': Verkürzung von 'double' in 'float'
1>d:\visual c++\projekte\ogre-game\ogre-game\01.cpp(82): warning C4305: 'Argument': Verkürzung von 'double' in 'float'
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========


So, maybe someone could give me some instructions how I get it work or somthing like that...
hotmirror :)

Khuran

15-06-2010 08:34:52

If you're not used to it, it's a real mess :mrgreen:

First of all, the OgreOde SDK is outdated. Download the wrapper from the Addons section in OGRE home.

Then you need to build the Ode libraries, then the OgreOde ones, and include them in your project.

To build the Ode libraries you need to execute premake4.exe (in the "build" folder of Ode) with the msdos prompt to create the project files, and then build them with your compiler.
Only then, you have to use CMake to build the OgreOde libraries. Set as source folder the OgreOde main folder.

P.S. I'm a newbie too, I hope this helps :D

hotmirror

15-06-2010 15:46:14

Hey, thank you for the answer!!
I will try that out now :)
hotmirror

hotmirror

15-06-2010 16:49:45

So, I build the ode librarys with premake in the build-folder successfully....but CMake gave me some errors when I trie to build the OgreOde librarys :(
I chose "C:/Program Files/Ogre3d/ode-0.11.1/OgreOde" as the Source-Folder. Then I chose "C:\Program Files\Ogre3d\OgreOde-Build" as Build-Folder, but I got theese errors:

Cmake:


Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
CMake Error: Could not COPY_FILE.
OutputFile: ''
copyFile: 'C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

Unable to find executable for try_compile: tried "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

Detecting C compiler ABI info - done
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
file STRINGS file "C:/Program
Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeDetermineCompilerABI_C.bin"
cannot be read.
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:15 (PROJECT)


Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
CMake Error: Could not COPY_FILE.
OutputFile: ''
copyFile: 'C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin'

Unable to find executable for try_compile: tried "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and "C:/Program Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

Detecting CXX compiler ABI info - done
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
file STRINGS file "C:/Program
Files/Ogre3d/OgreOde-Build/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin"
cannot be read.
Call Stack (most recent call first):
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:64 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:15 (PROJECT)


Looking for ODE...
ODE_PREFIX_PATH changed.
Could not locate ODE
CMake Error at CMake/FindPkgMacros.cmake:112 (message):
Required library ODE not found! Install the library (including dev
packages) and try again. If the library is already installed, set the
missing variables manually in cmake.
Call Stack (most recent call first):
CMake/FindODE.cmake:69 (findpkg_finish)
CMakeLists.txt:40 (FIND_PACKAGE)


Configuring incomplete, errors occurred!

Do you know what I do wrong? Do I have to copy the OgreOde-folder into the ode-0.11.1-folder or should I copy it into another one?
hotmirror :)

Khuran

16-06-2010 07:23:08

I remember that I had to change manually the ODE_SOURCE path, since CMake set it at C:\Program Files\ode-0.11-1\ and I had extracted it in another directory.
If you have ode in C:\Program Files, I don't know what is wrong, sorry :?

hotmirror

17-06-2010 20:16:40

So, i tried the som different ways to get it work, and now I have the following OgreOde Librarys:

-OgreOde_Core_d.lib
-OgreOde_Loader_d.lib
-OgreOde_Prefab_d.lib

But if I change the Prebuildevent to "dSINGLE" I get the following errors:


1>------ Erstellen gestartet: Projekt: Demo_SimpleScenes, Konfiguration: Debug Win32 ------
2>------ Erstellen gestartet: Projekt: Demo_Landscape, Konfiguration: Debug Win32 ------
2>MSVCRTD.lib(crtexe.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_main" in Funktion "___tmainCRTStartup".
2>C:\Program Files\Ogre3d\OgreOde-Build\bin\Debug\Demo_Landscape.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_main" in Funktion "___tmainCRTStartup".
1>C:\Program Files\Ogre3d\OgreOde-Build\bin\Debug\Demo_SimpleScenes.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
3>------ Erstellen gestartet: Projekt: Demo_GranTurismOgre, Konfiguration: Debug Win32 ------
3>MSVCRTD.lib(crtexe.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_main" in Funktion "___tmainCRTStartup".
3>C:\Program Files\Ogre3d\OgreOde-Build\bin\Debug\Demo_GranTurismOgre.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
4>------ Erstellen gestartet: Projekt: ALL_BUILD, Konfiguration: Debug Win32 ------
4> Der Befehl "dSINGLE" ist entweder falsch geschrieben oder
4> konnte nicht gefunden werden.
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: Der Befehl "dSINGLE
4>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(103,5): error MSB3073: :VCEnd" wurde mit dem Code 9009 beendet.
========== Erstellen: 0 erfolgreich, Fehler bei 4, 5 aktuell, 0 übersprungen ==========


I get these errors if I change the prebuildevent to "dDOUBLE" or if I let the prebuildevent empty, too.
Do you know what i have to do now?
hotmirror :D