加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

CMake编译opencv各选项的含义

(2019-01-21 12:21:27)
分类: 机器视觉

https://img-blog.csdn.net/20161127170126450?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

 

Table 2: Options which introduce features into the library. All of these can be eitherONorOFF. 

https://img-blog.csdn.net/20161127170140794?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

https://img-blog.csdn.net/20161127170215726?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

 

Table 3: Options passed by CMake to the compiler. 

https://img-blog.csdn.net/20161127170220389?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

 

Table 4: ‘Build’ options control exactly what gets created at compile time. All of these can be either ONorOFF. In most all cases the default is OFF 

https://img-blog.csdn.net/20161127170225226?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

 

Table 5: 'Install' options determine what compiled executables get placed in your binaries area. 

https://img-blog.csdn.net/20161127170228976?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

       Not listed in these tables are additional variables which can be set to indicate the locations of various libraries (e.g., libjasper, etc.) in such case as they are not in their default locations. For more information on these more obscure options, a visit to the online documentation at http://opencv.org is recommended.

 

示例:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=on -DWITH_PNG=on -DWITH_TIFF=on -DWITH_JPEG=on -DWITH_JASPER=on -DBUILD_SHARED_LIBS=off -DCMAKE_INSTALL_PREFIX=/usr/local/opencv ..

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有