I recently got the pngwriter to compile and run on cygwin under Windows XP SP2.
I downloaded the Cygwin implementation of Zlib and libpng, so both were available and usable.
The only difficulty I had was with linker errors. The default ordering of the linked libraries in the pngwriter makefile was the cause. I used the make.include.linux make file. I made the following alterations;
1) I removed the call to 'freetype-config --libs' as this would prematurely include the zlib and freetype libraries.
2) I changed the order of the LIBS declaration from '-lz -lpng -lpngwriter' to '-lpngwriter -lz -lpng -lfreetype'
After that, make and make install executed without issue.
-- Inspiration for the fix --
I was getting undefined reference errors in libpng with the original make file. It makes no sense to me, given the dependency relationship, that libpngwriter being included last would cause undefined reference errors in libpng but perhaps libpngwriter causes libpng references to be overwritten.
So there you have it.
This is a great library and I am happy that I can continue to use it in a windows environment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your info; I could never hope to cover all possible compilation scenarios for PNGwriter, and when people contribute tips like this on the forum and on the mailing list, each specific issue might help other people in future.
By the way, if you have a cool graphic that you made with PNGwriter, email me, and I'll put it on the website.
Cheers,
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently got the pngwriter to compile and run on cygwin under Windows XP SP2.
I downloaded the Cygwin implementation of Zlib and libpng, so both were available and usable.
The only difficulty I had was with linker errors. The default ordering of the linked libraries in the pngwriter makefile was the cause. I used the make.include.linux make file. I made the following alterations;
1) I removed the call to 'freetype-config --libs' as this would prematurely include the zlib and freetype libraries.
2) I changed the order of the LIBS declaration from '-lz -lpng -lpngwriter' to '-lpngwriter -lz -lpng -lfreetype'
After that, make and make install executed without issue.
-- Inspiration for the fix --
I was getting undefined reference errors in libpng with the original make file. It makes no sense to me, given the dependency relationship, that libpngwriter being included last would cause undefined reference errors in libpng but perhaps libpngwriter causes libpng references to be overwritten.
So there you have it.
This is a great library and I am happy that I can continue to use it in a windows environment.
Thanks for your info; I could never hope to cover all possible compilation scenarios for PNGwriter, and when people contribute tips like this on the forum and on the mailing list, each specific issue might help other people in future.
By the way, if you have a cool graphic that you made with PNGwriter, email me, and I'll put it on the website.
Cheers,
Paul
Thanks for this tip on CYGWIN compilation…but I'm having another problem which no Google or forum search has shed light on:
pngwriter.cc:1297: error: invalid conversion from `long unsigned int*' to `png_uint_32*'
is the error after running make in CYGWIN with zlib and libpng packages installed. About a dozen of these occurr, causing add'l problems downstream.
Anyone familiar with this issue? Running a current version of CYGWIN with gcc compilar on Windows XP.
Thanks (hope these forums aren't dead…)
I see same error when using libpng 1.5.1
Earlier libpng dosent provoke this error
/Nicholas