Saturday, 2007-06-23

*** tpb has joined #freeorion00:00
*** mithro has quit IRC07:16
*** STalKer-X has joined #freeorion08:23
*** Carmina has quit IRC08:39
*** tyreth has quit IRC08:39
*** theHive has joined #freeorion08:59
*** theHive has left #freeorion08:59
*** qk-gen has joined #freeorion09:19
qk-genHi, little question, does anyone try compile freeorion with boost-1.34.0 ?09:20
GeofftheMedioI think someone tried with a release candidate09:20
GeofftheMedioand it fixed some boost signals related bugs09:21
*** mithro has joined #freeorion09:21
qk-gennow I try it and cannot compile it, some filesystem error like filesystem_error doesn`t have error only system_error and also doesn`t know  'security_error' is not a member of 'fs' and some other09:26
qk-genI have stable boost not rc09:26
GeofftheMedioI guess they've changed how that works then09:33
qk-genOK, I try edit it and post as patch to sf09:34
GeofftheMedioposting the patch on the forums would be preferable09:34
qk-genOK, no problem....I find what change...It write, that they change errors to have all defined in POSIX cerror and only added some others09:37
GeofftheMediok, thanks09:37
qk-genOK, changed...it's only little few change, I post it on forum09:50
GeofftheMediook09:50
GeofftheMediohere's the post about the previous attempt: http://freeorion.org/forum/viewtopic.php?p=26719#p2671909:56
tpb<http://ln-s.net/dyY> (at freeorion.org)09:56
qk-genHe describe same error, but I cannot open his patch to look, If he have same patch09:59
GeofftheMedioif yours is with the stable release, then it's probably more useful than his version10:00
qk-genOK, when I get activation on forum I post it...is better open new topic or append to that?10:01
GeofftheMedioeither way is fine10:01
GeofftheMediomost of those programming threads start out with someone posting a problem, and then they go off on some topic that isn't very well described by the thread title10:02
GeofftheMedio(they = the threads)10:03
qk-genOK, I see that I repair only gigi, so I take same time also change orion :)10:16
GeofftheMediothat would be useful10:17
qk-genanother problem - it write me Checking for FSOUND_GetVersion() in C library fmod-3.75... no, but I have fmod 3.75 and this function is also defined in fmod.h DLL_API float           F_API FSOUND_GetVersion();10:44
GeofftheMediodid this stop the configuration?  It can fail to find the file in one location and find it in another10:46
GeofftheMedioalso, there's a bunch of stuff on the board about switching to open al in the last few days10:46
GeofftheMediohttp://freeorion.org/forum/viewtopic.php?p=27141#p27141'10:47
tpb<http://ln-s.net/dyq> (at freeorion.org)10:47
GeofftheMediohttp://freeorion.org/forum/viewtopic.php?p=27141#p2714110:47
tpb<http://ln-s.net/dlT> (at freeorion.org)10:47
GeofftheMedio(without the trailing ')10:47
qk-genOK, thanks it works10:56
GeofftheMediowhich patch specifically did you use?10:57
qk-genfirst11:09
qk-genand some problem with code....I have quite restrict gcc and it write me that in Universe.h in serialize is in function Universe::serializable called method of ship, but ship is only forward declarated...is posible move this method to cpp file?11:10
GeofftheMedioI've been trying to fix this for the last few hours11:11
GeofftheMediohttp://freeorion.org/forum/viewtopic.php?p=27317#p2731711:12
tpb<http://ln-s.net/dyz> (at freeorion.org)11:12
qk-genmy recommend is move this method from header to source code ;)11:12
GeofftheMedioit's a templated function11:12
GeofftheMedioit has to be in the header11:12
GeofftheMediomake sure you get my post after that one too... with the forward decalre of UniverseObject11:14
GeofftheMedioany luck?11:20
qk-gensorry, some work now I look on it11:22
GeofftheMediok11:22
qk-genhmm, this include looks like really hell :(..Empire/../universe/UniverseObject.h:183: error: 'Universe' has not been declared11:31
GeofftheMedioUniverseObject.h includes Universe.h11:32
GeofftheMediostick class Universe; on line 35 of UniverseObject.h11:33
qk-genI think problem is that Universe include Ship.h and Ship.h include UniverseObject :(11:33
GeofftheMedioyes, there is circular #includes, but everything has include guards so should be included only once per file11:34
qk-genyes I know, but sequence is important11:35
qk-genaddind Universe doesn't help, because is used some nested items...I repair it and add it to whole path...important is declarate only what you really need11:38
GeofftheMedioI don't follow what you just said11:39
qk-genin code is used Universe::somethink and forward declaration of Universe does't help.....so I think better is that this include and forward declaration hell is forward declarate only what is really needed in header like Universe::somethink and have constant in another header to better manage11:41
qk-genHmm, it not good idea11:47
GeofftheMedioI'm working on a solution11:47
GeofftheMediojust the parts of thet serialize function that use the Ship, Empire and EmpireManager classes are being put into a new function that isn't templated so can be put into the cpp11:48
qk-genbetter what do you think about change serialize from templated function to normal function and Archive is abstract class11:48
qk-genyou are quicker :)11:48
GeofftheMedioI'm not going to muck around with how serialization works11:49
qk-genhmm, it looks like it is boost serialization and it work only when function is templated...hmm, another idea is have universe variables like ALL_VISIBLE or s_encoding_empire in other class then universe containers11:55
GeofftheMediohttp://freeorion.org/forum/viewtopic.php?p=27322#p2732211:58
tpb<http://ln-s.net/dzG> (at freeorion.org)11:58
GeofftheMediotry that11:58
qk-genOK, only one mistake void Universe::GetShipDesignsToSerialize in header must be only void GetShip... without Universe12:07
qk-genand work (ehm can compile, other I don't test :)12:07
GeofftheMediofixed in post12:08
GeofftheMediodoes the compilation succeed after that change?12:10
qk-genanother little error util/Order.h:612 missing ;12:10
qk-genand also one little change in boost I do it and when I have all I post it12:11
GeofftheMediofixed the order thing12:11
GeofftheMedio... why does MSVC let me compile these things?12:11
qk-genUhm...I don't know :)12:12
qk-genand bad problem I have 64bit system and that assert fail BOOST_STATIC_ASSERT(sizeof(long) == 4); in serialize.cpp12:13
GeofftheMedioyeah, that's been a recurring complaint12:13
GeofftheMedioyou can change it to == 8 for your local compile12:13
GeofftheMediobut it's not really a portable solution, since i think that would make it impossible for you to connect to 32 bit server12:14
qk-genOK, but It's not nice solution, better is define own long type which have always 4 bytes on all architecture12:14
GeofftheMediois that the boost change you referred to above, or is it something else?12:16
qk-genno, boost change I mean change in filesystem error handle12:18
GeofftheMedioare you using boost 1.34.0 ?12:18
GeofftheMedio... did we discuss this a few hours ago?12:19
GeofftheMedioyes, it was the first thing you asked about...12:19
qk-genyes :)12:27
GeofftheMedioanyway, if you know how to set that up (portable fixed 4-byte integer) then I'd appreciate help doing it12:28
qk-genhmm, problem with AL :)12:30
qk-genclient/human/HumanClientAppSoundOpenAL.cpp:87: undefined reference to `ov_read'12:30
qk-genclient/human/chmain.cpp:63: undefined reference to `HumanClientAppSoundFMOD::HumanClientAppSoundFMOD()'12:30
GeofftheMedioov_read is part of vorbisfile12:34
GeofftheMedioif you're switching from fmod to openal, you'll need to exclude HumanClientAppsoundFmod from the build12:34
GeofftheMedioI guess the scons scripts don't check for vorbisfile ?12:35
qk-genHmm, my mistake, sorry....about long type...ideal is define for exaple mylong __int6412:36
qk-gen__int64 is allways 6 bytes12:37
GeofftheMedioyou mean 8 bytes?12:37
GeofftheMediowill that work nice with boost::serialization ?12:37
qk-genyes 8 :)...I look12:37
qk-genI exclude HumanClientAppsoundFmod problem is that client/human/chmain.cpp missing it12:38
GeofftheMedioyou need to change chmain.cpp to replace the two occurances of Fmod with OpenAL12:38
GeofftheMediothe #include and the instantiaion of app12:39
GeofftheMediolines 1 and 6312:39
qk-genOK, thanks....I think boost serializate work, because it is native types...in amanith it do that http://www.amanith.org/include2/gglobal.h12:40
qk-genaround half of deocument12:40
GeofftheMediothere's nothing about boost serialization in there, is there?12:42
qk-genno, it how they do own types. about vorbis serialization is here http://www.boost.org/libs/serialization/doc/index.html12:42
tpb<http://ln-s.net/FvW> (at www.boost.org)12:43
qk-genvorbis = boost :)12:43
GeofftheMedioisn't vorbis for ogg music files?12:43
qk-genis my mistake I change words :)12:46
GeofftheMediothe scons script here12:49
GeofftheMediohttp://freeorion.org/forum/viewtopic.php?p=27303#p2730312:49
tpb<http://ln-s.net/dzf> (at freeorion.org)12:49
GeofftheMediochecks for vorbis file12:49
qk-genI haven't problem with version, I have problem with function, now I finding where it is12:58
qk-genI found it, it doesn't link with libvorbis13:00
GeofftheMediowhy not?13:03
qk-genin thread when I edit SConstruct it isn`t...but in your yes13:05
qk-genotherwise why using scons and not autotools?13:07
GeofftheMedioyou lost me...13:07
qk-genwhen I edit first time SConstruct I read another thread on forum, when vorbis isn't in SConstruct13:08
GeofftheMediosorry, I can't figure out what you're asking...  start over from the beginning?13:09
qk-genOK, when I switch from FMOD to OpenAL I change SConstruct and in forum thread where I read it isn`t write about adding vorbis check...and in last forum thread which you post it is and now it works13:11
GeofftheMediook... so is there a question?13:12
GeofftheMediothose links were from the same thread, with different people posting their scons scripts... one person's checked for vorbis, but the other's didn't13:13
GeofftheMedioI'd like to figure out one good script to use and commit it to SVN, but I don't use linux myself and scons doesn't work for me on WinXP, so I'm having a hard time doing it13:13
qk-genlast is good....but scons have another problem when i run scons install it do this13:15
qk-genInstall file: "freeoriond" as "$prefix/bin/freeoriond"13:15
qk-genInstall file: "freeorionca" as "$prefix/bin/freeorionca"13:15
qk-genInstall file: "freeorion" as "$prefix/bin/freeorion"13:15
qk-genand install to directory $prefix !!!!13:15
GeofftheMedioI think you needed to set the value of prefix13:16
GeofftheMedioscons prefix=/bin13:17
GeofftheMedioor somesuch13:17
GeofftheMediorun scons -h   and near the top of the list of parameters is prefix13:17
qk-genbut it isn't expected....bindir default is $prefix/bin and prefix default is /usr/local so bindir must be /usr/local/bin13:18
GeofftheMediohmm... maybe the script is broken then?13:19
qk-genmaybe...I am not python specialist and don't know how substitute $prefix with prefix13:21
GeofftheMedioit seems odd that nobody's noticed this before...13:22
qk-genmaybe everyone change this directory...I try change only prefix what happen :)13:23
qk-genstill broken13:25
qk-genI can change it to to allways $prefix/$bindir13:25
qk-genHmmm, I solve it :) on windows it isn't often that executables is on another place then data, so I add it only on posix system and add default posix variable13:30
GeofftheMediomkay13:31
qk-genHmm, now I try play and complete instalation is broken, no data is installed and it doesn`t start...i looks like that noone install it with scons :)13:56
qk-genI post boost patches http://freeorion.org/forum/viewtopic.php?f=9&t=1600&p=27327#p2732714:04
tpb<http://ln-s.net/e0B> (at freeorion.org)14:04
GeofftheMedioI think you have to do scons intall after building14:08
qk-genI do it and it doesn't work....I look at python script and there missing any data instalation14:12
GeofftheMedioyou messed around with $prefix and other variables... maybe that broke something14:20
GeofftheMediotry running from in the data directory14:25
GeofftheMedioor wherever you checked out from svn into14:26
GeofftheMediodid you post your boost filesystem changes?15:24
qk-genyes few post above is link15:24
qk-gengame can run from directory where is compiled, but it's everythink15:24
GeofftheMedioI don't know what you mean by "but it's everythink"15:25
qk-genon unix system is convention, that binaries is installed somewhere, data somewhere and user profile like savegame to another directory, but this game couldn`t work this15:26
qk-genso it run only when everythink is at same place15:26
GeofftheMediofyi: everything is spelt with a g not a k15:27
GeofftheMedioI think it was intended that it work correctly, but either it's broken, or you broke it while playing around with the path stuff in SCons...15:28
qk-genI think that program doesn`t have support for loading data from another directory15:34
GeofftheMedioFreeOrion?15:34
GeofftheMedioit does.  you can set the data directory in options15:34
qk-gendata like fonts?15:35
GeofftheMedioart, game content (buildings, techs, specials), sounds15:36
GeofftheMedionot sure how fonts are treated15:36
qk-genOK, I look how it exactly work ;)15:37
qk-genGeofftheMedio: How can I try battle? I have fleet at same planet as enemy and no battle16:52
GeofftheMedioyou have to build a combat ship16:52
GeofftheMediogo to the production screen of your home system, scroll down in the buildable items list and build a Mark I16:52
GeofftheMediothen move it to an enemy fleet16:52
GeofftheMediobut don't expect much... combat is rudimentary16:53
qk-genOK, thanks...I try fight with scout and nothink happen, only I discovery bug http://freeorion.org/forum/viewtopic.php?f=9&t=178016:54
tpb<http://ln-s.net/e0v> (at freeorion.org)16:54
GeofftheMedioyou should post bugs on sourceforge16:55
qk-genI post it on forum16:57
qk-genbut other which i found i post to sf16:57
GeofftheMedioall on sf is preferable16:57
qk-genanother question...what is this code ->  if (!fs::path::default_name_check()(*it)) { it seg faulted on it17:07
qk-genin FileDlg.cpp line 52417:07
GeofftheMedioit's part of GG, not FreeOrion itself17:09
GeofftheMedioI don't know what default_name_check is supposed to do17:09
GeofftheMediomy guess is that the transition to 1.34 is the cause17:10
qk-genI know...so post on gigi sf page? it looks like some bad generated code and double braces17:10
qk-genbecause I don't think that default_name_check return functor17:11
GeofftheMediopath.hpp17:11
GeofftheMediostatic name_check default_name_check();17:11
GeofftheMediotypedef bool (*name_check)( const std::string & name );17:12
GeofftheMedioI'm looking at 1.33.117:13
GeofftheMedioso it might have changed in 1.3417:13
qk-genyes, you are absolutely right17:14
qk-gennow it is17:14
qk-gen static void default_name_check( name_check ) {} static name_check default_name_check() { return 0; }17:15
qk-genit is depredecated and not to use17:15
qk-genI look how it solve new version17:15
GeofftheMedioit's not really a bug, since GG is still using 1.33.1, but I'd add another post to your patch post about how to fix17:15
qk-genOK17:16
qk-genhmm I find alternative, it is native function17:29
qk-genyes it help, now I can load game :)17:35
qk-genI added new diff to forum17:35
*** qk-gen has quit IRC18:50
*** tyreth has joined #freeorion19:05

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