QT5.7+CMAKE+BenchMark+TSR搭建TSR平台
2016-06-28 14:49
423 查看
由于工作需要,开始了解TSR检测算法了,同事在网上收到了BenchMark上有训练图像数据,源代码等等,非常好的一个网站,对于刚开始做这块的人来讲,是一个非常不错的开始: http://benchmark.ini.rub.de/?section=gtsrb&subsection=dataset 按照上面所述的,要搭建测试环境需要QT+Cmake,按照网上所说的把QT和Cmake都安装好之后,用cmake编辑tsr-analysis-src时,总说找不到所需的*.cmake,错误类似如下:
CMake Warning at CMakeLists.txt:5 (FIND_PACKAGE):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
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.
这个错误折磨我一天的时间,找来找去都说在http://doc.qt.io/qt-5/cmake-manual.html网站上说如何解决,但是此网站上说QT2.8.11.版本以上的都自带这个找路径的功能了,所以我看过来看过去,就是不知道该怎么办,后来在这个网址上找到了一句话,尝试着讲set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\\")这句话加到D:\traffic\tsr-analysis-src下的CMakeLists.txt中,竟然神奇的通过了,我在开始也收到了这个解决办法,但是一直不知道在哪尝试,还以为要在qt上做什么东东,真是虐啊!
下面把帮我解决问题的两个网址附上,感谢他们! http://www.cppblog.com/Error/archive/2013/04/13/199407.aspx http://stackoverflow.com/questions/15639781/how-to-find-qt5-cmake-module-on-windows
CMake Warning at CMakeLists.txt:5 (FIND_PACKAGE):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
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.
这个错误折磨我一天的时间,找来找去都说在http://doc.qt.io/qt-5/cmake-manual.html网站上说如何解决,但是此网站上说QT2.8.11.版本以上的都自带这个找路径的功能了,所以我看过来看过去,就是不知道该怎么办,后来在这个网址上找到了一句话,尝试着讲set (CMAKE_PREFIX_PATH "C:\\Qt\\Qt5.0.1\\5.0.1\\msvc2010\\")这句话加到D:\traffic\tsr-analysis-src下的CMakeLists.txt中,竟然神奇的通过了,我在开始也收到了这个解决办法,但是一直不知道在哪尝试,还以为要在qt上做什么东东,真是虐啊!
下面把帮我解决问题的两个网址附上,感谢他们! http://www.cppblog.com/Error/archive/2013/04/13/199407.aspx http://stackoverflow.com/questions/15639781/how-to-find-qt5-cmake-module-on-windows
相关文章推荐
- cmake clion 构建cocos2dx 应用程序并编译ios mac android
- 使用CMake来构建STM32工程
- OpenCV配置,从来没有这么简单!
- Ubuntu上安装Qt5
- MySQL CMake参数说明手册
- CMake 使用方法
- 用 cmake 构建Qt工程(对比qmake进行学习)
- CMake 手册详解(一)
- 一起学习CMake – 01
- Linux make与cmake的区别
- 利用 CMake 和 NDK 交叉编译 Android 下的可执行程序
- MySQL 安装 CMake Error CMAKE_CXX_COMPILER not set
- MySQL5.5安装出现CMake错误找不到CMakelists.txt原因
- 在vc6中使用PCRE-8.33
- 在mac下使用qt5连接mysql5.7
- centos6.3 INSTALL QT5.0 ERROR
- Qt5 Release 发布
- VMware7.1.4 + Centos6.5 + QT5.2.1 for android 开发环境配置
- Qt + opencv +mac
- QT5 QList<QImage> 中后面数据将前面数据覆盖问题的解决方案