Oolite Bulletins

For information and discussion about Oolite.
It is currently Sun Aug 20, 2017 9:55 am

All times are UTC




Post new topic  Reply to topic  [ 243 posts ]  Go to page Previous 113 14 15 16 17 Next
Author Message
PostPosted: Sun Jan 05, 2014 8:32 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sun Apr 29, 2012 2:23 pm
Posts: 883
Location: United Kingdom
Quote:
*dances around happily*

Thank you, thank you, thank you for this guide! I just managed to compile and test a certain tweak of mine (and no, I am not talking of the failed attempt to de-hardcode the number of systems)
Now you have to begin the long and tiring journey of trial and error of coding and re-coding... :lol:


Top
   
PostPosted: Fri Jan 17, 2014 6:31 am 
Offline
Poor
Poor
User avatar

Joined: Fri Jan 17, 2014 6:24 am
Posts: 4
Thanks, last night I followed the instructions in the first post of this thread and it worked first time flawlessly on Windows 8 ultimate 64 bit
I then wrote a bash script (comprising of the last bit) to update and compile it which I tested this morning again it worked flawlessly

I hope to become an active contributor to this project. we'll see just how good (or bad) I am at coding in C.. lol


Top
   
PostPosted: Fri Jan 17, 2014 7:59 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
User avatar

Joined: Fri Nov 11, 2011 6:19 pm
Posts: 4008
Quote:
we'll see just how good (or bad) I am at coding in C.. lol
Welcome to the forums, BlueSteel.

Note that Oolite uses Objective-C, rather than C, as its language. If you're already familiar with C then there's a few extra bits of syntax mostly related to how objects are defined, used and memory managed, plus an extensive (but generally well-documented) standard object library in the form of Cocoa or GNUStep (depending on OS). C-style code is also used in situations where maximum speed and lower-level memory access is required, generally when interfacing with graphics and sound libraries, but mostly that's avoided. If you're not already familiar with C, this information will probably change which language tutorials and references you consider.

_________________
OXPs: [EliteWiki] New Cargoes, [EliteWiki] Skilled NPCs, [EliteWiki] Curse of the Black Sunspot, and more


Top
   
PostPosted: Mon Jan 20, 2014 10:22 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Sep 01, 2009 11:55 pm
Posts: 677
Location: in maZe
how do I get the version number/code to show on screen with this method?

_________________
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM


Top
   
PostPosted: Mon Jan 20, 2014 10:33 pm 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
User avatar

Joined: Fri Nov 11, 2011 6:19 pm
Posts: 4008
Make the target "release-snapshot" (which defines compile-time constants which enable the watermark)

_________________
OXPs: [EliteWiki] New Cargoes, [EliteWiki] Skilled NPCs, [EliteWiki] Curse of the Black Sunspot, and more


Top
   
PostPosted: Mon Jan 20, 2014 10:39 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Sep 01, 2009 11:55 pm
Posts: 677
Location: in maZe
Quote:
Make the target "release-snapshot" (which defines compile-time constants which enable the watermark)
Sorry, but that's Hebrew to me. :(
What should I type, and where, and when?

_________________
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM


Top
   
PostPosted: Mon Jan 20, 2014 10:41 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
When you do the final build, you need something like "make -fMakefile release-snapshot" (without the quotes) in the root of your trunk code set-up after you do the git download or update.

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

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Mon Jan 20, 2014 10:52 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Sep 01, 2009 11:55 pm
Posts: 677
Location: in maZe
Quote:
When you do the final build, you need something like "make -fMakefile release-snapshot" (without the quotes) in the root of your trunk code set-up after you do the git download or update.
So I just ditch the "debug=no" -part and insert "-fMakefile release-snapshot" instead?

_________________
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM


Top
   
PostPosted: Tue Jan 21, 2014 7:44 am 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
Yes, or basically just type the line above. Another segment I use (if you have a multi-core CPU) is -j4, where that tells the compile to use that number of cores (4 in the -j4 case) to speed things up a bit.

