Page 9 of 13

How to build Oolite source on Ubuntu

Posted: Mon Aug 02, 2010 9:38 am
by Getafix
First post has been updated for 1.74.2-test release.

Re: How to build Oolite source on Ubuntu

Posted: Thu Feb 24, 2011 12:17 am
by Lone_Wolf
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/

Re: How to build Oolite source on Ubuntu

Posted: Thu Feb 24, 2011 11:39 am
by Getafix
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.

Re: How to build Oolite source on Ubuntu

Posted: Mon Mar 14, 2011 5:58 am
by Getafix
First post has been updated for Oolite beta 1.75.1.

Re: How to build Oolite source on Ubuntu

Posted: Wed Jul 13, 2011 9:41 pm
by Getafix
First post has been updated for Oolite beta 1.75.3.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 14, 2011 9:48 pm
by RyanHoots
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.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 14, 2011 9:53 pm
by JensAyton
“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.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 14, 2011 9:57 pm
by RyanHoots
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.

Re: How to build Oolite source on Ubuntu

Posted: Sat Jul 16, 2011 12:06 am
by Getafix
Updated first post to also include "curl" in the deps packages step.

Re: How to build Oolite source on Ubuntu

Posted: Sat Jul 16, 2011 1:10 am
by RyanHoots
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.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 21, 2011 12:53 pm
by m4r35n357
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.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 21, 2011 1:03 pm
by another_commander
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.

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 21, 2011 1:09 pm
by m4r35n357
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 ;)

Re: How to build Oolite source on Ubuntu

Posted: Thu Jul 21, 2011 10:07 pm
by Lone_Wolf
Target: i486-linux-gnu
This looks weird, what processor are you using ?

Re: How to build Oolite source on Ubuntu

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