Closed xiaobin-yang closed 6 years ago
There is no error detail in that log, probably is located some lines above. Please attach the compilation error exactly where it happen.
Thanks.
You can use the --verbose
option to brew install
to see the whole compilation log. You can also use brew gist-logs gazebo
to upload all the logs, then just post a link here.
I'm trying to get the FRCSim running with macOS Sierra 10.12.2 I have what seems to be the same problem. Here's my console output. Thanks!
Ok Thanks. Looks like this is the problem:
[ 71%] Building CXX object gazebo/gui/CMakeFiles/gazebo_gui.dir/Actions.cc.o
cd "/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/build/gazebo/gui" && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBUILDING_DLL -DBUILDING_DLL_GZ_GUI -DHAVE_OPENGL -DLIBBULLET_VERSION=2.85 -DLIBBULLET_VERSION_GT_282 -DMAC_OS_X_VERSION=1080 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQWT_DLL -Dgazebo_gui_EXPORTS -I"/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/test/gtest/include" -I"/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1" -I"/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/build" -I"/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/deps" -isystem /usr/local/include -isystem /usr/local/Cellar/tinyxml2/4.0.1/include -isystem /usr/local/include/ignition/msgs0 -isystem /usr/local/Cellar/ignition-math2/2.7.0/include/ignition/math2 -I/usr/local/Cellar/ignition-transport3/3.0.1/include/ignition/transport3 -I/usr/local/Cellar/zeromq/4.2.1/include -I/usr/local/Cellar/ossp-uuid/1.6.2_2/include/ossp -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include/OGRE/RTShaderSystem -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include/OGRE -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include/OGRE/Terrain -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include/OGRE/Paging -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_2/include/OGRE/Overlay -isystem /usr/local/Cellar/sdformat4/4.2.0_3/include/sdformat-4.2 -isystem /usr/local/opt/tinyxml/include -iframework /usr/local/opt/qt5/lib -isystem /usr/local/opt/qt5/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt5/./mkspecs/macx-clang -I/usr/local/lib/qwt.framework/Headers -isystem /usr/local/opt/qt5/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -std=c++11 -stdlib=libc++ -stdlib=libc++ -Wall -Wextra -Wno-long-long -Wno-unused-value -Wfloat-equal -Wshadow -Wswitch-default -Wmissing-include-dirs -pedantic -std=c++11 -O3 -DNDEBUG -mssse3 -msse3 -msse -msse2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -fPIC -fPIC -F/usr/local/lib -std=c++11 -fPIC -std=gnu++11 -o CMakeFiles/gazebo_gui.dir/Actions.cc.o -c "/tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/gazebo/gui/Actions.cc"
In file included from /tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/gazebo/gui/Actions.cc:18:
In file included from /tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/gazebo/gui/Actions.hh:22:
In file included from /tmp/gazebo8-20170122-49455-19cwgg6/gazebo-8.0.0~beta1/gazebo/gui/qt.h:36:
In file included from /usr/local/opt/qt5/include/QtGui/QWindow:1:
In file included from /usr/local/opt/qt5/lib/QtGui.framework/Headers/qwindow.h:50:
In file included from /usr/local/opt/qt5/include/QtGui/qsurface.h:44:
/usr/local/opt/qt5/include/QtGui/qsurfaceformat.h:129:24: error: token is not a valid binary operator in a preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 2)
~~~~~~~~~~~~~~~~~~~^
By any chance do you have qt4 and qt5 installed in the same system? Could you attach the versions of: Xcode, Qt5 that you are using and the output of qmake -query? Thanks.
I just so happen to be in the middle of updating Xcode. It was updated just before I tried to install gazebo, though. So it was the latest as ofJanuary 22, 2017.
» brew info qt5
qt5: stable 5.7.1 (bottled), HEAD [keg-only]
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt5/5.7.1_1 (8,273 files, 242.5M)
Poured from bottle on 2017-01-22 at 13:42:46
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt5.rb
» qmake -query
QT_INSTALL_PREFIX:/usr/local/Cellar/qt/4.8.7_2
QT_INSTALL_DATA:/usr/local/Cellar/qt/4.8.7_2
QT_INSTALL_DOCS:/usr/local/Cellar/qt/4.8.7_2/doc
QT_INSTALL_HEADERS:/usr/local/Cellar/qt/4.8.7_2/include
QT_INSTALL_LIBS:/usr/local/Cellar/qt/4.8.7_2/lib
QT_INSTALL_BINS:/usr/local/Cellar/qt/4.8.7_2/bin
QT_INSTALL_PLUGINS:/usr/local/Cellar/qt/4.8.7_2/plugins
QT_INSTALL_IMPORTS:/usr/local/Cellar/qt/4.8.7_2/imports
QT_INSTALL_TRANSLATIONS:/usr/local/Cellar/qt/4.8.7_2/translations
QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt
QT_INSTALL_EXAMPLES:/usr/local/Cellar/qt/4.8.7_2/examples
QT_INSTALL_DEMOS:/usr/local/Cellar/qt/4.8.7_2/demos
QMAKE_MKSPECS:/usr/local/Cellar/qt/4.8.7_2/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.7
Is it safe to replace qt4 with qt5 with the frcsim-gazebo-models-4, or will there be larger code impact? Is there a nifty online command to do this for FRCSIM on Mac OSX? (I am not a ruby, perl, curl or brew guru). Thanks!
Is there a formula for frcsim
that you are using?
I'm closing this since I haven't heard any responses. Please re-open if the issue persists.