Before you do it though, you probably should "make clean" which will remove the previous build, as if you build one build target over another you can get weird problems of files not coming out right.

So basically the bold/italic bits below:

  • git pull (to update, or if necessary do your repository download if it's the first time)
  • make clean (if you've done a previous build of another target)
  • make -fMakefile release-snapshot (to make the code).
[/color]

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

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Tue Jan 21, 2014 2:26 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Tue Sep 01, 2009 11:55 pm
Posts: 677
Location: in maZe
Quote:
Yes, or basically just type the line above. Another segment I use (if you have a multi-core CPU) is -j4, where that tells the compile to use that number of cores (4 in the -j4 case) to speed things up a bit.

Before you do it though, you probably should "make clean" which will remove the previous build, as if you build one build target over another you can get weird problems of files not coming out right.

So basically the bold/italic bits below:

  • git pull (to update, or if necessary do your repository download if it's the first time)
  • make clean (if you've done a previous build of another target)
  • make -fMakefile release-snapshot (to make the code).
[/color]
Cool, thanks.

Where do I put that -j4 ?
Before -fMakefile? (making the command: make -j4 -fMakefile release-snapshot)

_________________
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM


Top
   
PostPosted: Tue Jan 21, 2014 2:58 pm 
Offline
Poor
Poor
User avatar

Joined: Fri Jan 17, 2014 6:24 am
Posts: 4
Here is my updated bash script to update and recompile
Code:
#!/bin/bash
echo Updating Oolete source code
cd /d/myoolite/oolite
git pull
git submodule update
make clean
# make debug=no
make -j4 -fMakefile release-snapshot


Top
   
PostPosted: Tue Jan 21, 2014 4:02 pm 
Offline
Thargoid
Thargoid
User avatar

Joined: Thu Jun 12, 2008 6:55 pm
Posts: 5509
@Zieman - doesn't matter, as long as the command (make) comes first and the target (released snapshot) is last. The other bits (starting with -) are make parameters and their keys, and can be in any order.

And as a note, the 4 in the -j4 may need to be able tweaked depending on how many cores your system has and that you want to use.

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

Thargoid TV
Dropbox Referral Link


Top
   
PostPosted: Tue Mar 18, 2014 10:22 pm 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Sun May 13, 2012 11:12 pm
Posts: 821
Location: Bradford, UK. (Anarchic)
This is my script I use.

https://docs.google.com/file/d/0B1-0dPi ... cslist_api
https://www.dropbox.com/s/rp8n6maauruom ... -oolite.sh
https://app.box.com/s/275jc1prhgjbborca80d

Once you have downloaded it, place it in your Msys home directory. For me that is C:\Msys_x2\1.0\home\Richard. Next open up the console (with msys.bat) and type:
Code:
chmod 0755 build-oolite.sh
Now you can use it to build Oolite, install it and also either clone a new version or pull the latest commits down.
Code:
build-oolite.sh -t snapshot /c/Games/Oolite/v1.79/snapshot
Compiles the code contained in the directory ‘oolite’ as a release-snapshot version and installs in /c/Games/Oolite/v1.79/snapshot
Code:
build-oolite.sh -h
Show usage.

Ignore the license difference between the header and what is displayed by build-oolite.sh --version, I forgot to update it. It is CC BY-NC-SA 4.0

_________________
Image
Facebook | Twitter
I3 channel logs | Dedicated servers


Top
   
PostPosted: Fri Jul 03, 2015 12:06 am 
Offline
---- E L I T E ----
---- E L I T E ----
User avatar

Joined: Thu Jun 20, 2013 10:22 pm
Posts: 1065
Has anything changed with regards to the method in the first post?

I've not been able to get it to work since 1.82 (may well be me...)

_________________
"With our thoughts, we make the world" :-)


Top
   
PostPosted: Fri Jul 03, 2015 5:56 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Wed Feb 28, 2007 7:54 am
Posts: 4898
No, what seems to be the problem?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 243 posts ]  Go to page Previous 113 14 15 16 17 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


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