Broken when tyring to build on RHEL 7
k2patel opened this issue · 6 comments
File : mrf/src/gdal_mrf/frmts/mrf/mrf_band.cpp
fatal error: ../zlib/zlib.h: No such file or directory
include "../zlib/zlib.h"
In order to fix i've to modify +#include "zlib.h"
OR
You +#include <zlib.h>
either works.
Are you compiling MRF by itself?
This source is meant to be compiled in a GDAL source folder, where the ../zlib does exist, regardless of the Linux distribution.
No, I'm building gdal 2.1.0 ( which has inbuilt mrf )
that's my point is - it is referenced "../zlib/zlib.h" in the source file. rather than using system provide zlib.h in /usr/include ( may vary between OS ).
I've removed the local reference and ask to look for the system include.
Hope this make sense.
MRF currently depends on GDAL using the GDAL libjpeg and libpng, and GDAL libpng uses the internal zlib. I know GDAL can use external versions of those libraries, but getting those configurations to work on all GDAL supported OSs takes a bit of work.
Are you disabling the internal zlib use intentionally?
Well in order to use internal zlib it must exist while gdal source i do not
see it exist.
I can verify again, but it failed to compile on RHEL 7 and fedora 23.
Only way I can get it to build if I use the zlib provided with the OS.
The other option I see is to provide config option to choose between.
Will update you one I verify again.
Thanx
On Fri, Jul 8, 2016, 4:46 PM Lucian Plesea notifications@github.com wrote:
MRF currently depends on GDAL using the GDAL libjpeg and libpng, and GDAL
libpng uses the internal zlib. I know GDAL can use external versions of
those libraries, but getting those configurations to work on all GDAL
supported OSs takes a bit of work.
Are you disabling the internal zlib use intentionally?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#31 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAhz7v0crGKYmb8gUpuHE_e96a-eEn27ks5qTsUxgaJpZM4JIY5L
.
Which GDAL 2.1 source download did you use?
I checked, both in the released gdal210.zip and in the current GDAL 2.1 branch, the folder frmts/zlib and its content do exist. Or maybe the folder or file access rights were wrong?
i'm using http://download.osgeo.org/gdal/2.1.0/gdal-2.1.0.tar.gz
interesting enough that the i downloaded on July 1st it's missing zlib folder, today i've downloaded again to verify and i find the zlib folder exists.
Anyway, it seems this issue can be closed.
Thank you.