博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cmake方式使用vlfeat
阅读量:4983 次
发布时间:2019-06-12

本文共 1159 字,大约阅读时间需要 3 分钟。

目录

这里做了两件事:1.用cmake编译vlfeat 2. 一个cmake构建的项目中使用vlfeat。具体做法见本文下面的内容,代码则在https://github.com/zchrissirhcz/vlfeat.

  • environment statement
  • Compile vlfeat with cmake
  • Compile example project with cmake

environment statement

  • win10
  • visual studio 2015 (to support cmake project)
  • cmake (>3.10)
  • vlfeat
  • matlab

compile vlfeat with cmake

cd d:/work/vlfeatmkdir buildcd buildcmake -G "Visual Studio 14 Win64"

Then goto d:/work/vlfeat/build, open vlfeat.sln, choose Release as build type, and choose ALL_BUILD and INSTALL, run then repectively.

compile example project with cmake

1. make sure custom settings

Goto the folder d:/work/vlfeat/example/example-cmake-project (or copy this folder to your working folder), check the paths in CMakeLists.txt. You should change the vlfeat's include and library directories to yours.

Also, copy vl.dll from D:/work/vlfeat/build/Release to d:/work/vlfeat/example/example-cmake-projects.

2. compile and run

Run compile.bat.

Note: you may see compile.bat and change it to linux scripts.

Then, goto its build folder and open example-cmake-project.sln. It will open Visual Studio.

Then run it.

转载于:https://www.cnblogs.com/zjutzz/p/9153399.html

你可能感兴趣的文章
字符串反混淆实战 Dotfuscator 4.9 字符串加密技术应对策略
查看>>
单例模式
查看>>
Robotium源码分析之Instrumentation进阶
查看>>
Android 交错 GridView
查看>>
(2)把BlackBerry作为插件安装到已有的Eclipse中
查看>>
VUE-es6
查看>>
MySQL-5.7 高阶语法及流程控制
查看>>
C++学习笔记(十)——向上造型
查看>>
2017/6/16
查看>>
LeetCode 445——两数相加 II
查看>>
预备作业03 20162308马平川
查看>>
【Java】嵌套For循环性能优化案例
查看>>
面试了一个开发人员
查看>>
软件工程及软件项目开发流程
查看>>
关于android4.3 bluetooth4.0的那些事儿
查看>>
嵌入式成长轨迹14 【嵌入式环境及基础】【Linux下的C编程 上】【gcc、gdb和GNU Make】...
查看>>
C语言讲义——变量的输出
查看>>
shell脚本 ----每天学一点shell
查看>>
FZU2150 :Fire Game (双起点BFS)
查看>>
php_常用操作_读取文件_数据库操作
查看>>