Wednesday, 2009-11-11

*** tpb has joined #freeorion00:00
*** Mikoto_ has quit IRC02:14
*** aleksil has quit IRC02:14
*** Mikoto has joined #freeorion02:15
*** aleksil has joined #freeorion03:06
*** dansan has joined #freeorion05:23
dansanahh, so you guys have an IRC channel :)05:23
dansanAny of you awake at this ungodly hour? :)05:24
* dansan kicks CIA-6105:24
CIA-61ow05:24
* dansan snickers05:24
dansanWell I was mostly wanting to compile it, but not install GiGi as root.  How do I do that and then tell the freeorion build (cmake) where my GiGi is?  I tried GIGIDIR but it said "go away" -- probably because I never did a "make install" of GiGi.05:25
dansan... mostly because I hadn't figured out how to give cmake the GNU autotools equivilant of --prefix=~/some/user/path05:26
dansanAnyway, if any of you feel like answering, I'm logging and will get it when I'm back on tomorrow (after I've slept :)05:26
dansanscreenshots look really nice (mostly the UI, I'm looking at actually using GiGi in Glest Advanced Engine -- a Glest fork)05:27
*** mithro has quit IRC05:42
*** palo__ is now known as palo06:55
STalKer-Xheh06:58
*** palo has left #freeorion07:01
*** Q_Continuum has quit IRC07:48
kroddndansan: i have some scirpts whoch do use GiGi but do not install it09:50
kroddndansan: have a look at the files in "linux-static", for example configure.sh09:52
*** Q_Continuum has joined #freeorion11:32
*** enigmatic has joined #freeorion12:05
*** STalKer-X has quit IRC13:36
*** STalKer-X has joined #freeorion13:54
*** welterde has quit IRC14:08
*** dansan has quit IRC14:08
*** kroddn has quit IRC14:08
*** bernardh has joined #freeorion14:38
*** bernardh has left #freeorion14:42
*** kroddn has joined #freeorion14:47
*** dansan has joined #freeorion14:47
*** welterde has joined #freeorion14:47
*** irc.freenode.net sets mode: +o kroddn14:47
CIA-61FreeOrion: geoffthemedio * r3262 /trunk/FreeOrion/ (13 files in 4 dirs): (log message trimmed)14:57
CIA-61FreeOrion: -Fixed / simplified start of new game map and tech tree centring14:57
CIA-61FreeOrion: -Added some free function object getters to replace GetUniverse().Objects().Object()14:57
CIA-61FreeOrion: -Added some safety check / early exit to UniverseObject Copy functions if copying itself14:57
CIA-61FreeOrion: -Modified destroyed object tracking to just keep track of which empires know an14:57
CIA-61FreeOrion: object is destroyed, so that each empire's existing known objects map can be14:57
CIA-61FreeOrion: used to store destroyed objects, rather than having one or more separate object14:57
*** Q_Continuum has quit IRC15:10
*** Q_Continuum has joined #freeorion15:10
*** mithro has joined #freeorion17:57
dansankroddn: thanks for the response :)19:48
dansankroddn: Geeze, I don't know cmake or scons :(  Does running this configure.sh script override what cmake normally does?19:48
dansanI have another question.  If I discover the GiGi doesn't do everything we want it to do, but we like it better than cegui, will you guys be open to modifications that do not bloat the code unnecisarily?  I'm thinking mostly of stuff that either a.) extends existing classes or b.) is only enabled with a "configure" option (not that I've figured out how the build works yet :)20:00
dansanooh, I found cmake-gui, this is quite helpful! :)20:07
dansanhow does cmake/FindGiGi.cmake work?  It says I can define $GIGI to help it find where I've installed GiGi, but it doesn't seem to work :(  If I set it as an environement variable or if I set it as a value in cmake-gui.  I've managed to get past it by manually editing GIGI_INCLUDE_DIR and GIGI_GIGI_LIBRARY, but I would rather do it the correct way20:46
GeofftheMedioyou can modify GiGi all you want for your own purposes, and if you post back the patches, tzlaine might incorporate them into the GiGi trunk, but he's pretty picky about code quality22:24
GeofftheMedioto use cmake, you usually run the ccmake gui by typing "ccmake ." in the root dir of the files you're trying to build22:25
GeofftheMediothen edit the options in the GUI and press c to configure until it's happy, then g to generate your make files22:25
dansanthanks! :)22:27
dansanYea, I did get that part, but I was never able to build freeorion because it requires <2.22 of graphviz and my Gentoo distro is at 2.24 and when I try to downgrade, the stupid 2.22-r1 package is broken (I fixed two of the errors and gave up after the 3rd :)22:28
dansanSo I finally downloaded the binaries -- excellent game environment!! I never played MOO, so I have no idea what I'm doing in the actual game :)22:28
dansanGeofftheMedio: mind if I ask you a few questions about GiGi though? :)22:29
dansanI know I mostly just need to dig into it, but the way it does serialization, I can implement my own Boost.Serializable to serialize it as XML if I want, right?22:30
dansanAnd then is it possible without much extension to define an entire UI in a non-code file?  If not, that would be the primary thing I would be interested in adding, if we go with GiGi22:30
GeofftheMedioit might work with 2.24 if you can edit the cmake files to get rid of the version requirement...  I'm not sure, though.22:31
dansanahh, well it fails on setting GRAPHVIZ_AGRAPH_LIBRARY and INCLUDE, maybe I can set those manually.22:33
GeofftheMedioI'm not sure what you mean by "implement my own Boost.Serializable" ...22:34
GeofftheMedioI've not done much with GiGi serialization myself, but many of the classes have boost serialization code already written...22:34
dansanahh22:34
dansanSo what format do they write, is it editable?22:34
GeofftheMedioeither binary or xml, but I don't think it's meant to be editable22:35
dansanahhh!!22:35
GeofftheMediotzlaine has also been adding some adobe "adam" and "eve" code that I think is intended to make a UI definable in a more user-editable format22:35
GeofftheMediobut I don't think it's done yet22:35
dansanYea, we want to be able to have the GUI completely skinnable and completely XML-driven, probably via luabind or some such.22:35
GeofftheMedioalthough I think there's a test / tutorial for it in there...22:35
dansanahh!22:35
dansanI've never heard of that22:35
dansanhmm, ok22:36
GeofftheMediothere are adam.cpp and eve.cpp in the tutorials22:37
GeofftheMediothere's probably some text about how it works somehwere22:37
dansanYea, our project is an RTS game engine and we want modders to be able to completely modify the UI without knowing C++ or compiling.  So we're looking at using luabind to expose internal game objects and have the GUI config (XML) specify those bindings, or some other mechanism if Lua turns out to be too heavy22:38
dansanahh, thanks22:38
dansanI'll check it out22:38
dansanThe freeorion UI is extremely impressive!!! =)22:38
dansanI never played MOO, but my brother did, I'll have to turn him on to this :?)22:38
dansanAlso, do you know much about how GiGi compares to cegui?  I really like the design of GiGi!!!22:39
GeofftheMediolooking at the more recent gigi commit log entries, the adam / eve stuff may be incomplete22:40
GeofftheMedionever used cegui22:40
dansanyea, it's marked experimental22:42
dansanBut it's not like we're out of alpha :)22:43
GeofftheMedioyou could implement your own scripting system to build the gui from whatever input files you want, though22:43
dansanThe other things we want to eventually support are animated GUI components (and none of the gui libraries seem to support that) as well as transitions22:43
dansanYea, just trying to minimize work :)22:44
dansanhmm, 2.24 doesn't have a libagraph, that's what appears to be the problem.  I wonder if they just merged it into one of the other libraries22:53
GeofftheMedioit may not be needed at all... I seem to be able to link freeorion without having libagraph in the lib folder on win3223:00
dansanoh, goodie23:01
dansanI was looking through the graphviz binaries and I think it's in libcgraph now23:01
dansanmaybe...23:02
dansanI'm going to tell it that libcgraph is agraph and move on with the cmake :)23:02
dansanooh, I got cmake to generate makefiles! :)  Let's see if it compiles now :)23:05
dansanhmm, it's still not picking up my include path for GiGi :(  How do you pass CPPFLAGS to cmake explicitly? (or where I can set them?)23:14
dansanAre the current trunk sources supposed to build & run?23:18
dansanand does it compile on gcc 4.4?23:19
GeofftheMediocppflags: I don't know... can you not just specify GIGI_INCLUDE_DIR in ccmake?23:24
dansanyea, I specified that but it didn't pick it up :(23:24
GeofftheMediowhat do you mean "didn't pick it up" ?23:25
dansanI added it to CMAKE_CFLAGS and it seems to have taken it, but I'm running into another issuenow :(23:25
GeofftheMediogigi and freeorion latest svn both build and run23:26
dansanOh, rather CMAKE_C_FLAGS and CMAKE_CXX_FLAGS23:26
dansanhttp://www.pastebin.ca/166757323:27
tpbTitle: pastebin - Mine - post number 1667573 (at www.pastebin.ca)23:27
dansanThis is without -fpermissive, adding that removes that "note:", but it still fails23:28
dansanand I don't even understand that error message :(23:28
dansanThe template function looks fine to me23:28
GeofftheMediolooks like gcc is being pickier than the microsoft compiler again23:28
dansanlol! :)23:29
GeofftheMedioit's apparently missing a defintion of GetUniverse()23:29
dansanI take it this file was recently edited?23:29
GeofftheMedioyes23:29
dansanahhh23:29
GeofftheMediotry one or two svn revisions back23:29
dansanok, will do :)23:29
GeofftheMedio3261 shouldn't have that particula rissue23:30
dansanok, that's the one I'm trying now23:30
dansanoops, I did an svn switch in the wrong directory! :)23:30
GeofftheMedioyou don't need to switch...  just update to the specified revision23:31
dansanhehe, I'm going to end up downloading most of it again :)23:31
dansanyea, I guess either works, but just specifying a different revision wont blow away what you've already downloaded :)23:32
GeofftheMedioit should just get the different files23:32
GeofftheMediosame as updating to a newer revision23:32
GeofftheMedioupdating to 3261 updates 13 files for me23:33
dansanyea, but I was in the FreeOrion directory when I told it to switch to the trunk, so it happily deleted everything in that directory and then started checking out the trunk23:34
* dansan will just use svn -r up next time23:34
* dansan swears he's not going to get sucked into another project! =)23:35
GeofftheMediohmm.  I'm confused about why GetUniverse isn't defined in Universe.h but is in System.h23:36
dansanWell I'm glad to be of some help23:38
GeofftheMediohmm (again).  Think I found the problem.23:39
dansanahh, cool23:39
GeofftheMediocould you try adding23:40
GeofftheMedio#include "../util/AppInterface.h"23:40
GeofftheMedioto the top of Universe.h23:40
dansanWell after I'm done downloading all of the arg files & such (that got blown away) I'll give it a shot23:40
GeofftheMedioand removing it from near the bottom of UniverseObject.h23:40
dansanYea, I did a search on GetUniverse and I found a few different definitions, I wasn't confident enough to take a guess23:40
dansanahh23:40
*** STalKer-X has quit IRC23:51
*** STalKer-X has joined #freeorion23:51
dansanok, I'm rebuilding now23:56
dansanwow, I've just begun to scratch the surface to boost in the last few months, and warnings like this makes me wonder how ready I am for it :) http://www.pastebin.ca/166760023:58
tpbTitle: pastebin - Stuff - post number 1667600 (at www.pastebin.ca)23:58
dansanAll of that just to tell me that "dereferencing type-punned pointer will break strict-aliasing rules"23:58

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!