小编ehu*_*ang的帖子

CMake无法找到OpenMP

我正在尝试使用OpenMP进行编译.我CMakeLists.txt包含这条线

find_package(OpenMP REQUIRED)

和CMake错误

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package openmp.

  Set openmp_DIR to the directory containing a CMake configuration file for
  openmp.  The file will have one of the following names:

    openmpConfig.cmake
    openmp-config.cmake
Run Code Online (Sandbox Code Playgroud)

检查我的文件系统,我看到我有/usr/share/cmake-2.8/Modules/FindOpenMP.cmake但没有openmpConfig.cmakeopenmp-config.cmake.我需要做些什么来解决这个问题?

cmake openmp

14
推荐指数
3
解决办法
2万
查看次数

我如何理解 boost 精神编译器错误

我正在尝试使用该no_skip指令来解析表单的输入:

state PASS
<tab> state FAIL
Run Code Online (Sandbox Code Playgroud)

ascii::blank用作我的船长。当我换行no_skip[ trans_assign_expr ]以解析选项卡时出现编译错误。

我如何修复这个错误,一般来说,我如何理解这些错误以便我可以修复未来的错误?boost Spirit 文档从未涵盖使用精神的这一方面:(

这是错误

在 /usr/include/boost/spirit/home/qi/nonterminal/grammar.hpp:18:0 包含的文件中,
                 来自 /usr/include/boost/spirit/include/qi_grammar.hpp:16,
                 从 ../src/RJstate.cpp:9:
/usr/include/boost/spirit/home/qi/nonterminal/rule.hpp: 在成员函数 'bool boost::spirit::qi::rule::parse(Iterator&, const Iterator&, Context&, const Skipper&, Attribute&) const [with Context = boost::spirit::context, boost::fusion::vector0 >, Skipper = boost::spirit::qi::detail::unused_skipper > >, Attribute = const boost::spirit::unused_type , Iterator = __gnu_cxx::__normal_iterator >, T1 = boost::proto::exprns_::expr >, 0l>, T2 = boost::spirit::unused_type, T3 = boost::spirit::unused_type, T4 = boost: :spirit::unused_type]':
/usr/include/boost/spirit/home/qi/reference.hpp:43:71: 从 'bool boost::spirit::qi::reference::parse(Iterator&, const Iterator&, Context&, const …

c++ boost compiler-errors boost-spirit

5
推荐指数
1
解决办法
1397
查看次数

未解决的 Qt 包含在 Eclipse 中的问题

Eclipse 无法找到 Qt 包含文件。同样,它无法为 Qt 类提供自动完成功能。

我做了项目 - >属性 - >路径和符号 - >包含 - >添加到Qt中的包含目录/usr/include/qt4/。这导致 Eclipse 识别某些特定的类,例如QString;但是,没有自动完成功能。

我在网上搜索过,但没有结果。如何将 Eclipse 索引 Qt 放入我的项目中?

编辑:2012 年 12 月 20 日

我已经解决了我自己的问题。看来包含问题的顺序。我放

'usr/include/qt4'
'usr/include/qt4/Qt'
'usr/include/qt4/QtCore'
'usr/include/qt4/QtGui'
Run Code Online (Sandbox Code Playgroud)

进入Project Properties -> C++ General -> Paths & Symbols。我重建并自动完成工作。

eclipse qt indexer

5
推荐指数
1
解决办法
5278
查看次数

标签 统计

boost ×1

boost-spirit ×1

c++ ×1

cmake ×1

compiler-errors ×1

eclipse ×1

indexer ×1

openmp ×1

qt ×1