[gdal-dev] how to install gdal from source?
Sandra Maksimovic
sandra.maksimovic at mcri.edu.au
Mon May 11 22:20:08 PDT 2020
Thanks Jorge,
It ended up being an unrelated POSIX permissions issue on the local file system, so it seems things were not executing correctly when making the source.
Cheers,
Sandra
From: gdal-dev [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Jorge Gustavo Rocha
Sent: Monday, 11 May 2020 6:36 PM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] how to install gdal from source?
Hi Sandra,
Are you switch to gdal/gdal? You shouldn't have to add a includedir for
gdal. gdal_version.h is included in the code, at gcore/gdal_version.h
Here my recipe to compile gdal (on Ubuntu):
git clone https://github.com/OSGeo/gdal<https://github.com/OSGeo/gdal>
cd gdal/gdal
./autogen.sh
./configure --with-python=python3 --with-proj=/usr/local --with-pg=yes
--with-poppler
make -j8
sudo make install
sudo ldconfig
cd swig/python
python3 setup.py build
sudo python3 setup.py install
I hope it helps. Regards,
Jorge Gustavo
On 11/05/20 06:37, Sandra Maksimovic wrote:
> Hi all,
>
>
>
> I’m trying to install GDAL v3.1.0 with Proj v6.2.1 on CentOS 7.7. I am
> continually receiving the following error during the make step:
>
>
>
> ../gdal.h:44:26: fatal error: gdal_version.h: No such file or directory
>
> #include "gdal_version.h"
>
>
>
> I have tried including the headers from the OS installed version of GDAL
> (v1.11.4) to no avail. Here is my configure line:
>
>
>
> ./configure --prefix=$PREFIX --with-proj=$PROJDIR
> --includedir=/usr/include/gdal --with-threads --with-libtiff=internal
> --with-geotiff=internal --with-jpeg=internal --with-gif=internal
> --with-png=internal --with-libz=internal
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
>
>
> *Sandra Maksimovic*
>
> Systems Administrator
>
> Information Technology
>
>
>
> *Murdoch Children’s Research Institute*
>
> The Royal Children’s Hospital, 50 Flemington Road
>
> Parkville, Victoria 3052 Australia
>
>
>
> *T *+61 3 8341 6498
>
> *E *sandra.maksimovic at mcri.edu.au<mailto:*sandra.maksimovic at mcri.edu.au> <mailto:sandra.maksimovic at mcri.edu.au>
>
> *W *mcri.edu.au <https://www.mcri.edu.au/<https://www.mcri.edu.au>>
>
>
>
>
>
> This e-mail and any attachments to it (the "Communication") are, unless
> otherwise stated, confidential, may contain copyright material and is
> for the use only of the intended recipient. If you receive the
> Communication in error, please notify the sender immediately by return
> e-mail, delete the Communication and the return e-mail, and do not read,
> copy, retransmit or otherwise deal with it. Any views expressed in the
> Communication are those of the individual sender only, unless expressly
> stated to be those of Murdoch Children’s Research Institute (MCRI) ABN
> 21 006 566 972 or any of its related entities. MCRI does not accept
> liability in connection with the integrity of or errors in the
> Communication, computer virus, data corruption, interference or delay
> arising from or in respect of the Communication.
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://lists.osgeo.org/mailman/listinfo/gdal-dev>
>
--
OSGeo Portugal
NIF: 509588190
email: geral at osgeopt.pt<mailto:geral at osgeopt.pt>
https://www.osgeopt.pt/<https://www.osgeopt.pt>
Próximo evento: SASIG 2017, 20 a 22 de novembro, Porto
Mais informações: http://osgeopt.pt/sasig2017/<http://osgeopt.pt/sasig2017>
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev<https://lists.osgeo.org/mailman/listinfo/gdal-dev>
Disclaimer
This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200512/84a2b551/attachment-0001.html>
More information about the gdal-dev
mailing list