Installation in 12.04 LTS

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Installation in 12.04 LTS

#1 Post by sebar »

Hey!
It's been a while I last played the game on my system, but it used to work.
I don't know why, but suddenly it wouldn't start anymore, the console giving out the known

Code: Select all

libpng error: bad parameters to zlib
Segmentation fault (core dumped)
I used to be able to install it pretty easily - out of the box - so to speak. But not anymore.
Is there a something like a "failsafe install" for dummies?
Or am I stuck the same way as kemplu (see link)?
viewtopic.php?f=25&t=7694
The posted instructions don't help me anyway - I fail to fix the missing OGRE and OIS...
Would it help anything to switch the graphics driver or upgrade to Ubuntu 13.10?

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Installation in 12.04 LTS

#2 Post by Dilvish »

sebar wrote:Would it help anything to ... upgrade to Ubuntu 13.10?
Yes, there are prepackaged current test versions for 12.10 and for 13.10.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Installation in 12.04 LTS

#3 Post by Nagilum »

Is this still an issue?
Last edited by Nagilum on Sun Feb 02, 2014 6:13 pm, edited 1 time in total.

sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Re: Installation in 12.04 LTS

#4 Post by sebar »

Yes, still an issue... OK, apparenty it would help to upgrade Ubuntu - but I wanted to wait with that until the next LTS ;). Is there anything else I can do?

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Installation in 12.04 LTS

#5 Post by Nagilum »

Ok, in that case I'll upload builds to my repo, but I won't do that regularly as these are somewhat painful to build as everything is so out-of-date. Even the ImageMagic on there can't handle .ico files. m).
You'll need to install a few more dependencies from my repo - hence the repo.

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

Re: Installation in 12.04 LTS

#6 Post by adrian_broher »

Nagilum wrote:Even the ImageMagic on there can't handle .ico files. m).
FYI: the default/data/art/icons/ directory contains freeorion icons (FO_Icon_*x*.png) in all sizes and colors… well at least sizes. Maybe that helps you a bit with packaging.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Installation in 12.04 LTS

#7 Post by Nagilum »

adrian_broher wrote:
Nagilum wrote:Even the ImageMagick on there can't handle .ico files. m).
FYI: the default/data/art/icons/ directory contains freeorion icons (FO_Icon_*x*.png) in all sizes and colors… well at least sizes. Maybe that helps you a bit with packaging.
Good idea! Doesn't completely free us from using ImageMagick but it helps with building on 12.04.

Ok, I've finished the builds and uploaded them to http://www.nagilum.org/repo/
Quick instructions for root:

Code: Select all

echo "deb http://www.nagilum.org/repo/ precise precise" >>/etc/apt/sources.list
curl http://www.nagilum.org/repo/pubkey.asc |apt-key add -
apt-get update
apt-get install freeorion
Seems to work for me (in VirtualBox using the LiveCD).

sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Re: Installation in 12.04 LTS

#8 Post by sebar »

YES!! Awesome! Thank you so much, I'm really amazed by your engagement, guys!

Edit: Oh, I was too quick. It starts OK, but when I doubleclick on something to place in the production cue it crashes :(.

sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Re: Installation in 12.04 LTS

#9 Post by sebar »

Hmm... seems to be a general problem. Megaglest also crashes after starting alright.

Code: Select all

megaglest v3.6.0.3
Compiled using: GNUC: 40602 [64bit] on: Feb 29 2012 04:54:53
SVN: [Rev: ] - using STREFLOP
[2014-02-04 18:17:02] *ERROR* In [game.cpp::mouseDownLeft Line: 1851] Error [OpenGL error #1285 [0x505] : [out of memory] at file: [/build/buildd/megaglest-3.6.0.3/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp], line: 293]
megaglest: /build/buildd/megaglest-3.6.0.3/source/shared_lib/sources/graphics/gl/model_renderer_gl.cpp:38: virtual void Shared::Graphics::Gl::ModelRendererGl::begin(bool, bool, bool, Shared::Graphics::MeshCallback*): Zusicherung »rendering == false« nicht erfüllt.
Abgebrochen (Speicherabzug geschrieben)
Freeorion's crash looks like that:

Code: Select all

CWD: /usr/share/games/freeorion
FreeOrion server waiting for network events
freeorion: /tmp/buildd/freeorion_0.4.3+svn6795/FreeOrion/GG/src/ListBox.cpp:1810: void GG::ListBox::AdjustScrolls(bool): Assertion `!m_vscroll || static_cast<int>(m_vscroll->PageSize()) == ClientHeight() || ClientHeight() < 0' failed.
Aborted (core dumped)
I've no idea why the games started crashing like that...

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Installation in 12.04 LTS

#10 Post by Geoff the Medio »

sebar wrote:I've no idea why the games started crashing like that...
Those crashes are unrelated. The FreeOrion issue is fixed in the latest SVN.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Installation in 12.04 LTS

#11 Post by Nagilum »

I see. Will rebuild.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

Re: Installation in 12.04 LTS

#12 Post by Nagilum »

Ok, rebuild svn6830 for the Precise Penguin (Ubuntu 12.04) and uploaded to the repo.
Please test.

sebar
Space Floater
Posts: 15
Joined: Tue Mar 26, 2013 11:44 am

Re: Installation in 12.04 LTS

#13 Post by sebar »

BINGO! Thank you so much :)!

User avatar
mark487
Space Krill
Posts: 3
Joined: Sat Mar 01, 2014 6:41 pm
Location: Sydney, Australia

Re: Installation in 12.04 LTS

#14 Post by mark487 »

Code: Select all

echo "deb http://www.nagilum.org/repo/ precise precise" >>/etc/apt/sources.list
curl http://www.nagilum.org/repo/pubkey.asc |apt-key add -
apt-get update
apt-get install freeorion
Thank you! I have installed on Linux Mint 13 Maya.

- mark

Post Reply