2017-05-25 70 views
0

期間加入我想開發使用Qt平臺ROS的UI。但是當我嘗試在柳絮工作區運行cmake出現在終端以下錯誤:prase錯誤而升壓cmake的

#### 
#### Running command: "make cmake_check_build_system" in "/home/prabin/QT_point/rosqt_ws/build" 
#### Running command: "make -j4 -l4" in "/home/prabin/QT_point/rosqt_ws /build" 
#### 
[ 4%] Generating include/qtros/moc_main_window.cxx 
[ 9%] Generating include/qdude/moc_qnode.cxx 
[ 13%] Generating include/qdude/moc_main_window.cxx 
[ 18%] Generating include/qtros/moc_qnode.cxx 

usr/include目錄/升壓/ type_traits /細節/ has_binary_operator.hp:50:在 「BOOST_JOIN」 解析錯誤 qdude/CMakeFiles/qdude.dir/build.make:77:配方目標 'qdude /包括/ qdude/moc_qnode.cxx' 失敗

任何想法是什麼問題?

screenshot

回答

0

這個錯誤 - usr/include目錄/升壓/ type_traits /細節/ has_binary_operator.hp:50:在 「BOOST_JOIN」 解析錯誤發生對我來說,當我試圖ROS動力學集成到Qt。

它可以通過添加以下兩行之間在您的.h或.HPP文件包括解決

#ifndef Q_MOC_RUN 
#endif