Horde3D

Next-Generation Graphics Engine
It is currently 22.11.2024, 18:22

All times are UTC + 1 hour




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Compile Fixes
PostPosted: 22.01.2010, 20:47 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 23.01.2010, 20:52 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
http://bitbucket.org/mgottschlag/horde3d/changesets/ (relative to r209) fixes compilation on Ubuntu Linux, 64bit, GCC 4.4.1


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 24.01.2010, 17:28 
Offline
Engine Developer

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

Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 07.02.2010, 13:12 
Offline

Joined: 27.09.2008, 07:34
Posts: 35
Linux x86_64.
In revision 211 trunk/Horde3D/Source/ColladaConverter/main.cpp:90 complains about sort until #include <algorithm> is added.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 07.02.2010, 16:45 
Offline

Joined: 05.03.2007, 19:38
Posts: 167
Location: Romania
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 :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 17.03.2010, 14:00 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
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 1532 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 17.03.2010, 14:07 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 17.03.2010, 14:19 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
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).


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 17.03.2010, 15:11 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
You're right. Just found http://stackoverflow.com/questions/876048/why-can-i-define-structures-and-classes-within-a-function-in-c


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 21.04.2010, 21:19 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
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 1542 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 22.04.2010, 06:51 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Thanks, fixed it


Top
 Profile  
Reply with quote  
PostPosted: 14.08.2010, 16:02 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
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 1481 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 14.08.2010, 18:36 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks Siavash, this is fixed now.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 16.09.2010, 20:59 
Offline

Joined: 11.09.2010, 20:21
Posts: 44
Location: Germany
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compile Fixes
PostPosted: 30.10.2010, 10:20 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
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>


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group