cmake+QT+VTK常见错误及解决方法

来源:互联网 发布:淘宝企业店铺多少钱 编辑:程序博客网 时间:2024/05/17 06:39

1,安装环境

     cmake3.0+QT4.8.6+VTK5.10

        PS.VTK6.10以上只能配合使用QT5.0以上版本

2,编译安装

       参考:http://blog.csdn.net/www_doling_net/article/details/8532742

3、常见错误

1、Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.

  出现这种错误一般是QT的版本号选择不正确,仔细检测自己的版本号是4还是5.就可以解决。

2

    

     不能找到GLU32一般是设置的路径不对。注意检查安装路径。

3、cmake过程有很多是不能选的,例如那个build 文件那个,必须安装一个东西才能cmake过,因此尽量按照教程,有的要选的也要搞懂其真真的意思才能去选他。

4、有什么问题可以在下面留言,好多问题,都没能及时回忆起来。

0 0
原创粉丝点击