Original Post
I've been trying to get libpng to work in MSVC 2005 EE and when I try to build it and all I get is
Quote:Then I try the binaries and even after telling MSVC where the png headers are located (Tools - Options - Projects and Solutions - VC++ Directories = "C:\Program Files\GnuWin32\include" ) it still cannot open png.h When I manually copied the header files into the MSVC8 header folder I was bombarded with errors about headers not being able to be opened, int32_t not being recognized, and eventually I just restored my backup of that directory because it required that I change stuff that I wasn't sure I should edit. I just want to read and write to png's without having the overhead of some over featured image loading library. Most of them use libpng anyway. I also need to be able to load from my custom i/o stream.
1>------ Build started: Project: zlib, Configuration: DLL ASM Debug Win32 ------ 1>Assembling... 1>'ml' is not recognized as an internal or external command, 1>operable program or batch file. 1>Project : error PRJ0019: A tool returned an error code from "Assembling..." 1>Build log was saved at "file://c:\Users\user1\Downloads\png\lpng1218\projects\visualc71\Win32_DLL_ASM_Debug\ZLib\BuildLog.htm" 1>zlib - 1 error(s), 0 warning(s) 2>------ Build started: Project: libpng, Configuration: DLL ASM Debug Win32 ------ 2>Compiling... 2>pngvcrd.c 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(315) : error C2065: 'PNG_ASM_FLAG_MMX_READ_COMBINE_ROW' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(1219) : error C2065: 'PNG_ASM_FLAG_MMX_READ_INTERLACE' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3700) : error C2065: 'PNG_ASM_FLAG_MMX_READ_FILTER_SUB' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3703) : error C2065: 'PNG_ASM_FLAG_MMX_READ_FILTER_UP' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3706) : error C2065: 'PNG_ASM_FLAG_MMX_READ_FILTER_AVG' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3709) : error C2065: 'PNG_ASM_FLAG_MMX_READ_FILTER_PAETH' : undeclared identifier 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3739) : error C2039: 'mmx_bitdepth_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3740) : error C2039: 'mmx_rowbytes_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3768) : error C2039: 'mmx_bitdepth_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3769) : error C2039: 'mmx_rowbytes_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3796) : error C2039: 'mmx_bitdepth_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3797) : error C2039: 'mmx_rowbytes_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3834) : error C2039: 'mmx_bitdepth_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>c:\users\user1\downloads\png\lpng1218\pngvcrd.c(3835) : error C2039: 'mmx_rowbytes_threshold' : is not a member of 'png_struct_def' 2> c:\users\user1\downloads\png\lpng1218\png.h(1115) : see declaration of 'png_struct_def' 2>Build log was saved at "file://c:\Users\user1\Downloads\png\lpng1218\projects\visualc71\Win32_DLL_ASM_Debug\BuildLog.htm" 2>libpng - 14 error(s), 0 warning(s) 3>------ Build started: Project: pngtest, Configuration: DLL ASM Debug Win32 ------ 3>Linking... 3>LINK : fatal error LNK1104: cannot open file '.\win32_dll_asm_debug\libpng13d.lib' 3>Build log was saved at "file://c:\Users\user1\Downloads\png\lpng1218\projects\visualc71\Win32_DLL_ASM_Debug\Test\BuildLog.htm" 3>pngtest - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========