![]() When building the program that links to it, however, I (eventually) get: I didn't install it anywhere it's still sitting in ~/wxWidgets-3.1.0/build/ The situation is the same: wxwidgets 3.1.0 compiles fine (3.0.2 didn't), and creates a working wx-config. I don't know much about bundle creation, I assumed I could just create an executable.Īnd sorry if this is becoming a pain in the ass.įor what it's worth, we have a longstanding project that also uses wxwidgets, and which is also running into this same error, when compiling on macOS 10.10. I didn't use the prefix option, and I'm not using Xcode, just the command line. wx-config within the wxwidgets directory, the linking flags from wx-config outside of the wx-widgets directory, or any paired-combination of the four. Users/myUser/widgetDir/wxWidgets-3.1.0/include/wx/strvararg.h:27:18: fatal error: 'tr1/type_traits' file not foundĪnd I get the same "tr1/type_traits file not found" error regardless of using g++, clang++, the linking flags from. In file included from /Users/myUser/widgetDir/wxWidgets-3.1.0/include/wx/string.h:37: In file included from /Users/myUser/widgetDir/wxWidgets-3.1.0/include/wx/memory.h:15: ![]() ![]() In file included from /Users/myUser/widgetDir/wxWidgets-3.1.0/include/wx/object.h:19: In file included from /Users/myUser/widgetDir/wxWidgets-3.1.0/include/wx/wx.h:15: L/Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_osx_cocoau_xrc-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_osx_cocoau_qa-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_baseu_net-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_osx_cocoau_html-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_osx_cocoau_adv-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_osx_cocoau_core-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_baseu_xml-3.1.a /Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/libwx_baseu-3.1.a -lpng -ljpeg -framework WebKit -lexpat -lwxregexu-3.1 -lwxtiff-3.1 -lz -lpthread -liconv -llzma You can simply work with library from the directory you compiled it using "./wx-config"Ĭlang++ -I/Users/myUser/widgetDir/wxWidgets-3.1.0/buildMac/lib/wx/include/osx_cocoa-unicode-static-3.1 -I/Users/myUser/widgetDir/wxWidgets-3.1.0/include -D_FILE_OFFSET_BITS=64 -D_WXMAC_ -D_WXOSX_ -D_WXOSX_COCOA_ At the very least it will help to know if the code works.Īlso notice that you don't have to install the library on you Mac. It might even be better (beneficial) to just copy you code over to the minimal sample folder, rename the minimal.cpp, rename you own source to minimal.cpp, compile and run. See how the sample does it (all commands after successful compilation) and when the code compiles do the same. Am I right?Īlso, keep in mind that you will have to create a bundle in order to test the code. I presume that you did install wx in /usr/local, by specifying the "-prefix=" option to configure. Did you build the library from the Terminal or from the Xcode?Ĥ. Can you show the exact command you use to compile you code?ģ. Notice that those 2 commands above can be run anywhere on your machine, not necessary in the directory you build the library.Ģ. Ld: symbol(s) not found for architecture x86_64Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation) WxPNGHandler::SaveFile(wxImage*, wxOutputStream&, bool) in libwx_osx_cocoau_core-3.1.a(corelib_imagpng.o) wxPNGHandler::SaveFile(wxImage*, wxOutputStream&, bool) in libwx_osx_cocoau_core-3.1.a(corelib_imagpng.o) Undefined symbols for architecture x86_64: G++ -mmacosx-version-min=10.5 -o minimal minimal_minimal.o -L/Users/calecampbell/Downloads/wxWidgets-svn/cales-build/lib -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_core-3.1 -lwx_baseu-3.1 -lwxtiff-3.1 -lpng -lz -ljpeg -framework WebKit -lwxregexu-3.1 -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lz -lpthread -liconv -llzma -lz -lpthread -liconv -llzma All I get when building the sample is the following:
0 Comments
Leave a Reply. |