Disko Forum logo Login  |  Register  |  Lost Password
Disko does not build against libpng >= 1.4

archme
Posts: 5
graphgraph

Disko does not build against libpng >= 1.4 4 Years, 8 Months ago  
Hello,

Just tried to build disko (1.6 and git) against libpng 1.4.0

src/mmstools/mmstafffile.cpp: In member function 'bool MMSTaffFile::readPNG(const char*, void**, int*, int*, int*, int*)':
src/mmstools/mmstafffile.cpp:124: error: 'png_check_sig' was not declared in this scope
src/mmstools/mmstafffile.cpp:137: warning: 'png_struct_def::jmpbuf' is deprecated (declared at /usr/include/libpng14/png.h:1082)
src/mmstools/mmstafffile.cpp:137: warning: 'png_struct_def::jmpbuf' is deprecated (declared at /usr/include/libpng14/png.h:1082)
scons: *** [build/libs/mmstools/mmstafffile.os] Error 1
scons: building terminated because of errors.

for details see: http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt
 
  The administrator has disabled public write access.
Disko does not build against libpng >= 1.4

Guido
Admin
Posts: 54
graphgraph

Re:Disko does not build against libpng >= 1.4 4 Years, 8 Months ago  
Hi archme,

i found out, that the libpng changed the API:
http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt
----
replace
png_check_sig(buf, 8)
with
png_sig_cmp(buf, 0, 8) == 0
----

We try to solve the problem. In the meantime you should compile against an older version of libpng

regards

Guido
 
  The administrator has disabled public write access.
Disko does not build against libpng >= 1.4

Matthias
Admin
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:Disko does not build against libpng >= 1.4 4 Years, 8 Months ago  
Hello archme,

I committed the fix for libpng 1.4.x support.
Thanks for the report.

Best regards,
Matthias
 
  The administrator has disabled public write access.
Powered by FireBoard
get the latest posts directly to your desktop