How to build Oolite source on Ubuntu

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

Moderators: winston, another_commander, Getafix

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

How to build Oolite source on Ubuntu

Post by Getafix » Mon Aug 02, 2010 9:38 am

First post has been updated for 1.74.2-test release.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Lone_Wolf » Thu Feb 24, 2011 12:17 am

In the first post of this thread,
(2) Get and build the source

For building 1.75 use :

Code: Select all

svn co -r4375 http://svn.berlios.de/svnroot/repos/oolite-linux/tags/1.75/

instead of

Code: Select all

svn co -r3712 http://svn.berlios.de/svnroot/repos/oolite-linux/branches/1.74-maintenance/
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
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 » Thu Feb 24, 2011 11:39 am

Thanx Lone_Wolf.

First post has been updated for Oolite beta 1.75.
Please, note that one more dependency (i.e. libnspr4-dev) has been introduced.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
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 » Mon Mar 14, 2011 5:58 am

First post has been updated for Oolite beta 1.75.1.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
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 » Wed Jul 13, 2011 9:41 pm

First post has been updated for Oolite beta 1.75.3.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: How to build Oolite source on Ubuntu

Post by RyanHoots » Thu Jul 14, 2011 9:48 pm

I got an error when running "make -f Makefile release". Here is what I got:

Code: Select all

ryanhoots@ryanhoots-laptop:~/Oolite-Dev/1.75.3$ make -f Makefile release
make -f libjs.make debug=no
make[1]: Entering directory `/home/ryanhoots/Oolite-Dev/1.75.3'

Updating Javascript sources...

cd deps/Cocoa-deps/scripts && ./update-mozilla.sh
libjs not present, initial download needed.
Downloading libjs source from http://jens.ayton.se/oolite/deps/firefox-4.0.source.js-only.tbz...
./update-mozilla.sh: 75: curl: not found
[color=#FF0000]error: could not download http://jens.ayton.se/oolite/deps/firefox-4.0.source.js-only.tbz
make[1]: *** [LIBJS_SRC] Error 1
make[1]: Leaving directory `/home/ryanhoots/Oolite-Dev/1.75.3'
make: *** [LIBJS] Error 2[/color]
Does anyone know what the problem is? I have tried in both the ~/Oolite-Dev/trunk and ~/Oolite-Dev/1.75.3 directories, same error.
Image

User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: How to build Oolite source on Ubuntu

Post by JensAyton » Thu Jul 14, 2011 9:53 pm

“curl” is a command-line utility for downloading from FTP and HTTP servers, which is used by the update scripts. You should be able to get it from your distro’s package manager.

User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: How to build Oolite source on Ubuntu

Post by RyanHoots » Thu Jul 14, 2011 9:57 pm

Ahruman wrote:“curl” is a command-line utility for downloading from FTP and HTTP servers, which is used by the update scripts. You should be able to get it from your distro’s package manager.
Thank you, that should help.

EDIT: It worked! Thanks, Ahruman.
Image

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 960
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 » Sat Jul 16, 2011 12:06 am

Updated first post to also include "curl" in the deps packages step.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]

User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: How to build Oolite source on Ubuntu

Post by RyanHoots » Sat Jul 16, 2011 1:10 am

Getafix wrote:Updated first post to also include "curl" in the deps packages step.
That's a good idea. If curl wasn't on my system before building Oolite, it makes sense that others wouldn't have it as well.
Image

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 » Thu Jul 21, 2011 12:53 pm

Just tried to do a build, it's worked fine before, but the code seems to be breaking my compiler . . .

Code: Select all

c++ -o jsmath.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/jsmath.pp ../jsmath.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.
Is this a known problem, or just me? Ubuntu 10.04, latest svn trunk rev. 4584.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5400
Joined: Wed Feb 28, 2007 7:54 am

Re: How to build Oolite source on Ubuntu

Post by another_commander » Thu Jul 21, 2011 1:03 pm

Ouch, last time I saw an ICE was when using gcc version 3.4.2. Is this really gcc you are using here or some other compiler? Does

Code: Select all

c++ -v
produce any output? If yes, can you post it?

You can always try a clean rebuild, but I am not sure how helpful it would be here.

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 » Thu Jul 21, 2011 1:09 pm

another_commander wrote:Ouch, last time I saw an ICE was when using gcc version 3.4.2. Is this really gcc you are using here or some other compiler? Does

Code: Select all

c++ -v
produce any output? If yes, can you post it?

You can always try a clean rebuild, but I am not sure how helpful it would be here.
That was after a clean - I think, well I typed:

Code: Select all

. /usr/share/GNUstep/Makefiles/GNUstep.sh
make clean -f Makefile
make -f Makefile
Anyway, here's the compiler version info:

Code: Select all

$ c++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
I have seen more than my fair share of internal compiler errors, although in those cases it was my code that was breaking it ;)

User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: How to build Oolite source on Ubuntu

Post by Lone_Wolf » Thu Jul 21, 2011 10:07 pm

Target: i486-linux-gnu
This looks weird, what processor are you using ?
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.

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 » Thu Jul 21, 2011 10:22 pm

Lone_Wolf wrote:
Target: i486-linux-gnu
This looks weird, what processor are you using ?
Intel Atom

Code: Select all

$ cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 28
model name	: Intel(R) Atom(TM) CPU  230   @ 1.60GHz
stepping	: 2
cpu MHz		: 1596.062
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de tsc msr pae mce cx8 apic mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
bogomips	: 3192.12
clflush size	: 64
cache_alignment	: 64
address sizes	: 32 bits physical, 48 bits virtual
power management:

Post Reply