[QGIS-Developer] More errors from OS X 10.13 compiling

Vincent Habchi vince at macports.org
Thu Dec 7 07:40:58 PST 2017


Hey guys,

I’m not sure this has been brought up yet, so here it is:

The fix #11399 doesn’t seem to work on OS X 10.13 anymore or needs further patching:

qgslayoutdesignerdialog.cpp:948:11: error: use of undeclared identifier 'kCFAllocatorDefault'
         kCFAllocatorDefault,
         ^
qgslayoutdesignerdialog.cpp:950:11: error: use of undeclared identifier 'kCFStringEncodingUTF8'
         kCFStringEncodingUTF8
         ^
qgslayoutdesignerdialog.cpp:954:11: error: use of undeclared identifier 'kCFAllocatorDefault'
         kCFAllocatorDefault,
         ^
qgslayoutdesignerdialog.cpp:956:11: error: use of undeclared identifier 'kCFURLPOSIXPathStyle'
         kCFURLPOSIXPathStyle,
         ^
qgslayoutdesignerdialog.cpp:962:11: error: use of undeclared identifier 'kCFAllocatorDefault'
         kCFAllocatorDefault,
         ^
qgslayoutdesignerdialog.cpp:968:22: error: unknown type name 'CFIndex'
       static const CFIndex maxAbsPathCStrBufLen = 4096;
                    ^
qgslayoutdesignerdialog.cpp:973:33: error: unknown type name 'UInt8'
              reinterpret_cast<UInt8 *>( &absPathCStr[0] ),
                               ^
qgslayoutdesignerdialog.cpp:980:7: error: use of undeclared identifier 'CFRelease'
     CFRelease( relCFURL );
     ^

Also I get this error, in the same file, later:

qgslayoutdesignerdialog.cpp:1263:3: error: use of undeclared identifier 'mQgis'
 mQgis->activateWindow();
 ^


If I disable these patches for MacOS (#if 0 …) the build works, of course. Since the first patch is supposed to target a Qt4 bug, can it be safely disabled when linking against Qt5?

Thanks,
Vincent





More information about the QGIS-Developer mailing list