Menu

Tree [561517] default tip /
 History

Read Only access


File Date Author Commit
 brains 2015-01-03 Devon Schudy Devon Schudy [561517] Make GBRandomState use int, not long, so it wor...
 mac 2014-06-11 Devon Schudy Devon Schudy [434afe] Add an icon for the Mac build.
 sides 2014-06-17 Devon Schudy Devon Schudy [ede178] Remove obsolete Mac OS Classic support.
 simulation 2015-01-03 Devon Schudy Devon Schudy [561517] Make GBRandomState use int, not long, so it wor...
 support 2015-01-03 Devon Schudy Devon Schudy [561517] Make GBRandomState use int, not long, so it wor...
 ui 2014-06-17 Devon Schudy Devon Schudy [ede178] Remove obsolete Mac OS Classic support.
 views 2013-02-26 Hector A Escobedo Hector A Escobedo [9b9af0] Moving everything to top directory now website ...
 win 2013-02-26 Hector A Escobedo Hector A Escobedo [9b9af0] Moving everything to top directory now website ...
 GBHeadless.cpp 2014-06-17 Devon Schudy Devon Schudy [f1ec91] Restore sound and USE_MAC_IO.
 LICENSE 2013-02-26 Hector A Escobedo Hector A Escobedo [9b9af0] Moving everything to top directory now website ...
 Makefile.am 2014-06-17 Devon Schudy Devon Schudy [f1ec91] Restore sound and USE_MAC_IO.
 README 2013-02-26 Hector A Escobedo Hector A Escobedo [9b9af0] Moving everything to top directory now website ...
 configure.ac 2013-02-26 Hector A Escobedo Hector A Escobedo [9b9af0] Moving everything to top directory now website ...
 icon-16x16.svg 2014-06-11 Devon Schudy Devon Schudy [434afe] Add an icon for the Mac build.
 icon-32x32.svg 2014-06-11 Devon Schudy Devon Schudy [434afe] Add an icon for the Mac build.
 icon.svg 2014-06-11 Devon Schudy Devon Schudy [434afe] Add an icon for the Mac build.

Read Me

Grobots, a programming game
(c) 2002-2006 Devon and Warren Schudy

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
(Or see <http://www.gnu.org/licenses/gpl.html>.)

----- Website and email -----

There is more information at <http://grobots.sourceforge.net/>.

The authors' email addresses are:

dschudy@yahoo.com
wschudy@alum.wpi.edu

----- Building under XCode -----

In XCode 2.x or later, open mac/Grobots.xcodeproj and everything should work.

----- Building under MPW -----

The Mac version of Grobots can be built under MPW, using STLport
for the standard library and MrCpp 5.x as the compiler. Once you
have installed these (STLport may be hard), make this directory
structure somewhere:

Grobots:
	src: (the decompressed source tree)
	ObjectFiles:
		Carbon: (empty)
		Classic: (empty)
		Tool: (empty)
	GrobotsClassic.make (alias to :src:mac:GrobotsClassic.make)
	GrobotsCarbon.make (alias to :src:mac:GrobotsCarbon.make)
	GrobotsTool.make (alias to :src:mac:GrobotsTool.make)

Then run MPW, make Grobots the current directory, and run
"BuildProgram GrobotsClassic" (or another target name).

----- Building under MSVC -----

The Windows versions (regular and headless) can be built under Microsoft Visual Studio 2010.  Open win/WinGrobots.sln and everything should work.

For older versions (back to MSVC 6), open win/Grobots.dsw. The compiler may die of an internal error when building with full optimizations on.


Building Grobots on Windows using Visual Studio 2005
Warren Schudy
February 23, 2009

Instructions:
1) Unzip the source code
2) Run unix2dos or equivalent to convert Win/GrobotsWin.dsp and Win/GrobotsHeadless.dsp to DOS linefeeds. (For some reason Win/Grobots.dsw does not seem to need conversion, but converting it too shouldn't hurt.)
3) Open Grobots.dsw with Visual Studio 2005. Answer "yes" when it asks (twice) about converting the projects.
4) Build menu, Configuration manager, select release mode at top.
5) Build it.
6) The executables are Win/Release/GrobotsWin.exe and Win/ReleaseHeadless/GrobotsHeadless.exe . The latter must be run from a command-line window.

Troubleshooting:
1) If you get errors when opening Grobots.dsw you probably forgot to run unix2dos.
2) If lines mentioning "min" and "max" give strange compile errors a likely issue is that the Windows standard headers define macros for those. GBPlatform.h should define NOMINMAX to stop that, but perhaps something went wrong with that.
3) If it complains about finding "windows.h" you are probably using version 6.1 of the Microsoft SDK, which does not appear to include windows.h. Use the 6.0a SDK instead. On my computer Visual Studio 2008 defaults to 6.1 and VS 2005 defaults to 6.0a, so if your computer is similar then switching to VS 2005 should solve this problem.

----- Building on Linux -----
* Updated for GNU Autotools on February 23, 2013

To build a headless (no graphics, console-only interface) Grobots executable on
Linux or other Unix-like systems, you will require the GNU build system, known
as Autotools. In the source directory, there are two vital files, Makefile.am
and configure.ac, that provide all the information needed to build a version
customized for your system/architecture.

If you do not have Autotools, see the following web resources:
<http://en.wikipedia.org/wiki/GNU_build_system>
<http://www.gnu.org/software/automake>
<http://airs.com/ian/configure>

When ready, follow these steps:

1) Enter the top-level source directory.
$ cd ./source

2) Generate new configure and Makefile.in.
$ autoreconf --install

3) Configure the actual Makefile for the system.
$ ./configure

4) Build the executable.
$ make

And there you have it. Questions or concerns about the build system should be
directed to Hector <ninjahector.escobedo@gmail.com>. Future support and
inclusion of pre-generated configure files is expected.

----- Building under other environments -----

Porting headless mode to other environments should be easy. Tell your
compiler to define HEADLESS as 1.

If you can build Grobots in another environment, we want your diffs
and makefiles (or local equivalent).

See <http://grobots.sourceforge.net/source.html> for info on porting
Grobots to other platforms. We are interested in portability patches,
even incomplete ones.


Have fun.