wincaffe-error

本文详细介绍了Caffe深度学习框架的搭建过程与配置方法,包括解决NuGet包恢复问题及Python依赖库缺失导致的编译错误等常见问题。

nuget神器, 多看看CommonSettings.props文件, 以及vs2013工程管理的方式。。(哭。。。)


Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
1>------ Build started: Project: libcaffe, Configuration: Debug x64 ------
1>  ProtoCompile.cmd : Create proto temp directory "D:\WenyuLv\caffe-windows\caffe-windows\windows\..\src\caffe\proto\temp"
1>  ProtoCompile.cmd : Generating "D:\WenyuLv\caffe-windows\caffe-windows\windows\..\src\caffe\proto\temp\caffe.pb.h" and "D:\WenyuLv\caffe-windows\caffe-windows\windows\..\src\caffe\proto\temp\caffe.pb.cc"
1>  ProtoCompile.cmd : Create proto include directory
1>  ProtoCompile.cmd : Compare newly compiled caffe.pb.h with existing one
1>  FC: cannot open D:\WENYULV\CAFFE-WINDOWS\CAFFE-WINDOWS\WINDOWS\..\INCLUDE\CAFFE\PROTO\CAFFE.PB.H - No such file or folder
1>
1>  ProtoCompile.cmd : Move newly generated caffe.pb.h to "D:\WenyuLv\caffe-windows\caffe-windows\windows\..\include\caffe\proto\caffe.pb.h"
1>  ProtoCompile.cmd : and caffe.pb.cc to "D:\WenyuLv\caffe-windows\caffe-windows\windows\..\src\caffe\proto\caffe.pb.cc"
1>          1 file(s) moved.
1>          1 file(s) moved.
1>  blob.cpp
1>  common.cpp
1>  data_reader.cpp
1>  data_transformer.cpp
1>  internal_thread.cpp
1>  layer.cpp
1>  absval_layer.cpp
1>  accuracy_layer.cpp
1>  argmax_layer.cpp
1>  base_conv_layer.cpp
1>  base_data_layer.cpp
1>  batch_norm_layer.cpp
...
...
1>  tile_layer.cpp
1>  window_data_layer.cpp
1>  layer_factory.cpp
1>  net.cpp
1>  parallel.cpp
1>  caffe.pb.cc
1>  solver.cpp
1>  adadelta_solver.cpp
1>  adagrad_solver.cpp
1>  adam_solver.cpp
1>  nesterov_solver.cpp
1>  rmsprop_solver.cpp
1>  sgd_solver.cpp
1>  syncedmem.cpp
1>  benchmark.cpp
1>  blocking_queue.cpp
1>  cudnn.cpp
1>  db.cpp
1>  db_leveldb.cpp
1>  db_lmdb.cpp
1>  hdf5.cpp
1>  im2col.cpp
1>  insert_splits.cpp
1>  io.cpp
1>  math_functions.cpp
1>  signal_handler.cpp
1>  upgrade_proto.cpp
1>  libcaffe.vcxproj -> D:\WenyuLv\caffe-windows\caffe-windows\windows\..\Build\x64\Debug\libcaffe.lib
1>  BinplaceCudaDependencies : CPU only build, don't copy cuda dependencies.
2>------ Build started: Project: caffe, Configuration: Debug x64 ------
3>------ Build started: Project: convert_cifar_data, Configuration: Debug x64 ------
4>------ Build started: Project: classification, Configuration: Debug x64 ------
5>------ Build started: Project: convert_mnist_data, Configuration: Debug x64 ------
6>------ Build started: Project: convert_mnist_siamese_data, Configuration: Debug x64 ------
7>------ Build started: Project: upgrade_net_proto_binary, Configuration: Debug x64 ------
8>------ Build started: Project: upgrade_net_proto_text, Configuration: Debug x64 ------
9>------ Build started: Project: upgrade_solver_proto_text, Configuration: Debug x64 ------
2>  caffe.cpp
3>  convert_cifar_data.cpp
4>  classification.cpp
5>  convert_mnist_data.cpp
6>  convert_mnist_siamese_data.cpp
7>  upgrade_net_proto_binary.cpp
9>  upgrade_solver_proto_text.cpp
8>  upgrade_net_proto_text.cpp
5>LINK : fatal error LNK1104: cannot open file 'python27.lib'
3>LINK : fatal error LNK1104: cannot open file 'python27.lib'
6>LINK : fatal error LNK1104: cannot open file 'python27.lib'
7>LINK : fatal error LNK1104: cannot open file 'python27.lib'
8>LINK : fatal error LNK1104: cannot open file 'python27.lib'
9>LINK : fatal error LNK1104: cannot open file 'python27.lib'
4>LINK : fatal error LNK1104: cannot open file 'python27.lib'
2>LINK : fatal error LNK1104: cannot open file 'python27.lib'
10>------ Build started: Project: compute_image_mean, Configuration: Debug x64 ------
11>------ Build started: Project: convert_imageset, Configuration: Debug x64 ------
12>------ Build started: Project: extract_features, Configuration: Debug x64 ------
13>------ Build started: Project: test_all, Configuration: Debug x64 ------
14>------ Build started: Project: pycaffe, Configuration: Debug x64 ------
15>------ Build started: Project: matcaffe, Configuration: Debug x64 ------
15>  Skipping project matcaffe, Matlab support is not enabled in CommonSettings.props.
10>  compute_image_mean.cpp
11>  convert_imageset.cpp
14>  PythonPreBuild.cmd : Create output directories for python scripts.
14>  PythonPreBuild.cmd : Create dummy __init__.py file
14>  PythonPreBuild.cmd : Generating src\caffe\proto\caffe.pb.h with python bindings
12>  extract_features.cpp
13>  test_accuracy_layer.cpp
13>  test_argmax_layer.cpp
13>  test_batch_norm_layer.cpp
13>  test_batch_reindex_layer.cpp
...
13>  test_hinge_loss_layer.cpp
13>  test_im2col_layer.cpp
13>  test_image_data_layer.cpp
13>  test_infogain_loss_layer.cpp
13>  test_inner_product_layer.cpp
14>  _caffe.cpp
10>LINK : fatal error LNK1104: cannot open file 'python27.lib'
11>LINK : fatal error LNK1104: cannot open file 'python27.lib'
13>  test_internal_thread.cpp
13>  test_io.cpp
13>  test_layer_factory.cpp
13>  test_lrn_layer.cpp
13>  test_math_functions.cpp
13>  test_maxpool_dropout_layers.cpp
13>  test_memory_data_layer.cpp
13>  test_multinomial_logistic_loss_layer.cpp
13>  test_mvn_layer.cpp
13>  test_net.cpp
13>  test_neuron_layer.cpp
13>  test_platform.cpp
13>  test_pooling_layer.cpp
13>  test_power_layer.cpp
13>  test_protobuf.cpp
13>  test_random_number_generator.cpp
13>  test_reduction_layer.cpp
12>LINK : fatal error LNK1104: cannot open file 'python27.lib'
13>  test_reshape_layer.cpp
13>  test_scale_layer.cpp
13>  test_sigmoid_cross_entropy_loss_layer.cpp
13>  test_slice_layer.cpp
13>  test_softmax_layer.cpp
13>  test_softmax_with_loss_layer.cpp
13>  test_solver.cpp
13>  test_solver_factory.cpp
13>  test_split_layer.cpp
13>  test_spp_layer.cpp
13>  test_stochastic_pooling.cpp
13>  test_syncedmem.cpp
13>  test_tanh_layer.cpp
14>..\..\python\caffe\_caffe.cpp(8): fatal error C1083: Cannot open include file: 'numpy/arrayobject.h': No such file or directory
13>  test_threshold_layer.cpp
13>  test_tile_layer.cpp
13>  test_upgrade_proto.cpp
13>  test_util_blas.cpp
13>  gtest-all.cpp

python看清楚是 minconda还是anaconda,在setting中设置


修改代码在solution-libcaff里卖弄的include和src和cu文件夹添加

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值