SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Compiling Purple Martians

Windows XP


Installed DevCpp 4.980
ran alleg4DC.exe and extracted to c:\Dev-Cpp

extract dumb-0.9.2
from the command line:
cd to the top directory (the one that contains the src directory) type:
SET PATH=C:\Dev-Cpp\bin
SET MINGDIR=C:\Dev-Cpp
make
make install

Linux (Mandrake 8.2)


Get allegro-4.0.2.tar.gz and extract
./configure
make
make install
added /usr/local/lib to /ect/ld.so.conf ran make install again

extract dumb-0.9.1
cd to top directory
type './fix.sh unix'
./makeall.sh
su -c ./makeall.sh

added: "-laldmb -ldumb" to compile line before allegro library linker

Extract pm_XXXXXX.tar.gz and cd to the directory with the source files Use the script compile_linux to compile the game and lce to compile the editor as follows:

bash ./compile_linux

contents of lc:
gcc yfilecom.cpp zcontrol.cpp zemove.cpp zfile.cpp zfnx.cpp zitem.cpp zlifts.cpp zloop.cpp zmain.cpp zmenu.cpp zscrn.cpp zsound.cpp -o pmlin `allegro-config --libs`

contents of lce:
gcc yfilecom.cpp e_bitmap.cpp e_bled.cpp e_editor.cpp e_file.cpp e_fnx.cpp e_glt.cpp e_guifnx.cpp e_item.cpp e_main.cpp e_menu.cpp e_nev.cpp e_nlv.cpp e_pde.cpp e_sel.cpp e_sliders.cpp e_special.cpp -o pmfle.exe `allegro-config --libs`

Windows 98 First Edition

DirectX 8.1 installed (from file DX81end.exe) Dev-C++ 4 Installed with typical settings (from devcpp4.zip) Allegro from superdave (alleg4.zip) unzipped in devc directory (C:\DEV-C++) Dev-C run once to associate files
Found alleg40.dll on the net and copied to C:\WINDOWS\SYSTEM There are two project:
The game (pmwin.dev)
The editor (pm_editor.dev)

extract dumb-0.9.2
cd to the top directory (the one that contains the src directory) type 'fix mingw'

add C:\Dev-C++\bin to PATH (for make)
SET MINGDIR to C:\Dev-Cpp

'makeall' does not seem to work
so I use 'make' and make 'DEBUGMODE=1'

'make install' does not seem to work even after: SET MINGDIR to C:\Dev-C++

so I manually copy files like this:
copy *.a from \lib\mingw to C:\Dev-Cpp\lib copy *.h from \include to C:\Dev-Cpp\include

You should now be able to compile and execute from the Dev-C IDE The game executable is pmwin.exe
The level editor executable is pmfle.exe

Using DUMB

use: #include <aldumb.h> in the source

DEBUGGING
and link with -laldmd -ldumbd

REAL
and link with -laldmb -ldumb

BEFORE the allegro library linker


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.