OgreOde compile

Ghoull

16-08-2008 13:35:09

Hi everybody

I have a problem with OgreOde compile. I'm beginner with Ogre (and OgreOde too :))
I tried to use "Compile OgreOde with Code::Blocks" in the OgreWiki.

I installed the OgreSDKSetup1.4.9_CBMingW.exe
Downloaded OgreOde from SVN and put it into ogreaddons\ogreode folder
Downloaded ode-win32-0.9.zip to ode folder
Renamed $(OGRE_HOME)\include\ode folder
Changed the line 903
Added c++ files to the OgreOde_Core project

OgreOde_core:
Link libraries:
ode
libode.a
ogremain

Compiler:
..\..\ode\include
$(OGRE_HOME)\include
$(OGRE_HOME)\ogreaddons\ogreode\include

Linker:
..\..\ode\lib\ReleaseDLL
$(OGRE_HOME)\bin\release

Then I build (RELEASE) and got some errors:
...
Creating library file: ..\..\lib\Release\libOgreOde_Core.a
D:\PROGRAMY\CodeBlocks\MinGW\bin\ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Output size is 892.50 KB
Running target post-build steps
c:\OgreSDK\scripts\codeblocks\copy.bat c:\OgreSDK\lib\Release\OgreOde_Core.dll c:\OgreSDK\bin\release\OgreOde_Core.dll
Execution of 'c:\OgreSDK\scripts\codeblocks\copy.bat c:\OgreSDK\lib\Release\OgreOde_Core.dll c:\OgreSDK\bin\release\OgreOde_Core.dll' in 'C:\OgreSDK\ogreaddons\ogreode\scripts\CodeBlocks' failed.
Nothing to be done.


In the folder ogreaddons\ogreode\lib\Release\ was OgreOde_Core.dll, libOgreOde_Core.def, libOgreOde_Core.a files.
I copied OgreOde_Core.dll to $(OGRE_HOME)\bin\Release.


I build tinyxml (without errors).

Then I set
OgreOde_prefab:
Link libraries:
OgreOde_Core
OgreMain
tinyxml
libtinyxml.a
libOgreOde_Core.a

Compiler:
..\..\..\ode\include
$(OGRE_HOME)\include
..\..\..\tinyxml
$(OGRE_HOME)\ogreaddons\ogreode\include
..\..\include
..\..\..\..\include

Linker:
..\..\..\lib\Release\
..\..\..\tinyxml\Release
$(OGRE_HOME)\bin\release
..\..\..\..\lib\Release


I tried to compile OgreOde_prefab but I got these errors

...
Creating library file: ..\..\lib\Release\libOgreOde_Core.a
D:\PROGRAMY\CodeBlocks\MinGW\bin\ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
Output size is 892.50 KB
Running target post-build steps
c:\OgreSDK\scripts\codeblocks\copy.bat c:\OgreSDK\lib\Release\OgreOde_Core.dll c:\OgreSDK\bin\release\OgreOde_Core.dll
Execution of 'c:\OgreSDK\scripts\codeblocks\copy.bat c:\OgreSDK\lib\Release\OgreOde_Core.dll c:\OgreSDK\bin\release\OgreOde_Core.dll' in 'C:\OgreSDK\ogreaddons\ogreode\scripts\CodeBlocks' failed.
Nothing to be done.


...and any dll files didn't exist (in ogreaddons\ogreode\prefab\lib\Release).

I tried to continue with tutorial OgreOde_loader compile:

I don't know what exactly means "Change the directories, 'debug win32' (or 'release win32') would be just 'debug' (or 'release') these days"
I have OGREODEEXPORT_LOADER in compiler defines.

Then I got:

ld.exe cannot find -lOgreOde_Prefab

I searched on this forum long time, but without any solution.
How can I compile this? Can somebody help me? What did I wrong. What should I do?


Sorry for my bad english and thanks very much for patience.
Ghoull

rewb0rn

16-08-2008 13:48:39

Have you read this tutorial? http://www.ogre3d.org/wiki/index.php/Co ... de::Blocks

I dont use Code Blocks so there is not much I can do to help.

Ghoull

16-08-2008 14:10:26

Of course, I did.
I tried to follow tutorial's instructions.

Karm

10-09-2008 02:09:04

Hi there!
The first errors are pre-build errors...
and the data is just copied from a different direction to a not existing oder read only directory...
so you have done the right thing coping it ^^

the second compiled data looks like the first ^^
maybe, you had select the wrong project file??

"Nothing to be done."
-> you have already build a file and didn't made any changes in the code...

so there is no new dll file, because you have tried to rebuild ogreODE_core.a

and the last error:
you haven't build the OgreOde_Prefab lib now... because ob the rebuilding of OgreOde_core.a

just select the prefab project again and try to compile it...