Cannot Compile wxWidgets with MacOSx SDK 10.14 Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Sun Jun 30, 2019 4:13 pm

I try to Compile wxWidgets fork that am working on and here is what I get. I do simply

Code: Select all

mkdir WXDIR/build-cocoa-debug
cd WXDIR/build-cocoa-debug
cmake ../
make -j4
Log

Code: Select all

/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpplude/wx/osx/private.h:29::4In file included from :
/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.hIn file included from :/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.h15::18In file included from :
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.hIn file included from :/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h15::
43:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:70:3: error: 
In file included from /Applications/Xcode.app/Contents/Developer/Pla      too few arguments provided to function-like macro invocation
} API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5' defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:73:116: error: 
      tforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.htoo /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filename.cppfew: :663arguments110: :
61providedIn file included from : /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/private.h to:4 :
function-likeerrorIn file included from  : /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.hmacro: 18invocation:
In file included from 
/Applications/Xcode.app/Contents/DevelopeCFRange CFDataFind(CFDataRef theData, CFDataRef dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions) API_AVAILAB...
                                                                                                                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5' defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:73:116: error: 
      expected function body after function declarator
CFRange CFDataFind(CFDataRef theData, CFDataRef dataToFind, CFRange searchRange, CFDataSearchFlags compareOptions) API_AVAILAB...
                                                                                                                   ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:88: note: 
      expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...
                                                                                       ^
      too few arguments provided r/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.hto :function-like 43macro:
 invocation
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:663:61: error: CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
                                                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:76:28: error: 
      too few arguments provided to function-like macro 
