On Fri, Jan 18, 2019 at 2:51 AM Martin Gansser <martin.gans...@gmail.com> wrote:
> # use system library zlib
> rm -rf ./JUCE/modules/juce_core/zip/zlib/zlib.h
> sed -i 's|#define JUCE_INCLUDE_ZLIB_CODE 1|#define JUCE_INCLUDE_ZLIB_CODE 0|' 
> JUCE/modules/juce_core/juce_core.h
> sed -i 's|#include "../../../juce_core/zip/zlib/zlib.h"|#include "zlib.h"|' 
> JUCE/modules/juce_graphics/image_formats/pnglib/pngstruct.h

Make that <zlib.h>; i.e., use angle brackets instead of quote marks.

> but the compilation fails with this errors:

That isn't an error.  It is a warning.  Search through your build logs
for "error:" and you will see the real problem:

../../../JUCE/modules/juce_graphics/image_formats/pnglib/pngwutil.c:1040:47:
error: invalid conversion from
'juce::pnglibNamespace::png_const_bytep' {aka 'const unsigned char*'}
to 'juce::zlibNamespace::Bytef*' {aka 'unsigned char*'} [-fpermissive]

As J.Scheurich noted, you can work around that with -fpermissive.  But
notice that this error is being encountered while building a bundled
version of libpng.  You'll want to use the system libpng instead.
Also, in a parallel directory,
JUCE/modules/juce_graphics/image_formats/jpglib, there is a bundled
libjpeg.  You should use the system libjpeg-turbo (I think) instead.
See if unbundling those libraries fixes the build for you.

Regards,
-- 
Jerry James
http://www.jamezone.org/
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to