gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] gm2 and shared library example libtool, Makefile.am and friends


From: Gaius Mulley
Subject: [Gm2] gm2 and shared library example libtool, Makefile.am and friends
Date: Wed, 22 Mar 2017 09:01:09 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Hello,

a while back someone asked about gm2 and libtool, here is an example
which shows how gm2 can be used with libtool to generate shared
libraries.  The package can be built with m2 and C (although the C build
will still use some m2).

The example package is pge a simple physics game engine written in
Modula-2 which is controlled by Python and integrates with Pygame.

Assuming that you have changed your /etc/apt/sources.list to include
floppsie (for the Modula-2 compiler) you can then:

sudo apt-get install gm2 python-dev python-pygame
apt-get source --allow-unauthenticated pge

mkdir -p build-pge
cd build-pge
../pge/configure --enable-langm2
make
./localrun.sh ../pge/examples/breakout/breakout.py

and have some fun!

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]