Page 1 of 1

OSX build failed

Posted: Tue Feb 04, 2020 3:53 pm
by ONEEYEMAN
Hi,

Code: Select all

   /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-arch x86_64 -dynamiclib -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
-L/Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug
-F/Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug -filelist
/Users/igorkorot/dbhandler/dbhandler/Build/Intermediates.noindex/libpropertypages.build/Debug/libpropertypages.build/Objects-normal/x86_64/libpropertypages.LinkFileList
-install_name /usr/local/lib/liblibpropertypages.dylib
-mmacosx-version-min=10.8 -Xlinker -object_path_lto -Xlinker
/Users/igorkorot/dbhandler/dbhandler/Build/Intermediates.noindex/libpropertypages.build/Debug/libpropertypages.build/Objects-normal/x86_64/libpropertypages_lto.o
-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
/Users/igorkorot/dbhandler/dbhandler/Build/Intermediates.noindex/libpropertypages.build/Debug/libpropertypages.build/Objects-normal/x86_64/libpropertypages_dependency_info.dat
-o /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/liblibpropertypages.dylib

ndefined symbols for architecture x86_64:
  "wxDataViewRendererNativeData::Init()", referenced from:
      wxDataViewRendererNativeData::wxDataViewRendererNativeData(NSCell*)
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.