how to install DJGPP
Currently I'm studying J.R.Parkers's book entitled "Algorithms for Image Processing and Computer Vision". This book(+CD) contains explanation and source codes on Image Processing. It is written that the compiler (DJGPP, gcc compiler for windows) is also included in the CD. I've tried to install the DJGPP from the CD, but at first I failed because I was using winzip to extract the zip files creating unnecessary folders, i.e. I unzipped file DJDEV112.ZIP with winzip and the winzip extracted this zip file into a folder called DJDEV112. Then I searched for DJGPP in google and found this page: http://www.delorie.com/djgpp/ Next, I clicked the "zip picker" link, after that, clicked the "Tell me which files I need" and downloaded unzip32.exe. By doing this, I thought my problem was solved, because all the files was in the right folders. However, when I run gcc.exe, an error showed up:
C:\djgpp\bin>gcc Stack Fault at eip=21fe eax=00000301 ebx=000063b4 ecx=00000000 edx=0000ffff esi=0000046d edi=0000ad8a ebp=0000ffca esp=000519d4 cs=19f ds=17f es=17f fs=0 gs=0 ss=1b7 cr2=00001fd8 Call frame traceback EIPs: 0x000021fe 0xffdc0001
I thought ok, may be this bin files are not compatible with windows xp, so I downloaded the zip files (djgpp v2) in the DJGPP Zip File Picker Results, run unzip32 on all the zip files and.. yes.. gcc run properly. Then I tried to compile canny.c from CH1 in Parker's CD, but there was an error that graphics.h was not found. So, I copied graphics.h from the CD (gnu/include/graphics.h) to djgpp/include in my harddrive.. and everything works fine.
0 Comments:
Post a Comment
<< Home