c++ - capybara-webkit on yosemite g++: error: unrecognized command line option '-Xarch_x86_64' -
im having problem installing on osx 10.10 yosemite, running gcc4.9.2, qt 4.8.6 install via brew
gem install capybara-webkit building native extensions. take while... error: error installing capybara-webkit: error: failed build gem native extension. /usr/local/var/rbenv/versions/2.1.4/bin/ruby extconf.rb cd src/ && /usr/local/bin/qmake /usr/local/rbenv/gem/gems/capybara-webkit-1.3.1/src/webkit_server.pro -spec /usr/local/cellar/qt/4.8.6/mkspecs/macx-g++ -o makefile.webkit_server cd src/ && /applications/xcode.app/contents/developer/usr/bin/make -f makefile.webkit_server g++ -pipe -o2 -arch x86_64 -xarch_x86_64 -mmacosx-version-min=10.5 -wall -w -dqt_no_debug -dqt_webkit_lib -dqt_gui_lib -dqt_network_lib -dqt_core_lib -dqt_shared -i/usr/local/cellar/qt/4.8.6/mkspecs/macx-g++ -i. -i/usr/local/cellar/qt/4.8.6/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtcore.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtnetwork.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtgui.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/lib/qtwebkit.framework/versions/4/headers -i/usr/local/cellar/qt/4.8.6/include -ibuild -f/usr/local/cellar/qt/4.8.6/lib -x c++-header -c stable.h -o build/webkit_server.gch/c++ g++: error: unrecognized command line option '-xarch_x86_64' make[1]: *** [build/webkit_server.gch/c++] error 1 make: *** [sub-src-webkit_server-pro-make_default-ordered] error 2 command 'make' failed
i had same problem using gcc installed via macports (tested several versions gcc5). solution me using g++
supplied xcode command line tools. uninstalled macports gcc versions. below version details of g++
command worked.
$ g++ --version configured with: --prefix=/applications/xcode.app/contents/developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 apple llvm version 6.0 (clang-600.0.51) (based on llvm 3.5svn) target: x86_64-apple-darwin13.4.0 thread model: posix
a similar problem asked here: qt creator adds -xarch.
Comments
Post a Comment