Just read about this nice little program on BoingBoing and I just had to get hold of it!
So I downloaded it, read the README.txt, installed g++ and flex (think it automatically installed bison) via apt-get and then downloaded and successfully installe zlib and libpng.
After that I tried to run "make" for CFDG... Didnt work! This is my output:
Code: Select all
g++ -Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -O3 -c -o objs/pngCanvas.o src-unix/pngCanvas.cpp
src-unix/pngCanvas.cpp:2:17: png.h: Datei oder Verzeichnis nicht gefunden
src-unix/pngCanvas.cpp:51: error: `png_structp' was not declared in this scope
src-unix/pngCanvas.cpp:51: error: Fehler beim Parsen before `,' token
src-unix/pngCanvas.cpp: In function `void <unnamed>::pngWriteError(...)':
src-unix/pngCanvas.cpp:53: error: `message' undeclared (first use this
function)
src-unix/pngCanvas.cpp:53: error: (Each undeclared identifier is reported only
once for each function it appears in.)
src-unix/pngCanvas.cpp: At global scope:
src-unix/pngCanvas.cpp:58: error: `png_structp' was not declared in this scope
src-unix/pngCanvas.cpp:58: error: Fehler beim Parsen before `,' token
src-unix/pngCanvas.cpp: In member function `void pngCanvas::output(const char*)
':
src-unix/pngCanvas.cpp:71: error: `png_structp' undeclared (first use this
function)
src-unix/pngCanvas.cpp:71: error: Fehler beim Parsen before `=' token
src-unix/pngCanvas.cpp:72: error: `png_infop' undeclared (first use this
function)
src-unix/pngCanvas.cpp:75: error: `png_ptr' undeclared (first use this
function)
src-unix/pngCanvas.cpp:76: error: `PNG_LIBPNG_VER_STRING' undeclared (first use
this function)
src-unix/pngCanvas.cpp:77: error: `png_create_write_struct' undeclared (first
use this function)
src-unix/pngCanvas.cpp:80: error: Fehler beim Parsen before `=' token
src-unix/pngCanvas.cpp:81: error: `info_ptr' undeclared (first use this
function)
src-unix/pngCanvas.cpp:89: error: `png_init_io' undeclared (first use this
function)
src-unix/pngCanvas.cpp:92: error: `PNG_COLOR_TYPE_GRAY' undeclared (first use
this function)
src-unix/pngCanvas.cpp:93: error: `PNG_INTERLACE_NONE' undeclared (first use
this function)
src-unix/pngCanvas.cpp:93: error: `PNG_COMPRESSION_TYPE_DEFAULT' undeclared
(first use this function)
src-unix/pngCanvas.cpp:94: error: `PNG_FILTER_TYPE_DEFAULT' undeclared (first
use this function)
src-unix/pngCanvas.cpp:94: error: `png_set_IHDR' undeclared (first use this
function)
src-unix/pngCanvas.cpp:96: error: `png_text' undeclared (first use this
function)
src-unix/pngCanvas.cpp:96: error: Fehler beim Parsen before `[' token
src-unix/pngCanvas.cpp:97: error: `comments' undeclared (first use this
function)
src-unix/pngCanvas.cpp:98: error: `PNG_TEXT_COMPRESSION_NONE' undeclared (first
use this function)
src-unix/pngCanvas.cpp:103: error: `png_set_text' undeclared (first use this
function)
src-unix/pngCanvas.cpp:105: error: `png_write_info' undeclared (first use this
function)
src-unix/pngCanvas.cpp:107: error: `png_bytep' undeclared (first use this
function)
src-unix/pngCanvas.cpp:107: error: Fehler beim Parsen before `=' token
src-unix/pngCanvas.cpp:109: error: `rowPtr' undeclared (first use this
function)
src-unix/pngCanvas.cpp:109: error: `png_write_row' undeclared (first use this
function)
src-unix/pngCanvas.cpp:113: error: `png_write_end' undeclared (first use this
function)
src-unix/pngCanvas.cpp:124: error: `png_destroy_write_struct' undeclared (first
use this function)
make: *** [objs/pngCanvas.o] Fehler 1
Thanks in advance!