invocation      too
 few arguments provided to function-like macro invocation
    kCFCharacterSetNewline API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 15, /* Newline character se...
                           ^
CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h
:61                                                            ^:
192: note: 
      expanded /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Defrom /usr/include/AvailabilityInternal.hmacro: 33240'API_AVAILABLE':13
: note: macro '__API_AVAILABLE5' defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)

            ^                                                                                                             ^

/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5' definedIn file included from  here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:17:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:76:27: error: 
      missing ',' between enumerators
    kCFCharacterSetNewline API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 15, /* Newline character se...
                          ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h:76:28: error: 
      redefinition of '__API_AVAILABLE5'
    kCFCharacterSetNewline API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 15, /* Newline character se...
                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:88: note: 
      expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...
                                                                                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:70:3: note: 
      previous definition is here
} API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:88: note: 
      expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB.../Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filefn.cpp
:55                                                                                       ^:

In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/private.h:4:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:663:61: error: 
      expected function body after function declarator
CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
                                                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:88: note: 
      expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...
                                                                                       ^
veloper/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:68:53: error: 
      too few arguments provided to function-like macro invocation
CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
                                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5' defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:68:53: error: 
      expected function/usr/include/AvailabilityInternal.h body :after 33240function declarator
:13: note: macro '__API_AVAILABLE5' CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
                                                    ^defined
 here/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:88:
 note: 
      expanded from macro 'API_AVAILABLE'
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...
                                                                                       ^
[ 26%] Building CXX object libs/base/CMakeFiles/base.dir/__/__/__/src/common/filtall.cpp.o
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:73:49: error: 
      too few arguments provided to function-like macro invocation
CFArrayRef CFLocaleCopyPreferredLanguages(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61:192: note: 
      expanded from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5'     #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/encconv.cpp:29:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/cfstring.h:
15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h            ^:
18:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h:73:49: error: 
      expected functionIn file included from  /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filename.cppbody: 110after:
 In file included from function/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/private.h :declarator4:

In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.hIn file included from :/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filefn.cpp:4355:
:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/private.h/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h::4663:
:In file included from 61/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.h:: 18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.herror:: 49:
In file included from 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h      :expected14 :
function /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.hbody:68:53 : after functionerror : declarator

      too few arguments provided to function-like macro invocation
CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
                                                    ^
CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
                                                            ^/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h
:61:192: note: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h
:      61expanded:[ 26%] Building CXX object libs/base/CMakeFiles/base.dir/__/__/__/src/common/filtfind.cpp.o
 from macro 'API_AVAILABLE'
  ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, __API_AVAILABLE1, 0)(__VA_ARGS__)
                                                                                                             ^
/usr/include/AvailabilityInternal.h:33240:13: note: macro '__API_AVAILABLE5' defined here
    #define __API_AVAILABLE5(x,y,z,t,b) __API_A(x) __API_A(y) __API_A(z) __API_A(t) __API_A(b)
            ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filefn.cpp:55:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/private.h:4:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/core/private.h:18:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h88:: 49:
noteIn file included from : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h:
14      :
expanded from/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h :macro68 :'API_AVAILABLE'53:
 error: 
      expected function body after function declarator
    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));

                                                                                       ^                                                    ^

FArrayRef CFLocaleCopyPreferredLanguages(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));[0m
                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h:61/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/os/availability.h::8861:: 88: note: note: 
      
expanded       expandedfrom  frommacro  macro'API_AVAILABLE' 'API_AVAILABLE'

    #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE6, __API_AVAILABLE5, __API_AVAILAB...
                                                                                       ^
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filefn.cpp:55:
In file included from /Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/include/wx/osx/privaIn file included from te.h:/Users/hosanna/Projects/SharedLibs/Forks/wxWidgets/src/common/filename.cpp:4110:

......
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3353
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by ONEEYEMAN » Mon Jul 01, 2019 2:36 pm

Hi,
I presume you have the current Git master?
Can you try with just:

Code: Select all

../configure --enable-debug --with-macosx-version-min=10.9 && make
just to test?

Thank you.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Mon Jul 01, 2019 4:32 pm

ONEEYEMAN wrote:
Mon Jul 01, 2019 2:36 pm
Hi,
I presume you have the current Git master?
Can you try with just:

Code: Select all

../configure --enable-debug --with-macosx-version-min=10.9 && make
just to test?

Thank you.
For now I have to use CMake as I have added some files that confugure script might not know about them. 10.9 is sets that already.
Am not sure where I go wrong
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3353
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by ONEEYEMAN » Mon Jul 01, 2019 4:41 pm

Hi,
Is it inside the file you added?
I think there shuold be some kind of wx macro to check for OSX minimal version...

Thank you.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Mon Jul 01, 2019 4:44 pm

ONEEYEMAN wrote:
Mon Jul 01, 2019 4:41 pm
Hi,
Is it inside the file you added?
I think there shuold be some kind of wx macro to check for OSX minimal version...

Thank you.
No. It seem like some configuration or incompatibility somewhere. The error is coming from OSX SDK as you can see in one of errors

Code: Select all

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h:70:3: error: 
In file included from /Applications/Xcode.app/Contents/Developer/Pla      too few arguments provided to function-like macro invocation
} API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by BobsTheDude » Tue Jul 02, 2019 3:46 pm

Couple things:

1. What version of OSX are you actually running
2. Run gcc --version post output?
3. Is this a virtual installation?
3. Can you run the following for a test
4. Do you have XCode installed, if so what version?
5. Do you have the command line tools installed?

Not sure what you have configured in CMake, but the following is a basic build on OSX. This works for static or dynamic libs in debug or release.

1.

Code: Select all

../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
2.

Code: Select all

 make BUILD=debug
3.

Code: Select all

 samples; make;cd ..
4.

Code: Select all

 demos;   make;cd ..
Then start Finder and run one of the programs in demo or samples directories. If the above process works and you can run one of the samples then wxWidgets is working, which means something in your process is not working.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Tue Jul 02, 2019 6:55 pm

BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
1. What version of OSX are you actually running
High Sierra
BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
2. Run gcc --version post output?

Code: Select all

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
3. Is this a virtual installation?
No!
BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
3. Can you run the following for a test
Which test?
BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
4. Do you have XCode installed, if so what version?
10.1
BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
5. Do you have the command line tools installed?
Yes!

BobsTheDude wrote:
Tue Jul 02, 2019 3:46 pm
Not sure what you have configured in CMake, but the following is a basic build on OSX. This works for static or dynamic libs in debug or release.

1.

Code: Select all

../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
2.

Code: Select all

 make BUILD=debug
3.

Code: Select all

 samples; make;cd ..
4.

Code: Select all

 demos;   make;cd ..
Then start Finder and run one of the programs in demo or samples directories. If the above process works and you can run one of the samples then wxWidgets is working, which means something in your process is not working.
Well I din't know what went wrong. Since it was working. No special CMake config (see first post)
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Tue Jul 02, 2019 6:57 pm

Can anyone compile this Fork? https://github.com/mtangoo/wxWidgets
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by BobsTheDude » Tue Jul 02, 2019 8:05 pm

Can anyone compile this Fork? https://github.com/mtangoo/wxWidgets
Ran with:

Code: Select all

../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9
make -j4
Does not compile, has errors 3 of them 'const wxCompletionItem', but the function is not marked const. But nothing like the error you were getting.

I use the "Latest Development Release: 3.1.2" from wxWidgets downloads. I know this version works as I have it installed and working.
Maybe download it and try for a successful build.
Bare bones try this:

Code: Select all

../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9
make -j4
You earlier errors were platform related that's why I ask the questions I did.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Wed Jul 03, 2019 5:41 am

Thank you for testing. I will test with configure and fix the errors. Can you help me test CMake also and see what error you actually get?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by BobsTheDude » Wed Jul 03, 2019 6:12 am

Sure, give me the configuration to use.

Also, in the https://github.com/mtangoo/wxWidgets release

To configure I used

Code: Select all

.../../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9
not the following as the directions showed.

Code: Select all

../configure --enable-debug --with-osx_cocoa --with-macosx-version-min=10.9

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Wed Jul 03, 2019 6:29 am

Strange thing is when I use configure then make it works fine. But when I run cmake then make I get those bunch of errors!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2239
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by evstevemd » Wed Jul 03, 2019 6:30 am

BobsTheDude wrote:
Wed Jul 03, 2019 6:12 am
Sure, give me the configuration to use.

Code: Select all

mkdir wxDirectory/build-wx

Code: Select all

cd wxDirectory/build-wx

Code: Select all

cmake -DwxBUILD_SAMPLES=ALL VERBOSE=1 ..
Then

Code: Select all

make -j4
Remember to do

Code: Select all

git pull --rebase
to update to the latest commit
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3353
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by ONEEYEMAN » Wed Jul 03, 2019 1:52 pm

Hi,
That's why "CMake build" is called experimental and you always should use an official/standard one with "configure & make"

Most likely something with C<ake is not being set up correctly for 10.14 build and it is being picked up by default and not 10.9 as the case with "configure".

Thank you.

BobsTheDude
Earned a small fee
Earned a small fee
Posts: 15
Joined: Wed Mar 06, 2019 10:33 pm

Re: Cannot Compile wxWidgets with MacOSx SDK 10.14

Post by BobsTheDude » Thu Jul 04, 2019 2:30 am

I followed the git instructions and it built successfully.

Post Reply