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
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 »

Fixed in r4735.
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 »

Went a bit further, but ended with the following this time:

Code: Select all

 Compiling file src/Core/NSFileManagerOOExtensions.m ...
src/Core/NSFileManagerOOExtensions.m: In function '-[NSFileManager(OOExtensions) oo:moveItemAtPath:toPath:]':
src/Core/NSFileManagerOOExtensions.m:201: error: 'dst' undeclared (first use in this function)
src/Core/NSFileManagerOOExtensions.m:201: error: (Each undeclared identifier is reported only once
src/Core/NSFileManagerOOExtensions.m:201: error: for each function it appears in.)
make[3]: *** [obj.spk/oolite.obj/NSFileManagerOOExtensions.m.o] Error 1
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).
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 »

Again with the fixed in r4736.
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 »

Compile of r4736 completed with no errors, Oolite starts fine and no errors in latest.log.

Thank you for extremely fast bug fixing.
"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 »

These were problems in the text of the code rather than the logic. It was more like proofreading than bug fixing. :-)
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:
These were problems in the text of the code rather than the logic. It was more like proofreading than bug fixing. :-)
Regardless, the errors were fixed very quickly.
Thank you for extremely fast proofreading :D .
"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
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 the following warning when compiling Rev4771 the "easy way".

Code: Select all

Compiling file src/Core/Materials/OODefaultShaderSynthesizer.m ...
src/Core/Materials/OODefaultShaderSynthesizer.m: In function '-[OODefaultShaderSynthesizer writeTextureCoordRead]':
src/Core/Materials/OODefaultShaderSynthesizer.m:728: warning: pointer type mismatch in conditional expression
"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 »

Should be fixed in r4772.
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:
Should be fixed in r4772.
Yep, thanks. Quick as always.
"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
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 »

Capt. Murphy wrote:
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.
Just in case any others have this problem. The solution is to always use make -fmakefile clean when re-compiling after checking out a new revision.

Also if anyone is using Win7 64bit and wants to compile and build an installer please note that the makefile in trunk will need a slight edit to point it towards the the correct install location for NSIS under Win7 64bit.

The makefile includes a line - NSIS="C:\Program Files\NSIS\makensis.exe", which needs to be NSIS="C:\Program Files (x86)\NSIS\makensis.exe" under Win 7 64bit.
[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
totya
Poor
Poor
Posts: 5
Joined: Mon May 14, 2012 2:22 pm

Re: Building Oolite Windows from source - The Easier Way

Post by totya »

Hi!

This "compiler" pack : OoliteDevelopmentEnvironment_LE_20110212 working for me, thanks. (Tested on rev4936)

First time I try this: OoliteDevelopmentEnvironment_20090330 from Oolite-Windows wiki, but compile is unsuccess with this pack (I get compiler warnings). Perhaps good idea update this wiki page: http://wiki.alioth.net/index.php/Running_Oolite-Windows
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6571
Joined: Wed Feb 28, 2007 7:54 am

Re: Building Oolite Windows from source - The Easier Way

Post by another_commander »

The wiki pages for running and building Oolite under Windows have been updated.
totya
Poor
Poor
Posts: 5
Joined: Mon May 14, 2012 2:22 pm

Re: Building Oolite Windows from source - The Easier Way

Post by totya »

another_commander wrote:
The wiki pages for running and building Oolite under Windows have been updated.
I see, thank you.
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 »

Get some warnings when I compile trunk (Rev 4949) under Windows 7

Code: Select all

Compiling file src/Core/Scripting/OOJSShip.m ...
src/Core/Scripting/OOJSShip.m: In function 'ShipSetProperty':
src/Core/Scripting/OOJSShip.m:1060: warning: label 'npcReadOnly' defined but not used
src/Core/Scripting/OOJSShip.m:1020: warning: 'facing' may be used uninitialized in this function
"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
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 »

Trunk Rev 4951 compiled with no errors.
Gimi wrote:
Get some warnings when I compile trunk (Rev 4949) under Windows 7

Code: Select all

Compiling file src/Core/Scripting/OOJSShip.m ...
src/Core/Scripting/OOJSShip.m: In function 'ShipSetProperty':
src/Core/Scripting/OOJSShip.m:1060: warning: label 'npcReadOnly' defined but not used
src/Core/Scripting/OOJSShip.m:1020: warning: 'facing' may be used uninitialized in this function
"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