How to build Oolite source on Ubuntu

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

Tried an SVN update, still getting the ICE. So, deleted checked out code and went to get latest from scratch but could not:

Code: Select all

$ svn co http://svn.berlios.de/svnroot/repos/oolite-linux/trunk Oolite
Authentication realm: <http://svn.berlios.de:80> Members Only
Password for 'super': 
Authentication realm: <http://svn.berlios.de:80> Members Only
Username: 
Password for '': 
Authentication realm: <http://svn.berlios.de:80> Members Only
Username: 
Password for '': 
svn: OPTIONS of 'http://svn.berlios.de/svnroot/repos/oolite-linux/trunk': authorisation failed: Could not authenticate to server: rejected Basic challenge (http://svn.berlios.de)
Anyone know what the problem is?
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: How to build Oolite source on Ubuntu

Post by Gimi »

Look at the bottom of this page, had the same problem but there is a workaround.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

Now checked out again, still getting ICE, but in a different place (still in js though)

Code: Select all

c++ -o jsexn.o -c  -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS  -I.. -I. -I./dist/include -I./dist/include/nsprpub  -I/usr/include/nspr   -I.. -I../assembler -I../yarr  -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe  -DDEBUG -D_DEBUG -DTRACING -g -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1   -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsexn.pp ../jsexn.cpp
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[3]: *** [jsexn.o] Error 1
make[3]: Leaving directory `/opt/Elite/Oolite/trunk/deps/Cross-platform-deps/mozilla/js/src/build-debug'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/opt/Elite/Oolite/trunk/deps/Cross-platform-deps/mozilla/js/src/build-debug'
make[1]: *** [deps/Cross-platform-deps/mozilla/js/src/build-debug/build_stamp] Error 2
make[1]: Leaving directory `/opt/Elite/Oolite/trunk'
make: *** [LIBJS_DBG] Error 2
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: How to build Oolite source on Ubuntu

Post by another_commander »

Wild guess: How are you in terms of disk space?
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

165GB free ;)
I'm just about to try on another machine . . . will report back
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

OK the build runs on my laptop, with a better processor, so how do I generate an installer so I can get it onto my desktop? Could only find autopackage/posix/win32 installers in the build output.
Also, is it possible that the js library build is incompatible with an Atom? I thought they were basically i686 or "better".
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Re: How to build Oolite source on Ubuntu

Post by Getafix »

m4r35n357 wrote:
...so how do I generate an installer...
See this post.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

Right, tried again with gcc4.3 (and g++/gobc) and the build completed. One visible difference was that there was no (visible) JS stuff being built, which is where my g++4.4 gave an ICE. Is this a clue?

Having said that, the only executable I could find was oolite.app/oolite.dbg, which waited a while then exited with no terminal output. Am I missing a trick? Pretty sure I used to get an oolite.app/oolite executable.
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Re: How to build Oolite source on Ubuntu

Post by Getafix »

What is the command line you use to "make"?
It seems that the libjs.make is ignored.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

Getafix wrote:
What is the command line you use to "make"?
It seems that the libjs.make is ignored.
erm, you got me there, I'm just running the right command now, forgot the release target somehow sorry about that! OK, builds with GCC4.3, but does not run:

Code: Select all

21:51:47.541 [startup.exception]: ***** Unhandled exception during startup: NSInvalidArgumentException (Tried to add nil to array).
this is with SVN rev. 4591
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: How to build Oolite source on Ubuntu

Post by m4r35n357 »

OK, the bad machine is now dead, and I can build on the laptop (incidentally using gcc4.5), so problem solved ;)
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Lone_Wolf »

It seems the oolite files are no longer on berlios, but on sourceforge.

i used this link : http://sourceforge.net/projects/oolite- ... 76.tar.bz2

Also i'd like to see the thread title changed, since the info in here is useful for non-ubuntu users that want to build from source also.

Getafix, can you update the OP and title ?
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Eric Walch »

Lone_Wolf wrote:
It seems the oolite files are no longer on berlios, but on sourceforge.
They should be on both as mirror. They are still on the berlios page were they were always available. Also a checkout is still possible on the old link. I just made a checkout at berlios of 1.74 maintenance today without problems: svn checkout 'svn://svn.berlios.de/oolite-linux/branches/1.74-maintenance'
(Minus the quotes. Quotes only added to prevent conversion to a link)
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Lone_Wolf »

Eric, all links on the download page for oolite on berlios ( http://developer.berlios.de/project/sho ... up_id=3577 ) now redirect to sourceforge.

not every browser / os handles such redirects gracefully (especially if they use javascript for it and you have it blocked).
This also indicates that the files are now physically present on sourceforge mirrors, not on berlios anymore.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Eric Walch »

Lone_Wolf wrote:
Eric, all links on the download page for oolite on berlios ( http://developer.berlios.de/project/sho ... up_id=3577 ) now redirect to sourceforge.
But on sourceforge I was not able to find a complete download page. Its all scattered over the site. Probably because it was an automated conversion from Berlios. When looking on sourceforge for all projects, there are two entries for Oolite. (Both refer to the same).
The first points to all downloads: http://sourceforge.net/projects/oolite-linux.berlios/ The download button lets you download the outdated 1.65 version, but after showing all files, you can download even all older oolite testversions.
The other Oolite project page is: http://sourceforge.net/projects/oolite. ... =directory what points to the current 1.76 version. However, the download button only downloads the mac version. A show files brings you to a page for downloads for other platforms.

But things like planet tool, I only can find between the first long list of files.
Post Reply