*** tpb has joined #freeorion | 00:00 | |
CIA-76 | FreeOrion: geoffthemedio * r3513 /trunk/FreeOrion/ (6 files in 5 dirs): | 01:56 |
---|---|---|
CIA-76 | FreeOrion: -Added to Universe: tracking of which ship designs empires know about and a function to set a design as known to an empire. This data is stored when empire object visibility is set for a ship. | 01:56 |
CIA-76 | FreeOrion: -Modified Universe serialization code to use the new known design for each empire when serializing designs to be sent to a player, rather than recalculating which designs are known each time serialization is done. | 01:56 |
CIA-76 | FreeOrion: -Corrected some comments in Universe.h about functions that get effect target sets or execute effects. | 01:56 |
CIA-76 | FreeOrion: -Added missing command line string description for 3D combat testing. | 01:56 |
CIA-76 | FreeOrion: -Fixed missing newline in CombatSystem.h | 01:56 |
*** STalKer-Y has joined #freeorion | 03:07 | |
*** STalKer-X has quit IRC | 03:07 | |
*** bernardh has quit IRC | 03:40 | |
*** tomboy64 has joined #freeorion | 05:07 | |
*** bernardh has joined #freeorion | 07:51 | |
*** tomboy64 has quit IRC | 07:58 | |
*** bernardh has quit IRC | 09:36 | |
*** enig__ has quit IRC | 10:26 | |
*** enig__ has joined #freeorion | 10:40 | |
*** mithro has quit IRC | 11:54 | |
*** mithro has joined #freeorion | 11:55 | |
*** tomboy64 has joined #freeorion | 12:14 | |
*** qubodup has joined #freeorion | 15:07 | |
qubodup | hello | 15:07 |
qubodup | main() caught exception(std::exception): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library ./RenderSystem_GL. System Error: ./RenderSystem_GL.so: cannot open shared object file: No such file or directory in DynLib::load at OgreDynLib.cpp (line 81) ---- what do I do? :| | 15:07 |
qubodup | it's obviously because of ogre_plugins.cfg | 15:07 |
qubodup | but if I delete it, I get main() caught exception(std::runtime_error): Failed to find an Ogre GL render system. | 15:08 |
planetmaker | compile ogre? | 15:08 |
qubodup | planetmaker: my ogre is installed at http://codepad.org/ARKSzefX | 15:09 |
tpb | Title: Plain Text code - 975 lines - codepad (at codepad.org) | 15:09 |
qubodup | ah ok | 15:10 |
qubodup | I had to change a line to /usr/lib/OGRE/ | 15:10 |
planetmaker | the question is... does the so file exist? ... ok :-) | 15:11 |
planetmaker | you should post the patch to the forums | 15:11 |
qubodup | planetmaker: is there a thread about that? | 15:11 |
planetmaker | I don't know. But it might be worth to note it down. | 15:11 |
planetmaker | others might run into the same thing | 15:12 |
qubodup | k | 15:12 |
qubodup | next: main() caught exception(std::exception): png_get_file_size: fail to call png_create_write_struct() | 15:18 |
qubodup | libpng warning: Application was compiled with png.h from libpng-1.4.1 | 15:19 |
qubodup | libpng warning: Application is running with png.c from libpng-1.2.41 | 15:19 |
qubodup | libpng error: Incompatible libpng version in application and library | 15:19 |
qubodup | I wonder what it could be that is incorrectly compiled | 15:19 |
qubodup | anyways, recompiling ogre, but I think I did that just yesterday | 15:20 |
planetmaker | hm... dunno really :-) | 15:28 |
GeofftheMedio | given that warning, you might need to use libpng 1.2 | 16:27 |
GeofftheMedio | the purpose of the PluginFolder= line in ogre_plugins.cfg is to let you specify where to find ogre... making a patch to change the directory on this line doesn't really make sense since it will be different on every install | 16:31 |
GeofftheMedio | given that it says application is running with png.c from 1.2, you probably have libpng 1.2 ? | 16:32 |
GeofftheMedio | as far as I know, no png.c code would be put into anything else; that's what the library is for | 16:33 |
qubodup | GeofftheMedio: shouldn't cmake find out where ogre is for me? :) | 16:36 |
qubodup | GeofftheMedio: I have libpng 1.2 | 16:36 |
qubodup | whoops | 16:36 |
qubodup | 1.4 | 16:36 |
GeofftheMedio | ogre_plugins.cfg is not altered by cmake | 16:37 |
qubodup | GeofftheMedio: yes, but why is it required at all? I don't think I have any other ogre game that needs me to tell it where ogre is.. | 16:37 |
GeofftheMedio | cmake sets up the build environment, not the application configuration files | 16:37 |
GeofftheMedio | probably something could be set up in cmake to write an updated .cfg file | 16:38 |
qubodup | is ogre_plugins.cfg an ogre config file or a freeorion config file? | 16:38 |
GeofftheMedio | both | 16:38 |
GeofftheMedio | it's an ogre config file used by freeorion, which uses ogre, so needs an ogre config file | 16:38 |
qubodup | freeorion should be configured to use the ogre installation found via cmake.. at least if the ogre according to the config file can't be found | 16:39 |
GeofftheMedio | if you know how to modify the cmake files to make that happen, feel free to post a patch | 16:39 |
qubodup | it seems rather an client/human/chmain.cpp: root = new Root((GetBinDir() / "ogre_plugins.cfg").string()); issue | 16:40 |
GeofftheMedio | that's the code that creates the ogre rendering stuff, and it needs a .cfg file to know what plugins to load and where to find them | 16:42 |
GeofftheMedio | the easiest fix would be to write an new ogre_plugins.cfg from cmake to specify the location of ogre | 16:42 |
qubodup | I think instead the ogre_plugins.cfg used by ogre should be used perhaps... | 16:42 |
qubodup | /opt/OGRE/Samples/bin/Release/plugins.cfg | 16:43 |
qubodup | is it in my case | 16:43 |
GeofftheMedio | how do you propose to find that file from within freeorion? | 16:43 |
GeofftheMedio | and additionally, freeorion requires several specific plugins. do you proposed to modify the plugins.cfg in the ogree directory to contain just the plugins that freeorion needs? | 16:44 |
qubodup | no of course not that would be ridiculous | 16:44 |
qubodup | I don't know jack about ogre btw | 16:44 |
GeofftheMedio | I don't know much either | 16:44 |
qubodup | hm. let me check if the other ogre games actually have their own plugins.cfg | 16:45 |
GeofftheMedio | but given that we want freeorion to find ogre, and cmake knows where ogre is, and freeorion looks for ogre where ogre_plugings.cfg tells it, presumably cmake should update ogre_plugins.cfg | 16:45 |
GeofftheMedio | there are probably workarounds to using a .cfg file with ogre, so lack of one doesn't mean much | 16:45 |
GeofftheMedio | ie. we could probably store the location of ogre in freeorion's options.xml, but that has some other complications and the ogre_plugins.cfg works well enough | 16:46 |
qubodup | so dungeonhack apparently uses a plugins file it seems | 16:47 |
qubodup | and you're right it seems: they seem to use the cmake for it :) | 16:48 |
qubodup | 'the cmake' | 16:48 |
qubodup | http://codepad.org/r4VFYhQj is their cmake | 16:48 |
tpb | Title: Plain Text code - 68 lines - codepad (at codepad.org) | 16:48 |
GeofftheMedio | if you can adapt what they do to freeorion, please do. I don't have time to look into it now. | 16:48 |
qubodup | okay, i'll take a look | 16:48 |
qubodup | GeofftheMedio: oh, about my 1.2/1.4 libpng conflict, do you know how I could find out what app/library it is that usees the wrong png version? | 16:49 |
qubodup | I suspect it's a dependancy rather than freeorion | 16:49 |
GeofftheMedio | maybe ldd ? | 16:49 |
qubodup | huh? um. do you know how I can check? | 16:50 |
qubodup | oh right | 16:50 |
qubodup | thanks | 16:50 |
qubodup | `ldd executable` | 16:50 |
qubodup | allright, freeorion uses 1.4, on my journey goes | 16:51 |
GeofftheMedio | I think ldd also works on libraries? | 16:52 |
GeofftheMedio | and from your error message, it looks like freeorion expects 1.4, but is finding 1.2, so ldd might not really help; you need to replace the 1.2 it's finding with 1.4 | 16:53 |
qubodup | um. my computer grammar is lacking, I thought library files are executables | 16:53 |
qubodup | GeofftheMedio: no, it's the other way round | 16:53 |
qubodup | http://codepad.org/j7XzYMnj | 16:54 |
tpb | Title: Plain Text code - 13 lines - codepad (at codepad.org) | 16:54 |
qubodup | oh wait | 16:54 |
qubodup | you're right | 16:54 |
qubodup | what the hell | 16:54 |
GeofftheMedio | libraries are "shared objects" that contain code that can be used by excecutables. executables are usually called "binaries" | 16:54 |
GeofftheMedio | although I think compiled libraries are also binaries technially... | 16:55 |
qubodup | I .. can't think of a way to find the 1.2 libpng | 16:55 |
qubodup | ..except find / -name libpng12 | 16:55 |
qubodup | ..except find / -name *libpng12* that is | 16:56 |
qubodup | *sight* that's gonna take a while, but oh well | 16:56 |
GeofftheMedio | doesn't ldd tell you where the libraries that are loaded are located? | 16:57 |
GeofftheMedio | work/geoff/itk/maskedregtest > ldd MaskedRegTest libuuid.so.1 => /lib64/tls/libuuid.so.1 (0x0000003422600000) libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003423800000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003423400000) libm.so.6 => /lib64/tls/libm.so.6 (0x0000003423200000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003423c00000) ... | 16:58 |
GeofftheMedio | ... libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003423a00000) libc.so.6 => /lib64/tls/libc.so.6 (0x0000003422f00000) /lib64/ld-linux-x86-64.so.2 (0x0000003422200000) | 16:58 |
GeofftheMedio | (for example) | 16:58 |
GeofftheMedio | the => indicate where the specific file for each of the needed libraries are located... | 16:58 |
qubodup | /usr/share/games/intensityengine/src/windows/SDL_image/lib/libpng12-0.dll | 16:58 |
GeofftheMedio | dll is a windows library, not linux / osx | 16:59 |
qubodup | that's all # find /usr/ -name *libpng12* was able to find | 16:59 |
qubodup | yeah | 16:59 |
qubodup | GeofftheMedio: ldd ./freeorion &> http://codepad.org/w5BvrHYD | 17:01 |
tpb | Title: Plain Text code - 61 lines - codepad (at codepad.org) | 17:01 |
qubodup | GeofftheMedio: I don't understand too well how these are supposed to help me | 17:01 |
GeofftheMedio | hmm. looks like it's loading libpng14 | 17:01 |
qubodup | might be my distro's problem | 17:03 |
qubodup | perhaps somebody messed up a libpng compile | 17:03 |
qubodup | updating... | 17:03 |
*** kroddnoMobil has joined #freeorion | 17:05 | |
GeofftheMedio | try ldd on the gigi .so files | 17:05 |
*** ChanServ sets mode: +o kroddnoMobil | 17:05 | |
*** tomboy64 has quit IRC | 17:07 | |
qubodup | I recompiled it earlier. it uses libpng | 17:07 |
qubodup | at least `ldd libGiGi* | grep png` always tells something beginning with libpng14.so.14 => /usr/lib/libpng14.so.14 | 17:07 |
GeofftheMedio | hmm | 17:07 |
*** qubodup has quit IRC | 18:06 | |
*** tomboy64 has joined #freeorion | 20:14 | |
*** tomboy64 has quit IRC | 20:25 | |
*** tomboy64 has joined #freeorion | 20:30 | |
*** kroddnoMobil has quit IRC | 22:19 | |
*** bernardh has joined #freeorion | 22:30 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!