Froyok
31-10-2009 13:58:01
Hello !
First : sorry for this topic, but google and the ogre forum (or addons) are very silent in front of my problem.
All those who have already compiled Hydrax are going to laugh I suppose, but I have to say that I am in front of errors which remain incomprehensible for me.
Second : I use Code::blocks 8.02 and Ogre v1.6.1 [Shoggoth] (22 January 2009) with hydrax 0.5.1
[EDIT] I must use the source code (from svn) version ?
1]
For start, I try to compil the Hydrax static library (.a), that's work (but with 300 warnings ! ). But when I want to create the Hydrax dll, I get this error :
I don't understand at all this error.
2]
And when I try to compil the demo with my static library, I get :
Hmmm, for this linking error, It's my libHydrax.a the problem ?
First : sorry for this topic, but google and the ogre forum (or addons) are very silent in front of my problem.
All those who have already compiled Hydrax are going to laugh I suppose, but I have to say that I am in front of errors which remain incomprehensible for me.
Second : I use Code::blocks 8.02 and Ogre v1.6.1 [Shoggoth] (22 January 2009) with hydrax 0.5.1
[EDIT] I must use the source code (from svn) version ?
1]
For start, I try to compil the Hydrax static library (.a), that's work (but with 300 warnings ! ). But when I want to create the Hydrax dll, I get this error :
||=== Hydrax, Release ===|
first defineCreating library file||bin\Release\libHydrax.a|
||=== Build finished: 1 errors, 0 warnings ===|
I don't understand at all this error.
2]
And when I try to compil the demo with my static library, I get :
||=== Demo1, Release ===|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Image.h|268|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\MaterialManager.h|380|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\RttManager.h|516|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\TextureManager.h|139|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Noise\Perlin\..\..\RttManager.h|516|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Noise\Perlin\..\..\GPUNormalMapManager.h|155|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Noise\Perlin\..\Noise.h|136|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Noise\Perlin\Perlin.h|283|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\DecalsManager.h|292|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\GPUNormalMapManager.h|155|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\CfgFileManager.h|212|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\..\Noise\Noise.h|136|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\..\MaterialManager.h|380|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\..\GPUNormalMapManager.h|155|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\Module.h|160|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Noise\Perlin\Perlin.h|283|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\ProjectedGrid\..\Module.h|160|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\Hydrax\Hydrax\Modules\ProjectedGrid\ProjectedGrid.h|278|warning: no newline at end of file|
I:\Jeux\D\DOOCE\Hydrax-v0.5.1\Demo1\src\main.cpp|273|warning: "/*" within comment|
||Info: resolving Ogre::Math::fDeg2Rad by linking to __imp___ZN4Ogre4Math8fDeg2RadE |
||Info: resolving Ogre::Vector3::ZERO by linking to __imp___ZN4Ogre7Vector34ZEROE |
||Info: resolving Ogre::Math::PI by linking to __imp___ZN4Ogre4Math2PIE |
||Info: resolving Ogre::StringUtil::BLANK by linking to __imp___ZN4Ogre10StringUtil5BLANKE |
||Info: resolving Ogre::Quaternion::IDENTITY by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE |
||Info: resolving Ogre::Vector3::NEGATIVE_UNIT_Y by linking to __imp___ZN4Ogre7Vector315NEGATIVE_UNIT_YE |
||Info: resolving Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME by linking to __imp___ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEE |
||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.obj\Release\src\main.o:main.cpp:(.text$_ZN25ExampleHydraxDemoListener12changeSkyBoxEv[ExampleHydraxDemoListener::changeSkyBox()]+0xd6)||undefined reference to `__imp___ZN6Hydrax6Hydrax14setSunPositionERKN4Ogre7Vector3E'|
obj\Release\src\main.o:main.cpp:(.text$_ZN25ExampleHydraxDemoListener12changeSkyBoxEv[ExampleHydraxDemoListener::changeSkyBox()]+0xf7)||undefined reference to `__imp___ZN6Hydrax6Hydrax11setSunColorERKN4Ogre7Vector3E'|
)]+0xd7)||undefined reference to `__imp___ZN6Hydrax6Hydrax6updateERKf'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x2cd)||undefined reference to `__imp___ZN6Hydrax6HydraxC1EPN4Ogre12SceneManagerEPNS1_6CameraEPNS1_8ViewportE'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x305)||undefined reference to `__imp___ZN6Hydrax5Noise6PerlinC1Ev'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x407)||undefined reference to `__imp___ZN6Hydrax6Module13ProjectedGridC1EPNS_6HydraxEPNS_5Noise5NoiseERKN4Ogre5PlaneERKNS_15MaterialManager10NormalModeERKNS1_7OptionsE'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x441)||undefined reference to `__imp___ZN6Hydrax6Hydrax9setModuleEPNS_6Module6ModuleERKb'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x496)||undefined reference to `__imp___ZNK6Hydrax14CfgFileManager4loadERKSs'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x4cd)||undefined reference to `__imp___ZN6Hydrax6Hydrax6createEv'|
obj\Release\src\main.o:main.cpp:(.text$_ZN9SampleApp11createSceneEv[SampleApp::createScene()]+0x5ff)||undefined reference to `__imp___ZN6Hydrax15MaterialManager17addDepthTechniqueEPN4Ogre9TechniqueERKb'|
||=== Build finished: 10 errors, 20 warnings ===|
Hmmm, for this linking error, It's my libHydrax.a the problem ?