Learn how to install EZ-Draw on GNU/Linux (Ubuntu, Debian, Fedora, etc.), on Mac OS X or Windows, all versions.
First install the development packages: open a terminal and type (or copy-paste):
sudo apt-get install libx11-dev x11proto-xext-dev libxext-dev
Download the file EZ-Draw-1.2-pre5.tgz with your web browser, save the file, then move it into your home directory using the file manager. Next, type in the terminal:
tar xvfz EZ-Draw-1.2-pre5.tgz cd EZ-Draw-1.2-pre5 make -j all
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
./demo-01
and so on for the other demos and games. Next, read the tutorial.
First install the development packages: open a terminal and type (or copy-paste):
sudo yum install gcc libX11-devel libXext-devel xorg-x11-fonts-misc
then type y to validate.
Download the file EZ-Draw-1.2-pre5.tgz with your web browser, save the file, then move it into your home directory using the file manager. Next, type in the terminal:
tar xvfz EZ-Draw-1.2-pre5.tgz cd EZ-Draw-1.2-pre5 make -j all
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
./demo-01
and so on for the other demos and games. Next, read the tutorial.
First install XCode, the development environment for Mac OS X, from Apple Store or from the installation DVD. This manipulation will install at the same time gcc, make, and X11 libraries.
Download the file EZ-Draw-1.2-pre5.tgz with your web browser, save the file, then move it into your home directory using the Finder.
with some web browser (Safari), the file is directly uncompressed as file EZ-Draw-1.2-pre5.tar. If this is not the case, uncompress the file by typing in the terminal:
gunzip EZ-Draw-1.2-pre5.tgz
Next type in the terminal:
tar xvf EZ-Draw-1.2-pre5.tar cd EZ-Draw-1.2-pre5 make -j all
on some versions of Mac OS X it is possible to have an error message of this kind:
ld: warning: in xxx.o, file was built for i386 which is not the
architecture being linked (x86_64)
Undefined symbols: ...
ld: symbol(s) not found
collect2: ld returned 1 exit status
In this case, edit the Makefile line 7 and add -m32 at the end:
CC = gcc -m32
then type in the terminal:
make clean all
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
./demo-01
and so on for the other demos and games; or double-click the icons in the Finder.
Next, read the tutorial.
Download the file EZ-Draw-1.2-pre5.tgz with your web browser, save the file, then move it into your home directory using the file manager. Next, type in the terminal:
gunzip EZ-Draw-1.2-pre5.tgz tar xvf EZ-Draw-1.2-pre5.tar cd EZ-Draw-1.2-pre5 make all
in case of errors at compile time, make sure you have on your system:
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
./demo-01
and so on for the other demos and games. Next, read the tutorial.
Download the file EZ-Draw-1.2-pre5.tgz with your web browser and save the file.
Next, uncompress the file, for example with the free software 7-Zip:
Install MinGW (“Minimal GNU for Windows”) to get gcc and GNU make :
Open a new terminal:
Still in your terminal, go into the directory EZ-Draw-1.2-pre5 by typing :
cd c:\realpath\EZ-Draw-1.2-pre5
replacing c:\realpath\EZ-Draw-1.2-pre5 by the actual path. To know, just drag the folder icon EZ-Draw-1.2-pre5 in the terminal.
Compile by typing:
make.bat all
If the compilation fails and you get the error message “The specified path was not found”, you must change the PATH, by typing in the terminal:
set PATH=c:\MinGW32\bin;%PATH%
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
demo-01
and so on for the other demos and games.
Next, read the tutorial. To edit examples, install GVim for instance, see http://www.vim.org .
You can install EZ-Draw in two ways:
If Cygwin is not already installed on your computer, this is time to do it. Go on http://cygwin.com/ then download the “setup” program setup-x86.exe (on Windows 32-bit) or setup-x86_64.exe (64-bit). Follow the instructions; you can keep all the default settings. The setup will download all the basic packages and install them (this may take hours depending on your connexion ... but once for all).
We must now install some additional packages for EZ-Draw. Restart the Cygwin setup then, after the usual setup steps, select the following packages for installation:
Open the Cygwin terminal (there is an icon on the desktop) then type
startxwin &
This starts the X11 server (that is to say, the graphic mode of Unix) and open a new terminal “XWin”. All the next commands will have to be typed in this terminal.
Download the file EZ-Draw-1.2-pre5.tgz with your web browser, save the file, then move it into your Cygwin home directory using the file manager. This directory is like to be c:\cygwin32\home\<your-login> or c:\cygwin64\home\<your-login>.
Type ls in the XWin terminal to check if you actually have the file EZ-Draw-1.2-pre5.tgz in your Cygwin home directory. Type next:
tar xvfz EZ-Draw-1.2-pre5.tgz cd EZ-Draw-1.2-pre5
Let’s modify the file Makefile by typing:
nedit Makefile
If nedit complains NEdit: can't open display, then you used the wrong terminal; remember, you must type the commands in the XWin terminal.
In nedit, line 8, replace -ansi by -std=gnu99; save and quit.
We can finally compile EZ-Draw: type
make -j all
After a few moments, modules EZ-Draw, demos and games are compiled. To run demo-01, type in the terminal:
./demo-01
and so on for the other demos and games. Next, read the tutorial.
Tested on:
1.2 : october 2013, march 2014
1.1 : april-june 2013
1.0 : june-october 2011
1.0-rc5 : june 2010
0.9 : jully 2009
0.9 : april - may 2009
0.8 : march - april 2009
0.7 : march 2009
0.6 : june-jully 2009, correction in january 2009
0.2 .. 0.5 : may 2008
0.1 : may 2008