<div dir="ltr"><div><br></div><div> I can do </div><div>`./configure --enable-shared`</div><div><br></div>but failed with the following error message:<div><br clear="all"><div><i>➜  gdal git:(master) ✗ ./configure CFLAGS="/usr/local/include/openjpeg" CPPFLAGS="/usr/local/include/openjpeg" --enable-shared<br>checking build system type... x86_64-pc-linux-gnu<br>checking host system type... x86_64-pc-linux-gnu<br>checking for gcc... gcc<br>checking whether the C compiler works... no<br>configure: error: in `....../gdal/gdal':<br>configure: error: C compiler cannot create executables<br>See `config.log' for more details</i><br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>Pei JIA, Ph.D.</div><div><br></div><div>Email: <a href="mailto:jp4work@gmail.com" target="_blank">jp4work@gmail.com</a></div><div>cell in Canada:    +1 778-863-5816</div><div>cell in China: +86 186-8244-3503</div><div><br></div>Welcome to Vision Open<br><a href="http://www.visionopen.com" target="_blank">http://www.visionopen.com</a></div></div></div></div>