New GG version (again)

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
Yoghurt
Programmer
Posts: 376
Joined: Sat Jun 28, 2003 8:17 pm
Location: Heidelberg, Germany

New GG version (again)

#1 Post by Yoghurt »

Tzlaine wrote me a PM:
Tzlaine wrote:I just refactored GG in a pretty major way. I'm trying to eliminate GG's dependence on SDL. My objective is to make GG an OpenGL GUI that can be driven by any application framework you like (with an SDL driver being provided as an example app framework). To this end, I've put SDLGGApp.h in a new directory by itself (called SDL, of course), which will be its own .dll/.so. I also rolled the networking code out to its own .dll/.so, and provided some compile-time configuration options that allow for inclusion or exclusion of the SDL app framework, with or without the network code.
I've updated the FreeOrion files according to the new version, tzlaine will commit the new WindowsKit.zip to CVS.

The new GG version is also commited, but will take 24 hours to show up. The impatient call also use http://freeorion.sourceforge.net/libgigi-0.5.0.0.tar.gz

FO-autotools was also updated.

GG now requires OpenIL aka DevIL (SDL_image is no longer needed), according to tzlaine, devil's configure-script might pretent that it can't find GLU, in this case, adding '-lm' to LDFLAGS should do the trick (not tested, it works fine for me without this)

Code: Select all

$ LDFLAGS='-lm' ./configure
Edit by Zach: The code and headers in the GG repository are up to date. Windows users should go ahead and use those, along with the pre-built dlls. Linux users should grab the tarball at the URL above, at least until tomorrow.

tzlaine
Programming Lead Emeritus
Posts: 1092
Joined: Thu Jun 26, 2003 1:33 pm

#2 Post by tzlaine »

General notes about the changes to GG:

1) GG now relies upon DevIL (aka OpenIL, http://openil.sourceforge.net) instead of SDL_image to load images/textures. Both Windows and Linux users will need to download this library. Windows users need to copy the DevIL headers from the copy-to-Dev-Cpp directory inside the new WindowsKit.zip to their c:\Dev-Cpp\include directory.
and Linux users need to get the full library from here (NOT the "Linux SDK"!): http://prdownloads.sourceforge.net/open ... 6.5.tar.gz

2) For the rest of this, you probably won't care, it's mostly internal. GG is now free of any dependence on SDL. We will continue to use with SDL, but you can now drive it using GLUT, direct Windows API calls, or whatever.

3) DynamicText and StaticText are gone. The are now unified under TextControl.

Post Reply