View Full Version : Installing Allegro
When I run the "make" command I get this error:
Nicholas-Gravelyns-Computer:~/allegro nickgravelyn$ make
Your DJDIR environment variable is not set correctly! It should
point to the djgpp.env file: see the djgpp readme.1st for details.
Where is the djgpp readme or what do I have to do to fix this?
IBethune
2004.08.03, 02:22 PM
I don't know a thing about Allegro, but with most opern source software, you first need to run
configure
then you can run
make
- Iain
Thanks for the advice but it didn't work. It said that it did not recognize that command
did you do
chmod +x fix.sh
./fix.sh macosx
If not, I comes ready for windows, hence "DJGPP"
DJGPP is a windows gcc, make, etc. programming thing. Maybe a port of the unix versions
i did that. those are two commands right? or am i to enter them in one line?
IBethune
2004.08.04, 03:17 PM
OK here is how to do it. First make sure you have the latest version of allegro - only versions 4.1.10 and above are supported on Mac OS X. Also you need to have December 2002 Developer Tools or later.
For the install, read the manual in docs/build/macosx.txt, but I also copy the instructions here
Allegro ships in source code form; this means you need to compile it
before you can use it. You do this easily from a terminal window.
Due to the multiplatform nature of the library, the first step is to
fix it so it can be built under MacOS X, by running:
chmod +x fix.sh
./fix.sh macosx
(NB in answer to your question these are two seperate commands)
Now Allegro is ready to be compiled. Start building it:
make
And finally you install it (you need the root password for this step):
sudo make install
Allegro has now been installed in your system as a standalone shared
library, in /usr/local/lib.
You may also wish to install the man pages:
sudo make install-man
You may also wish to install the library as a standard MacOS X framework:
sudo make install-framework
The "Allegro" framework will be created into /Library/Frameworks. Note
that the framework is standalone: it contains its own copy of the
dynamic library, so it can be safely copied around.
If you plan to embed the Allegro framework inside your application
bundles, you must install a special embeddable version of it:
sudo make install-framework EMBED=1
Embedding the framework into your application bundles ensures they will
work also on machines where Allegro is not installed. Note that if you
embed the non-embeddable version of the framework into your app bundle,
your program will not be able to load it and it will not work.
Finally, if you plan on using Project Builder to code your apps, you
may find useful installing an Allegro application PB project template:
sudo make install-template
And that's all there is to it. Works fine for me. In order to see the Allegro template in XCode you need to move it from Developer/ProjectBuilder Extra/Project Templates/Application to /Library/Application Support/Apple/Developer Tools/Project Templates/
The framework is also correctly installed (use the EMBED=1 option as it will allow you to package the framework with your software, thus people don't have to install Allegro to run your app).
Have fun
- Iain
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.