Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ardeal opened this issue Mar 6, 2019 · 6 comments
Open

Comments

@ardeal
Copy link

ardeal commented Mar 6, 2019

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
Copy link
Author

ardeal commented Mar 6, 2019

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
Copy link

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
Copy link
Author

ardeal commented Mar 13, 2019

@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
Copy link

@ardeal
Thanks,I'll try BVLC caffe

@adeldaoud
Copy link

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
Copy link
Author

ardeal commented Mar 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants