Oolite Bulletins

For information and discussion about Oolite.
It is currently Tue May 23, 2017 8:44 pm

All times are UTC




Post new topic  Reply to topic  [ 48 posts ]  Go to page Previous 1 2 3 4 Next
Author Message
PostPosted: Tue Aug 27, 2013 1:04 pm 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
Gimi simple-minded? Thargoid an idiot? Oh dear... where does that put me?
At a higher state of evolution where menial tasks like compiling software no longer makes sense. :mrgreen:

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
PostPosted: Tue Aug 27, 2013 1:11 pm 
Online
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
User avatar

Joined: Sat Jul 04, 2009 9:31 pm
Posts: 12520
Location: Corke's Drift
Quote:
Quote:
Gimi simple-minded? Thargoid an idiot? Oh dear... where does that put me?
At a higher state of evolution where menial tasks like compiling software no longer makes sense.
<howls> Thing is, at my so-called 'higher state of evolution' (aka old and frazzled) far too many things no longer make sense.

_________________
A squid eating dough in a polyethylene bag is fast and bulbous! Got me?


Top
   
PostPosted: Tue Aug 27, 2013 5:05 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
Oh trust me, when it comes to hacking together source builds and stuff like that, I'm most definitely an idiot.

I've just about kept the SVN build environment working (with help from A_C), but source code building and linking etc is still largely a blur of files and dependencies floating around in a mess to my mind.

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Wed Aug 28, 2013 10:26 am 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
Quote:
Quote:
Gimi simple-minded? Thargoid an idiot? Oh dear... where does that put me?
At a higher state of evolution where menial tasks like compiling software no longer makes sense.
<howls> Thing is, at my so-called 'higher state of evolution' (aka old and frazzled) far too many things no longer make sense.
I recognise those symptoms of ongoing evolution. I guess they er inevitable.

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
PostPosted: Wed Aug 28, 2013 10:39 am 
Online
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
User avatar

Joined: Sat Jul 04, 2009 9:31 pm
Posts: 12520
Location: Corke's Drift
Yep! Gimi... if you can put together a 'how to' that this highly-evolved dumb pilot can follow, I'll be impressed!

_________________
A squid eating dough in a polyethylene bag is fast and bulbous! Got me?


Top
   
PostPosted: Wed Aug 28, 2013 11:11 am 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
Yep! Gimi... if you can put together a 'how to' that this highly-evolved dumb pilot can follow, I'll be impressed!
I'm looking at it. I will probably beg cim for some additional functionality in the GNU makefile.

I think it's safer to run a make -fMakefile clean after switching branch. Drawback is that that command will delete your AddOns folder, your save games and logs. I was hoping that there was some way to issue an alternative make command that leaves your AddOns folder and save games alone. That will introduce problems of it's own though. My suggestion would be an make -fMakefile tidy command that keeps your save games and AddOns sans debug.oxp with a warning to the fact before running.

Not sure if this made any sense.

Anyway, I still have some experimenting to do.

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
PostPosted: Wed Aug 28, 2013 1:58 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6176
Location: Aboard the Pitviper S.E. "Blackwidow"
Quote:
Drawback is that that command will delete your AddOns folder, your save games and logs. I was hoping that there was some way to issue an alternative make command that leaves your AddOns folder and save games alone. That will introduce problems of it's own though. My suggestion would be an make -fMakefile tidy command that keeps your save games and AddOns sans debug.oxp with a warning to the fact before running.
Why not just take it one step further and build a 'Trunk' (Master) installer? That's what I used to do back when I was producing the Dizzy's Nightly Builds.. so far as I know, Getafix is still using (albeit possibly modified by now) my customised build script to produce the Windows Nightlys.. it is specifically designed to leave added/generated content and GNUstep configuration untouched. Setting it to leave the logs alone as well is just a matter of commenting out the relevant line in the Uninstaller Section.

You may be able to adapt it to your purposes.. it can be downloaded here:
https://app.box.com/shared/fmtnud1ucm

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
PostPosted: Wed Aug 28, 2013 2:02 pm 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
Quote:
Drawback is that that command will delete your AddOns folder, your save games and logs. I was hoping that there was some way to issue an alternative make command that leaves your AddOns folder and save games alone. That will introduce problems of it's own though. My suggestion would be an make -fMakefile tidy command that keeps your save games and AddOns sans debug.oxp with a warning to the fact before running.
Why not just take it one step further and build a 'Trunk' (Master) installer? That's what I used to do back when I was producing the Dizzy's Nightly Builds.. so far as I know, Getafix is still using (albeit possibly modified by now) my customised build script to produce the Windows Nightlys.. it is specifically designed to leave added/generated content and GNUstep configuration untouched. Setting it to leave the logs alone as well is just a matter of commenting out the relevant line in the Uninstaller Section.

You may be able to adapt it to your purposes.. it can be downloaded here:
https://app.box.com/shared/fmtnud1ucm
I fear that is beyond my abilities, but I'll certainly have a look at it. Thanks.

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
PostPosted: Wed Aug 28, 2013 2:11 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6176
Location: Aboard the Pitviper S.E. "Blackwidow"
Quote:
I fear that is beyond my abilities, but I'll certainly have a look at it. Thanks.
After tweaking it, all you need do is add a call to the script as the final step after compiling.. it will then build an installer that creates a separate 'Oolite-Trunk' installation. Any addons you provide for the trunk version will stay there each time you update. The installer will also take care of uninstalling the old 'Trunk' version before installing the new one.

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
PostPosted: Wed Aug 28, 2013 2:18 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Mon Apr 06, 2009 12:20 pm
Posts: 6176
Location: Aboard the Pitviper S.E. "Blackwidow"
Having just looked over it for the first time in ages, the references to SVN version would need adjusting.. possibly Getafix has already done so..

