vs2010

来源:互联网 发布:android 播放网络视频 编辑:程序博客网 时间:2024/05/16 14:46
预备: caffe windows vs2013 使用博客,http://blog.csdn.net/happynear/article/details/45372231, 可以参考这个来安装vs2010


   caffe for windows vs2012安装使用, http://download.csdn.net/detail/zhangbo123/8644789 , 这里面有每个库编译的详细说明


, 这里可以参考这个库。
   window编译caffe 经验博客,写的比较好。常用的每个库都有提及到。http://blog.csdn.net/hua_007/article/details/42741401


1、 boost库
    http://www.boost.org/users/history/version_1_59_0.html 
    下载下来用 cmake编译
2、 protobuf 库
   博客地址 http://blog.csdn.net/kandyer/article/details/10042715 
   该博客有下载地址和编译过程,重点参考这个博客
   protobuf 开发者指南博客,写的特别好: http://blog.163.com/jiang_tao_2010/blog/static/12112689020114305013458/
   里面有cmake 编译 


3、 glog Google日志库
   下载编译博客 http://www.linuxidc.com/Linux/2013-07/87439.htm
    这个博客写的特别好。 实现了各种
    直接通过。 
4、 gflags Google开源库 命令行参数解析工具,
    下载地址 https://github.com/gflags/gflags 
    使用博客  http://blog.chinaunix.net/uid-20196318-id-3440642.html 里面有下载地址
    上边博客英文版如何使用这个库 http://gflags.googlecode.com/svn/trunk/doc/gflags.html


5、 HDF5 
    官方地址 http://www.hdfgroup.org/HDF5/release/obtainsrc.html ,里面有下载位置


6、 leveldb 数据库 能够处理十亿级别规模Key-Value型数据持久性存储的C++ 程序库
     官方地址 http://leveldb.org/
     库下载地址: https://github.com/google/leveldb 
     db 官方使用说明: https://github.com/Level/levelup/blob/master/README.md
     需要cmake.
7、 Snappy 是一个 C++ 的用来压缩和解压缩的开发包,其目标不是最大限度压缩,而且不兼容其他压缩格式。Snappy 旨在提供高速压  


          缩速度和合理的压缩率。
    下载地址 https://github.com/google/snappy
    http://www.infoq.com/cn/news/2011/04/Snappy/ 博客介绍 这个库,
     https://snappy.angeloflogic.com/downloads/
8、 lmdb 官方网站  https://lmdb.readthedocs.org/en/release/
    下载地址: https://hackage.haskell.org/package/lmdb
     英文介绍: http://symas.com/mdb/
     官网 http://symas.com/mdb/


#include "stdafx.h"




#include "glog/logging.h"  


#include <iostream>  
#include <vector>  
using namespace std;  
#pragma comment(lib,"libglog.lib")  




int _tmain(int argc, char* argv[])
{
// Initialize Google's logging library.  
google::InitGoogleLogging(argv[0]);  
google::SetLogDestination(google::INFO,"E://");  
// 设置日志路径  INFO WARNING ERROR FATAL  
// ...  
char str[20] = "hello log!";  
LOG(INFO) << "Found " << google::COUNTER <<endl;  
LOG(INFO) << str ;//<< " cookies";  
LOG(WARNING) << "warning test";  // 会输出一个Warning日志  
LOG(ERROR) << "error test";//会输出一个Error日志  
system("pause");
return 0;

}



1、 glog 编译成功
2、 gflag 通过cmake 也编译成功
3、 protobuf 安装http://download.csdn.net/detail/zhangbo123/8644789 这个博客,这个博客上边是cmake 后的程序, 但是目前下


载的protobuf 没有vs工程, 所以只能 自己cmake , 但是自己cmake 提示很多错误。 


4、 hdf5  cmake 成功, ALL_BUILD成功, example 也成功, 但是有bin 没有lib , 


5 levelDB 这个cmake时出错,没有boost库, 参考这个 http://download.csdn.net/detail/zhangbo123/8644789文档, 但是需要先安


装boost库, 


6、 openblas   下载地址 http://sourceforge.net/projects/openblas/files/ , 下载win7 64位的系统。 
             window下 使用博客 http://blog.csdn.net/giselite/article/details/32094701, 


7、  boost库, 运行vs2010 cross tools command prompt 终端工具
               从终端进入boost库所在目录。C:\Users\173.104\Desktop\caffe0907\boost_1_59_0
               运行bootsrap.bat 产生64位的bjam.exe
               输入命令进行编译, 
              静态库 bjam --build-type=complete toolset=msvc-10.0 threading=multi link=satic  address-model=64
              共享库:bjam --build-type=complete toolset=msvc-10.0 threading=multi link=shared address-model=64


8 snappy  下载说明:https://snappy.angeloflogic.com/downloads/

0 0
原创粉丝点击