building release / optimized binary from source?

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Solas
Dangerous
Dangerous
Posts: 70
Joined: Sun Jan 04, 2009 7:26 am

Post by Solas »

I have followed the procedure for building on Windows as described on
http://wiki.alioth.net/index.php/Running_Oolite-Windows
using the specified GNUStep versions.
using make and alternatively make debug=no
however the oolite executable fails with the message ..
the procedure entry point __objc_class_name_NXConstantString could not be located in the dynamic link library gnustep-base-1_15.dll
all oolite versions I have looked at use NSConstantString
NXConstantString seems to be the default for GNUstep
I have repeated installation after wiping disk/registry and rebooting
is there a configuration step missing ?

replacing gnustep-base-1_15.dll with the one installed by GNUstep /GNUstep/System/Tools/gnustep-base-1_15.dll works slowly
and looks for DTDs that don't exist (404). can these DTDs be negated or installed locally ?

can the 'dependencies for Windows' files in Local_20080124.zip be updated or put on SVN :)
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

There is a new Local dependencies file waiting to go to the alioth.net downloads area for quite a while now. Unfortunately, winston has not responded to my email requesting the update yet. If you would like to give it a try, the file resides temporarily at http://terrastorage.ath.cx/Marmagka/dgT ... 081118.zip.

Also, you will need GNUstep version 1.15.3 for the build. The files you will need to look for are either gnustep-core-0.19.2-setup.exe or gnustep-startup-0.19.3.tar.gz, if you intend to build the library yourself. The gnustep-base-1_15.dll file distributed with Oolite is a custom build of the library that does not perform DTD validation. The DTDs, if you would like to install them locally, are included in the Oolite source and are located in deps/Cross-platform-deps/DTDs. You can install those in <OoliteInstallDir>/oolite.app/GNUstep/Library/DTDs. This should let you play using the vanilla GNUstep dll, without having the log spammed by "no DTD found" messages.
Solas
Dangerous
Dangerous
Posts: 70
Joined: Sun Jan 04, 2009 7:26 am

Post by Solas »

thanks a_c

I installed
http://ftpmain.gnustep.org/pub/gnustep/ ... -setup.exe
http://ftpmain.gnustep.org/pub/gnustep/ ... -setup.exe
SDL_mixer.h was missing from Local_20081118.zip, used version from local.zip in wiki.

that sorted the problem and produced a responsive oolite.exe with standard frame rate !

the gnustep-base-1_15.dll works as intended, no need to worry about local DTDs, but good to know.

I also updated the libpng files in my /Local dirs using libpng-1.2.34-1-lib.zip
http://sourceforge.net/project/showfile ... e_id=16183
hoping to correct the Windows ATI 'Borg bug' ( star/nebula render problem ) to no avail ;(

back to Borg space in the Morrigan :)
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

The Windows port build instructions have been updated on the Wiki. Also, the local dependencies file has been uploaded to alioth.net (actual link in the wiki instructions). Building the latest version on Windows is now a bit easier.
Post Reply