[gdal-dev] configure: WARNING: unrecognized options: --with-macosx-framework

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[gdal-dev] configure: WARNING: unrecognized options: --with-macosx-framework

Ivan Lucena-4

Hi,


I can successfully built GDAL on OSX as long as my target is /usr/local but when building for the framework I and getting some errors.


The first one seems easy no fix:


$ ./configure --with-macosx-framework
configure: WARNING: unrecognized options: --with-macosx-framework
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-apple-darwin14.5.0
checking for gcc... gcc
checking whether the C compiler works... yes
. . .

There is a missing entry on the file "configure":

$ svn diff configure
Index: configure
===================================================================
--- configure    (revision 37029)
+++ configure    (working copy)
@@ -1047,6 +1047,7 @@
 with_perl
 with_php
 with_python
+with_macosx_framework
 with_java
 with_mdb
 with_jvm_lib

Once that is fixed, the "unrecognized options" warning goes away and I am getting in some linking error related to the code on frtms/pdf. It seems like a xCode version issue but I am still working on it.

Anyway, should I file a bug and commit the above path to the file "configure"?

Regards,

Ivan



_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: configure: WARNING: unrecognized options: --with-macosx-framework

Even Rouault-2

>

> Anyway, should I file a bug and commit the above path to the file

> "configure"?

 

configure should never been manually modified. It is regenerated by autoconf (currently 2.69) from configure.in

 

I've traced the issue to be linked to the following line in configure.in

 

AC_ARG_WITH(,[  --with-macosx-framework         Build and install GDAL as a Mac OS X Framework],,)

 

Changing it to

 

AC_ARG_WITH(macosx-framework,[ --with-macosx-framework Build and install GDAL as a Mac OS X Framework],,)

 

seems to solve the issue.

 

Surprisingly, the AC_ARG_WITH(,[ ....]) syntax has been used since

https://trac.osgeo.org/gdal/changeset/10196 , so perhaps the warning has always existed, or autoconf is less tolerant now. Who knows.

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: configure: WARNING: unrecognized options: --with-macosx-framework

Ivan Lucena-4

Hi Even,


Your change fix the warning. Thanks.


The other issue I was having is that because on:


/frmts/pdf/GNUmakefile


LDFLAGS and CPPFLAGS defines libstdc++ while the result setting from ./configure is libc++.


I simply change the PDF driver makefile to use libc++ instead of libstdc++ and the GDAL macosx-framework build worked just fine. I don't know if we need to change that.


Thanks,

Ivan


From: Even Rouault <[hidden email]>
Sent: Tuesday, January 3, 2017 5:55:49 AM
To: [hidden email]
Cc: Ivan Lucena
Subject: Re: [gdal-dev] configure: WARNING: unrecognized options: --with-macosx-framework
 

>

> Anyway, should I file a bug and commit the above path to the file

> "configure"?

 

configure should never been manually modified. It is regenerated by autoconf (currently 2.69) from configure.in

 

I've traced the issue to be linked to the following line in configure.in

 

AC_ARG_WITH(,[  --with-macosx-framework         Build and install GDAL as a Mac OS X Framework],,)

 

Changing it to

 

AC_ARG_WITH(macosx-framework,[ --with-macosx-framework Build and install GDAL as a Mac OS X Framework],,)

 

seems to solve the issue.

 

Surprisingly, the AC_ARG_WITH(,[ ....]) syntax has been used since

https://trac.osgeo.org/gdal/changeset/10196 , so perhaps the warning has always existed, or autoconf is less tolerant now. Who knows.

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Loading...