Page 1 of 1

OSX build failed

Posted: Tue Feb 04, 2020 3:53 pm

Code: Select all

-arch x86_64 -dynamiclib -isysroot
-F/Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug -filelist
-install_name /usr/local/lib/liblibpropertypages.dylib
-mmacosx-version-min=10.8 -Xlinker -object_path_lto -Xlinker
-Xlinker -no_deduplicate -stdlib=libc++ -fobjc-link-runtime
-L/Users/igorkorot/wxWidgets/buildC11/lib -framework IOKit -framework
Carbon -framework Cocoa -framework AudioToolbox -framework System
-framework OpenGL -lwx_osx_cocoau_xrc-3.1 -lwx_osx_cocoau_html-3.1
-lwx_osx_cocoau_qa-3.1 -lwx_osx_cocoau_adv-3.1
-lwx_osx_cocoau_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1
-lwx_baseu-3.1 -compatibility_version 1 -current_version 1 -Xlinker
-dependency_info -Xlinker
-o /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/liblibpropertypages.dylib

ndefined symbols for architecture x86_64:
  "wxDataViewRendererNativeData::Init()", referenced from:
in sortcolumnrenderer.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What am I missing?

Thank you.

Re: OSX build failed

Posted: Tue Mar 10, 2020 12:18 pm
by thoray
wxWidgets with xcode version 10.1 (sdk version 10.14) build fine for me in os x Mojave with "../configure --disable-shared". You could also try to disable .dylib output.

Also building wx in linux for mac with osxcross tools using sdk versions prior to 10.15 worked but I also always disabled shared library output.