Visual Studio配置VLFeat库
2016-02-28 13:40
344 查看
These instructions show how to setup a basic VLFeat project with Visual C++ Express 2008 on Windows XP (32 bit). Instructions for other versions of Visual Studio should be similar.
First, we create a new project called
> Empty Project. Give your project a name and location (here
Next, we have to modify the project properties to include the VLFeat library and include directories. Right click on the project and select properties.
We want these settings to apply to both Debug and Release builds, so switch to all configurations.
Add an additional include path which points to the root of the VLFeat folder:
Add an additional library include path pointing to the
a dependency:
This will allow us to compile, but we will not be able to run, getting because
To remedy this, we add a post-build step which copies vl.dll to the debug or release folder. Since this only needs to be done once for each project, we could instead copy the file manually.
Now that we have created our project, add a new .cpp file (right click on Source Files and choose Add > New Item) with this code:
Build and run the project (Ctrl+F5). It should run correctly, and you should see this:
from: http://www.vlfeat.org/vsexpress.html
First, we create a new project called
vlfeat-client. Open Visual C++ Express 2008 and select File > New > Project and choose General
> Empty Project. Give your project a name and location (here
vlfeat-client) and click OK.
Next, we have to modify the project properties to include the VLFeat library and include directories. Right click on the project and select properties.
We want these settings to apply to both Debug and Release builds, so switch to all configurations.
Add an additional include path which points to the root of the VLFeat folder:
Add an additional library include path pointing to the
bin/w32folder in the distribution, and add
vl.dllas
a dependency:
This will allow us to compile, but we will not be able to run, getting because
vl.dllwill not be found:
To remedy this, we add a post-build step which copies vl.dll to the debug or release folder. Since this only needs to be done once for each project, we could instead copy the file manually.
Now that we have created our project, add a new .cpp file (right click on Source Files and choose Add > New Item) with this code:
extern "C" { #include <vl/generic.h> } int main (int argc, const char * argv[]) { VL_PRINT ("Hello world!\n") ; return 0; }
Build and run the project (Ctrl+F5). It should run correctly, and you should see this:
from: http://www.vlfeat.org/vsexpress.html
相关文章推荐
- [游戏资讯]《极品飞车16:亡命狂飙》配置需求公布
- 配置文件神器 typesafe conf 用法简介
- 配置文件神器 typesafe conf 用法简介
- 路由器备份配置
- 路由器的基本配置
- 路由器基础配置及传输协议
- 经典配置 Vlan篇
- 备份线路的配置
- 交换机如何配置 新手配置交换机详细教程
- 如何进行系统配置
- 路由器的配置与调试
- DOS下内存的配置
- IIS配置文件隐患
- Windows下Postgresql数据库的下载与配置方法
- redis中修改配置文件中的端口号 密码方法
- 解析如何在sqlserver代理中配置邮件会话
- C#自定读取配置文件类实例
- 运行Node.js的IIS扩展iisnode安装配置笔记
- Extjs4 GridPanel的主要配置参数详细介绍