[gdal-dev] Build gdal from source - cannot set CPPFLAGS

Pei JIA jp4work at gmail.com
Sun Aug 8 14:23:14 PDT 2021


 I can do
`./configure --enable-shared`

but failed with the following error message:








*➜  gdal git:(master) ✗ ./configure CFLAGS="/usr/local/include/openjpeg"
CPPFLAGS="/usr/local/include/openjpeg" --enable-sharedchecking build system
type... x86_64-pc-linux-gnuchecking host system type...
x86_64-pc-linux-gnuchecking for gcc... gccchecking whether the C compiler
works... noconfigure: error: in `....../gdal/gdal':configure: error: C
compiler cannot create executablesSee `config.log' for more details*


-- 

Pei JIA, Ph.D.

Email: jp4work at gmail.com
cell in Canada:    +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210808/3b4cbbab/attachment.html>


More information about the gdal-dev mailing list