macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found 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.
Post Reply
User avatar
rocrail
Earned some good credits
Earned some good credits
Posts: 108
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by rocrail » Tue Feb 12, 2019 12:25 pm

Hi,

after a git pull, and a new configure command:

Code: Select all

../configure --enable-unicode --with-osx_cocoa --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk --with-macosx-version-min=10.14 --enable-graphics_ctx --enable-monolithic --enable-compat28 --disable-mediactrl
I get the following compile error:

Code: Select all

/Users/rob/Projects/wxWidgets/macbuild/bk-deps g++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.14 -c -o monodll_generic_caret.o  -D__WXOSX_COCOA__      -DWXBUILDING -I/Users/rob/Projects/wxWidgets/macbuild/src/tiff/libtiff -I../src/tiff/libtiff -I../src/jpeg -I../src/png  -I../src/regex  -I../src/stc/scintilla/include -I../src/stc/scintilla/lexlib -I../src/stc/scintilla/src -D__WX__ -DSCI_LEXER -DNO_CXX11_REGEX -DLINK_LEXERS -DwxUSE_BASE=1 -DWXMAKINGDLL  -dynamic -fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -Wno-deprecated-declarations -D_FILE_OFFSET_BITS=64 -I/Users/rob/Projects/wxWidgets/macbuild/lib/wx/include/osx_cocoa-unicode-3.1 -I../include -O2 -fno-common -fvisibility=hidden -fvisibility-inlines-hidden ../src/generic/caret.cpp
../src/osx/carbon/utilscocoa.mm:630:48: error: property 'effectiveAppearance' not found on object of type '__kindof NSApplication *'
        NSAppearance.currentAppearance = NSApp.effectiveAppearance;
How can I solve this compile error?
macOS=10.14.3
Best regards,
Rob.

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

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by ONEEYEMAN » Tue Feb 12, 2019 3:58 pm

Hi,
This trype of things are better reported to the wx-dev ML. This forum is for users of the library and it is managed by the users.

In the meantime check the commit log here and if you don't see anything as a possible fix, please send an e-mail to wx-dev ML.
When you do, put in complete configure line you used and make sure you did completely remove the old build directory (no old remnants).

Thank you.

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

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by evstevemd » Wed Feb 13, 2019 10:24 am

1. Does it work when you compile stable version?
2. do you really need wx28 compatibilty (see --enable-compat28)?
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
rocrail
Earned some good credits
Earned some good credits
Posts: 108
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by rocrail » Wed Feb 13, 2019 10:30 am

Yes, the stable version is OK.
The Git master was also OK until last week.
I use the master because of the Dark Theme support.
Best regards,
Rob.

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

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by ONEEYEMAN » Wed Feb 13, 2019 2:07 pm

Hi,
Just for test - can you create a clean checkout and try to compile?

Thank you.

User avatar
rocrail
Earned some good credits
Earned some good credits
Posts: 108
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by rocrail » Wed Feb 13, 2019 2:38 pm

Thanks!
That did the trick.

So make clean and configure does not always get it straight.
Best regards,
Rob.

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

Re: macOS Compile error (git master 3.1.3) property 'effectiveAppearance' not found

Post by ONEEYEMAN » Wed Feb 13, 2019 4:05 pm

Hi,
I usually remove the build directory completely and the create it again. Something like

Code: Select all

cd wxWidgets
rm -rf buildGTK
mkdir buildGTK
../configure...... && make
Remember the build creates the hidden directories which are not removed by "make clean". Why - I don't know.

Thank you.

Post Reply