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.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.tgz cd EZ-Draw-1.2 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 (for instance ./jeu-bubblet or ./jeu-doddle). 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.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.tgz cd EZ-Draw-1.2 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 (for instance ./jeu-bubblet or ./jeu-doddle). Next, read the tutorial.
First install XCode from https://developer.apple.com/xcode/download/ using the App Store. This is the development environment of Mac OS X, which includes in particular gcc and make.
Then install Xquartz from http://www.xquartz.org/ , which provides the X11 drawing libraries, necessary for EZ-Draw to work.
Download the file EZ-Draw-1.2.tgz with your web browser, save the file; using the Finder, unpack it as EZ-Draw-1.2.tar, next as folder EZ-Draw-1.2, then move this folder into your home directory.
if your Finder is not able to unpack, open a terminal and type this:
tar xvfz Downloads/EZ-Draw-1.2.tgz
Next type in a terminal:
cd EZ-Draw-1.2 make -j all
If you get an error at compile time, for instance
./ez-draw.h:36:10: fatal error: 'X11/Xlib.h' file not found
this means that you must give some paths in the Makefile. You can use the script x11-paths.sh that comes with EZ-Draw; this script explores the system directories and give you some informations. Simply type this in the terminal and wait:
./x11-paths.sh
next, modify the Makefile in section A according to the instructions displayed by the script.
If everything is ok, after a few moments, the 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 (for instance ./jeu-bubblet or ./jeu-doddle), or double-click the icons in the Finder. Next, read the tutorial.
Download the file EZ-Draw-1.2.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.tgz tar xvf EZ-Draw-1.2.tar cd EZ-Draw-1.2 make all
in case of errors at compile time, make sure you have on your system:
To check all of this you can use the script x11-paths.sh that comes with EZ-Draw; this script explores the system directories and give you some informations. Simply type this in the terminal and wait:
./x11-paths.sh
If everything is ok, after a few moments, the 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 (for instance ./jeu-bubblet or ./jeu-doddle). Next, read the tutorial.
Download the file EZ-Draw-1.2.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 by typing :
cd c:\realpath\EZ-Draw-1.2
replacing c:\realpath\EZ-Draw-1.2 by the actual path. To know, just drag the folder icon EZ-Draw-1.2 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 (for instance jeu-bubblet or jeu-doddle).
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.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.tgz in your Cygwin home directory. Type next:
tar xvfz EZ-Draw-1.2.tgz cd EZ-Draw-1.2
We can now 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
If you get the message ez_init: XOpenDisplay failed for "", then you used the wrong terminal; remember, you must type the commands in the XWin terminal.
Do the same to run the other demos and games (for instance ./jeu-bubblet or ./jeu-doddle). Next, read the tutorial.
Tested on:
1.2 : october 2013, april 2014, april 2016, june 2016
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