This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Compiling
Jump to navigation
Jump to search
BZFlag is well supported on 3 major operating systems. (Please consult with other platform specific readme's, if available, otherwise consult general build instructions.)
| Operating System: |
| Windows |
| Linux |
| macOS |
Compiling Misc:
Simple plugin compiling
Simple bash script which can sometimes simplify writing very basic plugins.
plugin.sh
#!/bin/bash compiler="g++" options="-I " headers="/path/to/bzflag/include" options2="-fPIC -shared -o" $compiler $options $headers $options2 $1.so $1.cpp
Compile a plugin with:
./plugin.sh myPlugin.cpp
Simple modeltool compiling
This usual covers building modeltool on recent releases:
g++ -o modeltool modeltool.cxx -include SimpleTextUtils.h model.h wavefrontOBJ.h Q3BSP.h Q3BSP.cxx wavefrontOBJ.cxx SimpleTextUtils.cxx