The bleeding edge!
Posted: Tue Jan 22, 2008 4:05 am
Hello everybody
I've followed the "building Oolite from source" howto on the wiki, but I got semi-stuck on quite a few points.
Here's what I did. Hopefully some other newbies can find this useful. All in all, it was a pretty good learning experience, shame it doesn't count towards getting elite status.
The first svn package for windows I could find required me to install python,so I got python 2.5.1 - svn seemed to install ok.
then I got & installed the GNUstep development environment. No luck with typing svn - ok, time to muck around with this thing...
To avoid re-typing export PATH=$PATH:...etc.. every time I restart gnustep I modified the last line of
C:\GNUstep\Development\msys\1.0\etc\profile from
to
hmm, for some reason python is not added to the PATH variable... Ok, forget about python: I can use tortoise svn instead...
Tortoise svn is now installed. Using windows I get to C:\GNUstep\Local\oolite\, make a new folder called trunk & doube click it. Inside 'trunk' right click>svn checkout then enter
svn://svn.berlios.de/oolite-linux/trunk where it asks for the repository's U R L.
Yay, now I've got all that svn goodness in the right place!
I fire up MSYS for GNUstep again, then from the command line:
cd oolite\trunk
make
it all seems to be ok for a while then - disaster! These are the last few lines before make dies:
wait, if I'm not mistaken, this is the integrated debug console that only works in a mac... ok - this is activated by OO_EXCLUDE_DEBUG_SUPPORT
aha, so all I need to do is define OO_EXCLUDE_DEBUG_SUPPORT inside the make file...
hmmm, doesn't seem to work....
what about this....
make clean
OO_EXCLUDE_DEBUG_SUPPORT=yes
export OO_EXCLUDE_DEBUG_SUPPORT
make
nope, that doesn't work either....
I know, use brute force! I replace all the '#ifndef OO_EXCLUDE_DEBUG_SUPPORT' with '#if 0'
There's got to be a better way to do this! Never mind, I just wanted it to compile, at least once!
Success! It does compile, and I've got a shiny new directory called oolite.app
Not out of the woods yet! It dies telling me it can't find js32.dll. It was not included in the local.zip file, so when I copied all the dlls from $GNUSTEP_LOCAL_ROOT/bin/ I still can't launch the compiled program...
let's look at the 1.70-test directory:
hmmm, most of the dlls are different... ok, let's copy all the dlls across... still no joy...
hmm, there's a stderr file: yep, it says there's a bunch of textures & sounds missing.... ok, copy the whole of /resources from 1.70-test.
inside the gnustep console I finally type
openapp oolite.app
&.....
Wow, I did it!!!! I've got a brand new Oolite 1.70 with the latest patches!!!!!!!!!!!!!!
Wow! Who'd have thunk it! It works!
I'm well aware that I probably did a lot of stuff that wasn't either necessary or useful, but somehow I actually made it work, which feels pretty amazing. Once I'm fairly sure everythig is ok, I'll just swap the new exe for the old one, and that will be that.
It'd be really great if the howto was updated for the latest build - anything but my ramblings... I know it would have made things a lot easier for me, and probably for others!
I've followed the "building Oolite from source" howto on the wiki, but I got semi-stuck on quite a few points.
Here's what I did. Hopefully some other newbies can find this useful. All in all, it was a pretty good learning experience, shame it doesn't count towards getting elite status.
The first svn package for windows I could find required me to install python,so I got python 2.5.1 - svn seemed to install ok.
then I got & installed the GNUstep development environment. No luck with typing svn - ok, time to muck around with this thing...
To avoid re-typing export PATH=$PATH:...etc.. every time I restart gnustep I modified the last line of
C:\GNUstep\Development\msys\1.0\etc\profile from
Code: Select all
....
alias clear=clsb
cd "$HOME"
Code: Select all
....
alias clear=clsb
#cd "$HOME"
export PATH=$PATH:$GNUSTEP_LOCAL_ROOT/bin
cd "$GNUSTEP_LOCAL_ROOT"
Tortoise svn is now installed. Using windows I get to C:\GNUstep\Local\oolite\, make a new folder called trunk & doube click it. Inside 'trunk' right click>svn checkout then enter
svn://svn.berlios.de/oolite-linux/trunk where it asks for the repository's U R L.
Yay, now I've got all that svn goodness in the right place!
I fire up MSYS for GNUstep again, then from the command line:
cd oolite\trunk
make
it all seems to be ok for a while then - disaster! These are the last few lines before make dies:
Code: Select all
Compiling file src/Core/OOPriorityQueue.m ...
Compiling file src/Core/Scripting/OOScriptTimer.m ...
Compiling file src/Core/Scripting/OOJSTimer.m ...
Compiling file src/Core/Scripting/OOJSClock.m ...
Compiling file src/Core/Debug/OODebugSupport.m ...
In file included from src/Core/Debug/OODebugSupport.m:56:
src/Core/Debug/OODebugTCPConsoleClient.h:50: error: syntax error before "NSOutputStream"
make[1]: *** [shared_obj/OODebugSupport.o] Error 1
make: *** [oolite.all.objc-program.variables] Error 2
aha, so all I need to do is define OO_EXCLUDE_DEBUG_SUPPORT inside the make file...
hmmm, doesn't seem to work....
what about this....
make clean
OO_EXCLUDE_DEBUG_SUPPORT=yes
export OO_EXCLUDE_DEBUG_SUPPORT
make
nope, that doesn't work either....
I know, use brute force! I replace all the '#ifndef OO_EXCLUDE_DEBUG_SUPPORT' with '#if 0'
There's got to be a better way to do this! Never mind, I just wanted it to compile, at least once!
Success! It does compile, and I've got a shiny new directory called oolite.app
Not out of the woods yet! It dies telling me it can't find js32.dll. It was not included in the local.zip file, so when I copied all the dlls from $GNUSTEP_LOCAL_ROOT/bin/ I still can't launch the compiled program...
let's look at the 1.70-test directory:
hmmm, most of the dlls are different... ok, let's copy all the dlls across... still no joy...
hmm, there's a stderr file: yep, it says there's a bunch of textures & sounds missing.... ok, copy the whole of /resources from 1.70-test.
inside the gnustep console I finally type
openapp oolite.app
&.....
Wow, I did it!!!! I've got a brand new Oolite 1.70 with the latest patches!!!!!!!!!!!!!!
Wow! Who'd have thunk it! It works!
I'm well aware that I probably did a lot of stuff that wasn't either necessary or useful, but somehow I actually made it work, which feels pretty amazing. Once I'm fairly sure everythig is ok, I'll just swap the new exe for the old one, and that will be that.
It'd be really great if the howto was updated for the latest build - anything but my ramblings... I know it would have made things a lot easier for me, and probably for others!