Horde3D
http://www.horde3d.org/forums/

Compile Fixes
http://www.horde3d.org/forums/viewtopic.php?f=3&t=1082
Page 1 of 3

Author:  marciano [ 22.01.2010, 20:47 ]
Post subject:  Compile Fixes

The behavior of different compilers on different platforms can vary slightly, so small code changes may be necessary to build horde with a specific compiler. If you encounter compilation problems that are easy to fix, please report them here.

Author:  phoenix64 [ 23.01.2010, 20:52 ]
Post subject:  Re: Compile Fixes

http://bitbucket.org/mgottschlag/horde3d/changesets/ (relative to r209) fixes compilation on Ubuntu Linux, 64bit, GCC 4.4.1

Author:  marciano [ 24.01.2010, 17:28 ]
Post subject:  Re: Compile Fixes

phoenix64 wrote:
http://bitbucket.org/mgottschlag/horde3d/changesets/ (relative to r209) fixes compilation on Ubuntu Linux, 64bit, GCC 4.4.1

Thanks!

Author:  kornerr [ 07.02.2010, 13:12 ]
Post subject:  Re: Compile Fixes

Linux x86_64.
In revision 211 trunk/Horde3D/Source/ColladaConverter/main.cpp:90 complains about sort until #include <algorithm> is added.

Author:  SpOOky [ 07.02.2010, 16:45 ]
Post subject:  Re: Compile Fixes

kornerr wrote:
Linux x86_64.
In revision 211 trunk/Horde3D/Source/ColladaConverter/main.cpp:90 complains about sort until #include <algorithm> is added.


This has solved my problem, thank you :)

Author:  Codepoet [ 17.03.2010, 14:00 ]
Post subject:  Re: Compile Fixes

Community svn r406 fails to compile under Linux with g++ 4.4.1. Fix is attached.

Attachments:
File comment: Patch
diff.patch [834 Bytes]
Downloaded 1234 times

Author:  Volker [ 17.03.2010, 14:07 ]
Post subject:  Re: Compile Fixes

Thanks for the patch. algorithm.h is definetly missing, but what is the error message of gcc that results in the need for the switch from operator to static function?

Author:  Codepoet [ 17.03.2010, 14:19 ]
Post subject:  Re: Compile Fixes

After adding the algorithm header:
Code:
Scanning dependencies of target Horde3D
[  1%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egAnimation.o
/home/fnoeding/programming/horde3d/community_svn/Horde3D/Source/Horde3DEngine/egAnimation.cpp: In member function ‘virtual bool AnimationResource::load(const char*, int)’:
/home/fnoeding/programming/horde3d/community_svn/Horde3D/Source/Horde3DEngine/egAnimation.cpp:152: error: no matching function for call to ‘sort(__gnu_cxx::__normal_iterator<AnimResEntity*, std::vector<AnimResEntity, std::allocator<AnimResEntity> > >, __gnu_cxx::__normal_iterator<AnimResEntity*, std::vector<AnimResEntity, std::allocator<AnimResEntity> > >, AnimationResource::load(const char*, int)::CompFunc)’
make[2]: *** [Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egAnimation.o] Error 1
make[1]: *** [Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/all] Error 2
make: *** [all] Error 2


IIRC this is not standard C++ and depends on compiler defined behavior. If you make CompFunc a global struct it will work in g++ (as expected).

Author:  Volker [ 17.03.2010, 15:11 ]
Post subject:  Re: Compile Fixes

You're right. Just found http://stackoverflow.com/questions/876048/why-can-i-define-structures-and-classes-within-a-function-in-c

Author:  Codepoet [ 21.04.2010, 21:19 ]
Post subject:  Re: Compile Fixes

Community svn trunk fails to compile due to wrong include path in glfw under Linux. Patch is attached.

Attachments:
File comment: Patch
diff.patch [426 Bytes]
Downloaded 1238 times

Author:  Volker [ 22.04.2010, 06:51 ]
Post subject:  Re: Compile Fixes

Thanks, fixed it

Author:  Siavash [ 14.08.2010, 16:02 ]
Post subject:  error C2039: 'back_inserter' : is not a member of 'std'

Post merged from separate topic: error C2039: 'back_inserter' : is not a member of 'std'


This looks like a MSVC 2010 problem, so #include the <iterator> in egSceneGraphRes.cpp to avoid these errors:
Code:
Horde3D\Source\Horde3DEngine\egSceneGraphRes.cpp(69): error C2039: 'back_inserter' : is not a member of 'std'
Horde3D\Source\Horde3DEngine\egSceneGraphRes.cpp(69): error C3861: 'back_inserter': identifier not found

Best Regards, Siavash.

Attachments:
File comment: egSceneGraphRes.cpp SVN rev256 Patch
egSceneGraphRes.cpp_Patch.zip [481 Bytes]
Downloaded 1170 times

Author:  marciano [ 14.08.2010, 18:36 ]
Post subject:  Re: Compile Fixes

Thanks Siavash, this is fixed now.

Author:  Rauy [ 16.09.2010, 20:59 ]
Post subject:  Re: Compile Fixes

Hello, I spotted a bug in at least the VS2005 projects of the Sound Extension and Sound Sample in Release config. Their include and lib directories include the Horde3D/Dependencies/(Include/Libs) folder, which does not exist anymore. So the Sound Sample cannot find glfw, which is now in Horde3D/Samples/glfw. This applies also to the GameEngine VS2005 solution, which tries to add the project from Horde3D/Dependencies/Source/glfw.

Author:  Siavash [ 30.10.2010, 10:20 ]
Post subject:  Re: Compile Fixes

Just a few compile fixes for GCC 4.5.1 [ArchLinux x64]
Code:
egCamera.cpp   ->  #include <string.h>
egGeometry.cpp ->  #include <string.h>
egModel.cpp    ->  #include <string.h>
egRenderer.cpp ->  #include <string.h>
egShader.cpp   ->  #include <string.h>
egTexture.cpp  ->  #include <string.h>
utXML.h        ->  #include <string.h>

Page 1 of 3 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/