Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Building Oolite Windows from source - The Easier Way

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Building Oolite Windows from source - The Easier Way

Post by Gimi »

Ahruman wrote:
Looks like HTTP access is down, but SVN protocol access is up. Gimi, try svn checkout svn://svn.berlios.de/oolite-linux/trunk .
Thank you, worked a treat.
Can I also do "svn up svn://svn.berlios.de/oolite-linux/trunk" Can't test as it's downloading all right now.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Building Oolite Windows from source - The Easier Way

Post by JensAyton »

You should just need “svn up”.
User avatar
snork
---- E L I T E ----
---- E L I T E ----
Posts: 551
Joined: Sat Jan 30, 2010 4:21 am
Location: northern Germany

Re: Building Oolite Windows from source - The Easier Way

Post by snork »

Until http://terrastorage.ath.cx/Marmagka/c0a ... 110212.zip is up again, you can temporarily get a copy here : http://www.adrive.com/public/856e39bfda ... 19a30.html
(mainly because I read how Captain Murphy could not download this package yesterday)

Minor things I have noticed in Win XP pro SP1, NTFS 5.1 :

- Does not like to be installed / unzipped to "funny" pathnames, e.g. somewhere with a space in the pathname. (You can probably edit some config file so it would accept pathnames with any strange signs in it, but I did not bother looking into it.)
- On usage it creates a drive O: , which maps the drive it is running from (in my case D: , so drive D: is visible twice in windows explorer.).
This drive O: remains even after exiting msys, but after a reboot it is gone. No harm done.

But it works fine as usual. :)
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Building Oolite Windows from source - The Easier Way

Post by Capt. Murphy »

Thanks Snork. First self compile of r4642 up and running.... :) Just had to manually create the AddOns folder.

edit 2 add - just as a side note my security software is flagging svn.exe, version 1.4.3.23084 as insecure and is suggesting an upgrade to version 1.6.17.0. I guess it's safe to assume that upgrading would be a bad idea?
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6570
Joined: Wed Feb 28, 2007 7:54 am

Re: Building Oolite Windows from source - The Easier Way

Post by another_commander »

Capt. Murphy wrote:
just as a side note my security software is flagging svn.exe, version 1.4.3.23084 as insecure and is suggesting an upgrade to version 1.6.17.0. I guess it's safe to assume that upgrading would be a bad idea?
You could try updating it and fall back to the 1.4.3 version if things don't work. Making a copy of the svn folder before upgrading would be the easiest way of doing this.

Edit: Now that you have a build of the game from source, feel free to start hacking the code itself. Any ideas or features that could come out as a result and are considered cool enough could be included in the mainline post-feature freeze. This goes also for anyone playing with the source at this time. Hey, be an Oolite core contributor, you know you want to!
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Building Oolite Windows from source - The Easier Way

Post by Capt. Murphy »

It doesn't seem to be as easy as replacing the svn folder with a newer release as MINGW32 doesn't recognise svn as a valid command anymore. No big deal - the said security software has an ignore function.... :wink:

Also found NSIS to create an installer (purely for personal use). But amusingly as I had put a full AddOns folder in the trunk folder it appears to be including all the OXPs in the installer package - doh.

I am sure to be poking around the code, but don't expect any great things anytime soon. My first project is to see what I can break by trying to add some extra JScript methods for changing the player ship via script.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Building Oolite Windows from source - The Easier Way

Post by Eric Walch »

Capt. Murphy wrote:
But amusingly as I had put a full AddOns folder in the trunk folder it appears to be including all the OXPs in the installer package - doh.
Yep, I think that somewhere in the build instructions there is a command to copy the whole addOn folder into the build. On the mac, every single file has to be defined.
I remembered the first time I added a file to the project. It is than uploaded to berlios and every subscriber that updated the project than gets the file on his local computer. Somehow I had my doubts if I did it correct and asked another_commander if things worked for him. And yes, it was now part of his builds also, so I thought I did it correct. But later the file seemed to be missing in all Mac builds. :twisted: It was in my build because I added it manually for testing and the normal build process does not delete unused files automatic. (therefor you need the 'clean' command).

