happynear / caffe-windows

Configure Caffe in one hour for Windows users.
Other
1.32k stars 650 forks source link

building caffe issue fatal error LNK1104 cannot open file python36.lib #314

Open ardeal opened 5 years ago

ardeal commented 5 years ago

Hi, I tried to build caffe on Windows 10 and VS2015. The Python version on my computer is Python3.5, however, I encountered the following issue while building the code:

1>  libcaffe.vcxproj -> D:\code_cv\caffe\caffe_happynear\caffe-windows\windows\..\Build\x64\Debug\libcaffe.lib
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 ------
6>  convert_mnist_siamese_data.cpp
3>  convert_cifar_data.cpp
2>  caffe.cpp
5>  convert_mnist_data.cpp
4>  classification.cpp
8>  upgrade_net_proto_text.cpp
7>  upgrade_net_proto_binary.cpp
9>  upgrade_solver_proto_text.cpp
6>LINK : fatal error LNK1104: cannot open file 'python36.lib'
10>------ Build started: Project: caffe.binding, Configuration: Debug x64 ------
10>  CaffeBinding.cpp
3>LINK : fatal error LNK1104: cannot open file 'python36.lib'
5>LINK : fatal error LNK1104: cannot open file 'python36.lib'
8>LINK : fatal error LNK1104: cannot open file 'python36.lib'
7>LINK : fatal error LNK1104: cannot open file 'python36.lib'
4>LINK : fatal error LNK1104: cannot open file 'python36.lib'

Do you have any solution about the issue?

Thanks and Best Regards, Ardeal

ardeal commented 5 years ago

This issue is quite weird: if I change my python to 3.6, the issue on VS2015 is: LINK : fatal error LNK1104: cannot open file 'python35.lib'

however, If I change my python to 3.5, the issue on VS2015 is LINK : fatal error LNK1104: cannot open file 'python36.lib'

:):):)

SCUT-chenjia commented 5 years ago

I have the problem as you,the Python version on my computer is Python 3.5,the issue on VS2015 is: LINK : fatal error LNK1104: cannot open file 'python36.lib'. Have you sovled the problem?

ardeal commented 5 years ago

@SCUT-chenjia Yes, I have solved it. I remembered I tried to delete the build folder and re-generated everything to fixed this issue. But I didn't use this version of Caffe finally. I still used BVLC caffe which could be easily built on VS2015.

SCUT-chenjia commented 5 years ago

@ardeal Thanks,I'll try BVLC caffe

adeldaoud commented 5 years ago

I would like to install this Caffe version using Python 3.5 or higher. @SCUT-chenjia I tried deleting the build folder and re-generate everything but with no success. Do you or anyone else have specific instructions on how to accomplish this?

Thanks

ardeal commented 5 years ago

@adeldaoud , You could tried to log BUILD_python and python_version in the root CMakeLists.txt file to make sure they are set correctly.