VOGONS


compile fail

Topic actions

First post, by pandarsson

User metadata
Rank Newbie
Rank
Newbie

Hi, I downloaded the source package of Dosbox 0.60 and cannot get it to
compile. It configures fine, but when it's building, it stops at render.cpp. The
following is the relevent output:

g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../../include   -g -O2 -I/usr/include/SDL -D_REENTRANT -c -o render.o `test -f 'render.cpp' || echo './'`render.cpp
render.cpp: In function `void TakeScreenShot(Bit8u *)':
render.cpp:154: implicit declaration of function `int png_set_compression_buffer_size(...)'
render.cpp:177: implicit declaration of function `int png_set_rows(...)'
render.cpp:180: implicit declaration of function `int png_write_png(...)'
make[3]: *** [render.o] Error 1
make[3]: Leaving directory `/usr/share/downloads/DOS/dosbox-0.60/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/share/downloads/DOS/dosbox-0.60/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/share/downloads/DOS/dosbox-0.60'
make: *** [all] Error 2

Now, this said, I notice I do not have png.h (though I once did... odd). Might
this be the problem? I ask in part because it says in the readme that libpng is
optional, anyway, and I have no interest in taking screenshots.

Anyway, I haven't had this particular error before, so I'm hoping you can
help. Further information follows:

Linux kernel: 2.4.10
libpng: 1.2.4
X: 4.1
gcc: 2.95
glibc: 2.2.4
SDL: 1.2.5
CPU: AMD Duron 700

I am not a man! I am a free number!!

Reply 2 of 3, by pandarsson

User metadata
Rank Newbie
Rank
Newbie

Okay, now I've tried ./configure after running make clean and tried it again
without doing so. I have downloaded a source rpm from the place where you
can also download a Red Hat rpm and got the same error. However, I
noticed that ./configure *is* finding png.h and after running updatedb, I
realized two things: 1) I was wrong, I *do* have png.h and 2) I need to
update my locate db more often. 😁

Anyway, no change thus far. Is there an option I can pass to configure to
manually turn off the screenshot feature? I didn't see one listed in
./configure --help.

I am not a man! I am a free number!!