Good to hear that you now set up a build system yourself. You probably noticed already that this is even faster than downloading the nighties. (except on the first time of course). You now only have to download the changes.
User avatar
Capt. Murphy
Commodore
Commodore
Posts: 1127
Joined: Fri Feb 25, 2011 8:46 am
Location: UK South Coast.

Re: Building Oolite Windows from source - The Easier Way

Post by Capt. Murphy »

Come across an oddity - when I've done an initial svn co and a make debug=0 build, and a few revisions later svn up which confirms an update, then do another make debug=0 build, the resulting oolite.exe when run reports in the log that it is still the previous build/revision.

Similarly a make -fmakefile pkg-win-snapshot debug=no over an existing build after an svn-up makes an installer that's file-name is for the expected revision, but when installed produces an oolite.exe with no watermark and the log again reports previous build/revision.

If it's useful I can tell you what files in the trunk folder and subfolder were updated during the svn up and the build
Last edited by Capt. Murphy on Sat Nov 19, 2011 9:52 pm, edited 1 time in total.
[EliteWiki] Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Re: Building Oolite Windows from source - The Easier Way

Post by Kaks »

Sounds like you somehow still got the resources files from the previous version.
Maybe you accidentally marked some of the files inside Resources as read only. If that's the case, make won't be able to do anything about the version reported in-game.

Delete the oolite.app directory, recompile, and everything should be ok again.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Building Oolite Windows from source - The Easier Way

Post by Gimi »

Loads of errors when compiling 4733 "The Easier Way". Also see that the latest nightly completed with multiple warnings. I assume that this is related to all the updates and change of compiler that Ahruman did yesterday. Does the change of compiler etc mean that Building from source needs to update the build environment or something?

Edit: Doing a fresh checkout just to make sure.

Edit 2: Fresh checkout gave the same errors and warnings.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Building Oolite Windows from source - The Easier Way

Post by Eric Walch »

Gimi wrote:
Loads of errors when compiling 4733 "The Easier Way". Also see that the latest nightly completed with multiple warnings. I assume that this is related to all the updates and change of compiler that Ahruman did yesterday. Does the change of compiler etc mean that Building from source needs to update the build environment or something?
No it only means that some of the changes are probably not compatible with the current windows compiler. I assume that the window experts can sort this out. And even when there are lots of errors, it still can be just one error that causes this.
Your build environment on windows should still be okay. Even on the mac, the old environment still works. The changes were there so it now also runs on the new Mac compiler. (see Mac forum)
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6570
Joined: Wed Feb 28, 2007 7:54 am

Re: Building Oolite Windows from source - The Easier Way

Post by another_commander »

I regret to have to let you know that currently I cannot allocate any time for re-constructing the build environment with a new compiler. What I could do - but not sure when - is check whether the errors currently coming up could be fixed without changing out gcc for clang.

BTW, this could be a good time for someone to step up and claim the Oolite Windows build's maintainer seat, especially if the change to clang is deemed unavoidable for all platforms. I would be willing to offer as much help and support as I can, but this could be limited and dependent on time available.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Building Oolite Windows from source - The Easier Way

Post by JensAyton »

There should be no need to change the Windows build environment. The problems at the moment are side effects of the Mac-specific changes.

I can fix the problems in the nightly log, but since it seems to be stopping at the first error it may take several days until it builds properly.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Building Oolite Windows from source - The Easier Way

Post by JensAyton »

Should be fixed in r4734.
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Building Oolite Windows from source - The Easier Way

Post by Gimi »

Got a lot further this time, but ended with the following error:

Code: Select all

 Compiling file src/Core/Geometry.m ...
 Compiling file src/Core/Octree.m ...
make[3]: *** No rule to make target `obj.spk/oolite.obj/OOFastArithmetic.m.o', needed by `obj.spk/oolite.exe'.  Stop.
make[2]: *** [internal-objc_program-all_] Error 2
make[1]: *** [oolite.all.objc-program.variables] Error 2
make: *** [internal-all] Error 2
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
Post Reply