[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] compiling img2png
On Mon, 20 Aug 2007, Guido Vollbeding wrote:
Hallo Martin
I have updated the code under http://sylvana.net/imgtools/ .
The interface functions of libpng have changed, so I had to
adapt the code in img2png.c.
Furthermore, I did slight change in true_out.c to avoid
compiler warning.
Furthermore, I adapted provided Makefile so that it runs
on my standard SuSE Linux 8.2 installation.
Please try this out.
Thanks for your quick reply and efforts.
I have compiled it succesfully with gcc-2.95 on Atari FreeMiNT (using
Aranym emulator on Linux Fedora)
Then I tried compiling img2png with gcc-4.1.2 on Fedora Core 7.
It still fails with these error messages:
gcc -I/usr/include -I/usr/include -O2 -Wall -c -o img2png.o img2png.c
img2png.c: In function 'main':
img2png.c:112: error: invalid lvalue in increment
img2png.c:112: error: invalid lvalue in increment
img2png.c:118: error: invalid lvalue in increment
img2png.c:118: error: invalid lvalue in increment
img2png.c:118: error: invalid lvalue in increment
img2png.c:118: error: invalid lvalue in increment
img2png.c:118: error: invalid lvalue in increment
img2png.c:119: error: invalid lvalue in increment
img2png.c:119: error: invalid lvalue in increment
img2png.c:125: error: invalid lvalue in increment
img2png.c:125: error: invalid lvalue in increment
img2png.c:126: error: invalid lvalue in increment
img2png.c:126: error: invalid lvalue in increment
img2png.c:127: error: invalid lvalue in increment
img2png.c:127: error: invalid lvalue in increment
img2png.c:148: error: invalid lvalue in increment
img2png.c:148: error: invalid lvalue in increment
img2png.c:151: error: invalid lvalue in increment
img2png.c:151: error: invalid lvalue in increment
img2png.c:154: error: invalid lvalue in increment
img2png.c:154: error: invalid lvalue in increment
make: *** [img2png.o] Error 1
Maybe you can mail me your Suse-compiled img2png binary, to see if it runs
correctly on my Fedora system also ?
I will cc this e-mail also to the freemint or aranym mailing lists. Maybe
someone there can help to find a fix for this ? It's about a simple tool
to convert Atari IMG images to PNG images. On my Aranym box I would like
to have this tool available both on the Linux side and on the Atari
(easymint) side. Forgive me if this i slightly off-topic.
--
Martin Tarenskeen