Getafix, could you link to a copy of the current incarnation of the script, mate?

Edit: I'm getting forgetful.. to run the script, you'll need to install NSIS, available for free at:
http://nsis.sourceforge.net/Main_Page

For usage, see the way it's called in the final line of the 'mkwininst.sh' script located in the 'tools' folder of your Oolite source code.

_________________
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied


Top
   
PostPosted: Wed Aug 28, 2013 7:41 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
Right, I think I need that idiots guide. I've got the git interface downloaded and an account set up. I've found the oolite source on github, but I've no idea on how to use one to download the other.

I can open the shell, but I've no idea of commands to use to point the shell at the repo to pull it down - I'm missing a key step here I think...

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Wed Aug 28, 2013 8:12 pm 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
Right, I think I need that idiots guide. I've got the git interface downloaded and an account set up. I've found the oolite source on github, but I've no idea on how to use one to download the other.

I can open the shell, but I've no idea of commands to use to point the shell at the repo to pull it down - I'm missing a key step here I think...
To download source look for a button on the right side called "clone to desktop" on this page.

Click on that and it should bring up a dialogue asking if you want to use the git interface to download.

I'm looking at a guide, but still need to sort out some pitfalls I have come come across. Mainly changing branch and then recompiling seems to a bit iffy. Also, the "gitignore" file needs updating in all the branches to exclude some files in order to avoid confusion.

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
PostPosted: Wed Aug 28, 2013 9:12 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
Got it cloning now, but taking forever. Probably not helped by an SVN build also going on.

As you say this may take some getting used to, but it looks interesting.

Editted to add - ok, downloaded and now building with A_C's shell set-up.

Looks OK so far, although not so pleased that I can't find any way to download it to somewhere other than "my documents/github/oolite". Is there some way to change that location do you know offhand?

_________________
My OXPs via Boxspace or from my Wiki pages :D.

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Thu Aug 29, 2013 6:55 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4821
I find git's command line very simple to use and I really don't think a gui would be necessary. Here is a very quick guide on how to compile Oolite's source from github. We will assume that we will do all the work inside C:\OoliteDev:

First-time cloning of source tree:
1. Launch git's shell (I use git-bash.bat to do this).


2. At the command prompt type:
cd /c/OoliteDev
git clone https://github.com/OoliteProject/oolite.git


3. The repository will be cloned inside the folder 'oolite'. Once it's done, there are some submodules that need to be dealt with. Do:
cd oolite
git submodule update --init

This will get you the complete source tree, including any and all binary resources (textures, sounds, dependency dlls etc.).


4. Exit git shell.


5. Start up the compiler shell, navigate to the root folder you just cloned (/c/OoliteDev/oolite), proceed as usual to compile.
Note: If your computer has a multi-core CPU, you can use make's -j[number of threads] switch to make it compile ultra-fast. Assuming a 4-core CPU:
make -fMakefile release -j4 will build you a test-release executable, ready to run inside c:\OoliteDev\oolite\oolite.app within seconds.




Subsequent local updates of the source:
1. Launch git's shell.


2. At the command prompt type:
cd /c/OoliteDev/oolite
[OPTIONAL] git checkout branchName [/OPTIONAL] (switches you from master to the branch called branchName)
git pull


3. Exit git shell.


4. Start up the compiler shell, navigate to /c/OoliteDev/oolite.


5. If you have just switched branches, do
make -fMakefile clean
Don't miss this step, otherwise you might end up in a mess of branch-crossed object files, with failure to compile almost guaranteed.


6. Proceed with compiling as usual.


Last edited by another_commander on Thu Aug 29, 2013 10:07 pm, edited 1 time in total.
Add a forgotten step - thanks to Thargoid for reminding me.


Top
   
PostPosted: Thu Aug 29, 2013 7:05 am 
Offline
Intergalactic Spam Assassin
Intergalactic Spam Assassin
User avatar

Joined: Tue Aug 29, 2006 5:02 pm
Posts: 2073
Location: Norway
Quote:
<snip>
5. If you have just switched branches, do
make -fMakefile clean
Don't miss this step, otherwise you might end up in a mess of branch-crossed object files, with failure to compile almost guaranteed.
<snip>
Thank you AC. This may well be how I end up doing things, as it gives more control and allows me to use different folder for different branches if I so choose. I'm still exploring.

Word of warning though.
The command make -fmakefile clean will delete the entire oolite.app folder including any save games as well as the entire OddOns folder. Move/copy them out before you run the command if you want to keep them.

Which leads me to my next question. Can I have a modified clean command that leaves AddOns and Save games intact or that automagically moves those folders elsewhere. My suggestion is make -fmakefile tidy.

This will act as a safety feature for us simple minded folks.

Edit: Should I add this request to the issue tracker?

_________________
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Also, my tiny contribution to the Ooniverse


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 48 posts ]  Go to page Previous 1 2 3 4 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited