How to make a plugins-enabled bzfs binary on Mac

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
Mari Iijima
Private
Private
Posts: 3
Joined: Sun Nov 27, 2005 12:51 am

How to make a plugins-enabled bzfs binary on Mac

Post by Mari Iijima »

I encountered the problem that I couldn't load any plugins
with official mac bzfs binary package (ver.2.0.10).
So I needed to make binary myself and finally I got it as following.

0. Install Xcode Tools from Leopard DVD
1. Download source code zip file (bzflag-2.0.12) to Desktop
2. Configure

Code: Select all

  cd Desktop/bzflag-2.0.12
  ./autogen.sh
  ./configure --enable-optimized --enable-shared
3. Make (date)

Code: Select all

  cd Desktop/bzflag-2.0.12/src/date
  make
4. Edit Desktop/bzflag-2.0.12/src/bzfs/Makefile :{

Code: Select all

  #pkglibdir = $(libdir)/bzflag
  pkglibdir = /Applications/BZFlag-2.0.10.app/Contents/Plugins
5. Make (bzfs)

Code: Select all

  cd Desktop/bzflag-2.0.12/src/bzfs
  make
6. Replace BZFlag-2.0.10.app's bzfs binary with the output bzfs file :{

Anyone have comment on this!?
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

On my Mac I always need to compile with the options --enable-shared and --enable-plugins, otherwise it doesn't work at all for me.

As for the Makefile editing, I'm not completely sure, but I'm going to bet that the variable pkglibdir has nothing to do with plugins. make install places plugins in $prefix/lib.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
Post Reply