BZFlag 2.0.4 Released

News and info about current and upcoming releases of the game client and server.
Daemon
Private First Class
Private First Class
Posts: 10
Joined: Tue Nov 22, 2005 1:37 pm

Post by Daemon » Wed Jan 25, 2006 2:25 pm

I have just compiled BZFlag 2.0.4 for Intel Macs. It seems to work fine on my iMac Core Duo.

User avatar
optic delusion
Special Forces
Special Forces
Posts: 989
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion » Wed Jan 25, 2006 2:51 pm

ThankYou very much daemon. The app seems to work very well. try to keep that link active for a while. Thanks again.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Wed Jan 25, 2006 6:39 pm

actually on the next release of BZ there is going to have to be 2 MacOS X releases. A Mactel and a PowerPC...
"Life is what happens to you while you're busy making other plans." - John Lennon

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Wed Jan 25, 2006 6:43 pm

no, you can build an app as a "universal binary" that will run on ether system.

User avatar
optic delusion
Special Forces
Special Forces
Posts: 989
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion » Wed Jan 25, 2006 6:55 pm

Client BZFS and BZadmin all good, on the server list now.
Universal, Idunno, clicking "get info" on the installed application, gives no results, no window opens at all.

Edit,
Now the window opens, says it's an intel application. Not universal or PPC
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

Daemon
Private First Class
Private First Class
Posts: 10
Joined: Tue Nov 22, 2005 1:37 pm

Post by Daemon » Wed Jan 25, 2006 10:17 pm

I'll try to build a universal binary for Mac OS X 10.4.

User avatar
optic delusion
Special Forces
Special Forces
Posts: 989
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Post by optic delusion » Thu Jan 26, 2006 1:25 am

There is no real need to do that Daemon. It doesn't really matter if it's universal or not.

If you're going to compile a new image, why not BZFlag 2.0.5 from CVS?
It is plugin enabled, has other features not available in 2.0.4.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
~caramel~
Private First Class
Private First Class
Posts: 5
Joined: Sun Jan 29, 2006 11:07 pm

Post by ~caramel~ » Wed Feb 01, 2006 10:07 am

I already had the 2.0.4 version like 5 months ago :wink:

User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1403
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Contact:

Post by Spazzy McGee » Wed Feb 01, 2006 10:27 am

~caramel~ wrote:I already had the 2.0.4 version like 5 months ago :wink:
yes, but we are talking about compiling it on the new Intel macs (and/or as a universal intel/ppc)
"Life is what happens to you while you're busy making other plans." - John Lennon

snick
Private First Class
Private First Class
Posts: 95
Joined: Thu Jun 02, 2005 2:26 pm

Post by snick » Mon Feb 06, 2006 11:03 pm

Daemon wrote:I have just compiled BZFlag 2.0.4 for Intel Macs. It seems to work fine on my iMac Core Duo.
May I ask you, please, did you have to change
anything to get it through compilation? If so, it
would be nice to know what you did.

Thanks,

Snick.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Compile Intel/Universal Binary on ppc Mac

Post by Enigma » Tue Jun 06, 2006 4:46 am

NOTE: I am almost positive this works without problems. I compiled bzflag for intel, and created a universal binary, but I do not have an intel mac to test it on. :?

ANOTHER NOTE: This only applies if you are on a ppc mac.

If you are interested in compiling BZFlag for Intel macs, or creating a universal binary of BZFlag, here is how I did it.

I added "-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386" to CPPFLAGS and CFLAGS in each makefile. I also added "-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386" to LDFLAGS in each makefile. I did this by changing configure.ac.

Here is a small shell script that helps get around some of the "quirks" of the BZFlag Xcode project by automating all the steps..

Code: Select all


#!/bin/sh
#
# makebz.sh
# 
############################################################################
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
###########################################################################

# $1 should be the path to the bzflag folder
# Example: /volumes/untitled/bzflag

# $2 parameter can be
# "all" - runs ./autogen.sh, ./configure, and xcodebuild
#
# runs only xcodebuild if no value is given


build ()
{
   if cd $1
      then
	
	#remove current build
	rm -rf build/default/bzflag.app
      
      if [ "$2" = "all" ]; then
         ./autogen.sh
         ./configure
      fi
      if xcodebuild setting=Default
      then
         cp -Rf data/* build/Default/BZFlag.app/Contents/Resources 
      fi
   fi	
}

build $1 $2

To make a universal binary, you need to first compile for ppc. Then change the makefiles, and compile for the Intel architecture. After you have both binaries, use this command.

Code: Select all

lipo -create <bzflag_ppc | bzfs_ppc | bzadmin_ppc> <bzflag_i386 | bzfs_i386 | bzadmin_i386> -output <bzflag | bzfs | bzadmin>
The output, each time lipo is run, will be a universal binary that you can add to BZFlag.app/Contents/MacOS/.
Last edited by Enigma on Tue Jun 06, 2006 4:52 pm, edited 1 time in total.

temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Re: Compile Intel/Universal Binary on ppc Mac

Post by temporal distraction » Tue Jun 06, 2006 1:29 pm

Slayer++ wrote:NOTE: I am almost positive this works without problems. I compiled bzflag for intel, and created a universal binary, but I do not have an intel mac to test it on. :?
Please post a link to your build so it can be tested. There are many who would want to use it.

If you don't have the space/bandwidth to host it yourself, you could use www.yousendit.com for a temporary place to put it.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Wed Jun 07, 2006 2:18 am

It looks like autoconf determines if the host system is big endian or little endian. WORDS_BIGENDIAN needs to be 0 for Intel.

bzflag/include/config.h
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#define WORDS_BIGENDIAN 1

This is a good document:
http://developer.apple.com/documentati ... inary.pdf

There are many who would want to use it.
Are you positive? Are people really going trust a build that I release?

Anyways, I'm just trying to build BZFlag for Intel macs because, for some reason, it interests me. And I thought I'd post what I am doing to compile BZFlag because it might be useful to someone else, but it probably isn't.

Post Reply