caffe-windows icon indicating copy to clipboard operation
caffe-windows copied to clipboard

Unable to open 'libcaffe.lib'

Open Zumbalamambo opened this issue 8 years ago • 10 comments

I have got then following error while trying to build it

7>LINK : fatal error LNK1181: cannot open input file 'libcaffe.lib'
13>------ Build started: Project: upgrade_net_proto_binary, Configuration: Release x64 ------
13>  upgrade_net_proto_binary.cpp
12>  convert_mnist_siamese_data.cpp
12>LINK : fatal error LNK1181: cannot open input file 'libcaffe.lib'
8>LINK : fatal error LNK1181: cannot open input file 'libcaffe.lib'
14>------ Build started: Project: upgrade_net_proto_text, Configuration: Release x64 ------
15>------ Build started: Project: upgrade_solver_proto_text, Configuration: Release x64 ------
15>  upgrade_solver_proto_text.cpp
16>------ Build started: Project: caffe.binding, Configuration: Release x64 ------
16>  CaffeBinding.cpp
15>LINK : fatal error LNK1181: cannot open input file 'libcaffe.lib'
13>LINK : fatal error LNK1181: cannot open input file 'libcaffe.lib'
16>LINK : fatal error LNK1181: cannot open in
```put file 'libcaffe.lib'

Zumbalamambo avatar Jul 13 '17 10:07 Zumbalamambo

Build libcafffe first.

happynear avatar Jul 13 '17 14:07 happynear

thank u so much... can u please tell me how do I build it?

Zumbalamambo avatar Jul 13 '17 15:07 Zumbalamambo

is there any solution file for libcaffee ?

Zumbalamambo avatar Jul 13 '17 15:07 Zumbalamambo

Right click libcaffe project, then left click Build.

happynear avatar Jul 13 '17 16:07 happynear

I have built libcafffe. Now it says 2>LINK : fatal error LNK1104: cannot open file 'python35.lib' when i build solution file

Zumbalamambo avatar Jul 14 '17 07:07 Zumbalamambo

If you don't use pycaffe, you can close it in CommonSettings.props.

happynear avatar Jul 14 '17 15:07 happynear

I want pycaffe. I want to use caffe with python

Zumbalamambo avatar Jul 15 '17 09:07 Zumbalamambo

Then you need to modify the path of Python in CommonSettings.props.

happynear avatar Jul 15 '17 22:07 happynear

I did... but i got 2>LINK : fatal error LNK1104: cannot open file 'python35.lib'

Zumbalamambo avatar Jul 16 '17 01:07 Zumbalamambo

Another guy also reported this bug. It seems that boost cannot get the version of python correctly. My suggestion is to copy python_root/libs/python36.lib to python_root/libs/python35.lib.

happynear avatar Jul 17 '17 17:07 happynear