[gdal-dev] Can't compile 1.11.0 for iOS with 'expected statement' error for gdalgrid.cpp

Jesse Crocker jesse at gaiagps.com
Wed Jul 9 19:24:54 PDT 2014


I got around this by disabling both sse and avx at configure, --with-sse=no --with-avx=no.


-
Jesse

On Jul 9, 2014, at 6:12 PM, Nik Sands <nixanz at nixanz.com> wrote:

> PS.  (This always happens just AFTER I send to the list, no matter how long I mull it over first...)
> 
> Actually, I think I see the issue now.  The closing bracket is the end of an "if ()" stanza in which there is no content at all if neither 'HAVE_AVX_AT_COMPILE_TIME' or 'HAVE_SSE_AT_COMPILE_TIME' are defined, which must be the case in my situation.
> 
> I guess I could either delete the entire stanza, or add in a statement that does nothing useful.
> 
> Anyhow, I thought you guys should know this situation exists so that you may be able to deal with it yourselves for some future release.  :-)
> 
> Cheers,
> Nik.
> 
> 
> On 10 Jul 2014, at 10:03 am, Nik Sands <nixanz at nixanz.com> wrote:
> 
>> Hi all,
>> 
>> I'm attempting to upgrade my iOS app from GDAL 1.10.1 to 1.11.0 in order to take advantage of the new OpenFileGDB driver.  However, I've been unable to get it to compile for iOS so far with the error output below (note that in this instance it is attempting to compile for i386 for the iOS simulator.)
>> 
>> I've had a look at code it's complaining about (line 1806 in 'gdalgrid.cpp') and I can't figure out what the problem is.  The brackets appear to be OK and I'm not sure why it doesn't like the closing bracket there.
>> 
>> Can anybody help me figure this one out?
>> 
>> Cheers,
>> Nik.
>> 
>> 
>> libtool: compile:  /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -arch i386 -pipe -Os -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -Wno-implicit-function-declaration -D__IPHONE_OS_VERSION_MIN_REQUIRED=70000 -Wall -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/port -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/gcore -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/alg -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/ogr -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/ogr/ogrsf_frmts -DHAVE_AVX_AT_COMPILE_TIME -DOGR_ENABLED -I/Users/nsands/Documents/Nik/Development/GDAL/gdal-1.11.0/port -c gdalgrid.cpp -o gdalgrid.o
>> gdalgrid.cpp:1806:17: error: expected statement
>>               }
>>               ^
>> 1 error generated.
>> make[1]: *** [gdalgrid.lo] Error 1
>> make: *** [core-target] Error 2
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list