1, 在Mac OS上安装wxWidgets。
2, 创建Hello World
一个超级简单的说明,(日语)
http://qiita.com/ohisama@github/items/74101dc00ed25a976955
在Build Settings 中的User Header Search Paths中设置wxWidgets的include文件夹后,
出现编译错误,wx/setup.h file not found.
原来需要向include的search追加两个文件夹
http://www.wxwidgets.org/docs/faq/windows/#setuph
又出现一个
<tr1/type_traits>文件找不到的错误。
重新编译 wxWidgets 使用下面的configure
../configure --with-cocoa --without-subdirs --with-macosx-version-min=10.7 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk CXXFLAGS="-stdlib=libc++ -std=c++11" OBJCXXFLAGS="-stdlib=libc++ -std=c++11" CPPFLAGS="-stdlib=libc++" LDFLAGS="-stdlib=libc++" CXX=clang++ CXXCPP="clang++ -E" CC=clang CPP="clang -E" --enable-debug