Caffe Windows boost mismatch

1,345 views
Skip to first unread message

Isaac Sherman

unread,
Jul 21, 2016, 11:24:10 AM7/21/16
to Caffe Users
Following the instructions here: https://github.com/BVLC/caffe/tree/windows
I am using Visual Studio 2015.
I have boost packages installed via NuGet.  It's using version 1.59, vc120.  Unfortunately, the linker is looking for 1.59 vc140.  Where do I need to change things to get it to point to the right version?

At least, that's what think these errors mean:
Severity Code Description Project File Line Source Suppression State
Error LNK1104 cannot open file 'libboost_thread-vc140-mt-gd-1_59.lib' convert_mnist_data C:\caffe-windows\windows\convert_mnist_data\LINK 1 Build
Error LNK1104 cannot open file 'libboost_thread-vc140-mt-gd-1_59.lib' convert_cifar_data C:\caffe-windows\windows\convert_cifar_data\LINK 1 Build
Error LNK1104 cannot open file 'libboost_thread-vc140-mt-gd-1_59.lib' convert_mnist_siamese_data C:\caffe-windows\windows\convert_mnist_siamese_data\LINK 1 Build
Error LNK1104 cannot open file 'libboost_date_time-vc140-mt-gd-1_59.lib' classification C:\caffe-windows\windows\classification\LINK 1 Build
Error LNK1104 cannot open file 'libboost_date_time-vc140-mt-gd-1_59.lib' upgrade_solver_proto_text C:\caffe-windows\windows\upgrade_solver_proto_text\LINK 1 Build
Error LNK1104 cannot open file 'libboost_date_time-vc140-mt-gd-1_59.lib' upgrade_net_proto_text C:\caffe-windows\windows\upgrade_net_proto_text\LINK 1 Build
Error LNK1104 cannot open file 'libboost_date_time-vc140-mt-gd-1_59.lib' upgrade_net_proto_binary C:\caffe-windows\windows\upgrade_net_proto_binary\LINK 1 Build
Error LNK1104 cannot open file 'libboost_python-vc140-mt-gd-1_59.lib' caffe C:\caffe-windows\windows\caffe\LINK 1 Build
Error LNK1104 cannot open file 'libboost_filesystem-vc140-mt-gd-1_59.lib' compute_image_mean C:\caffe-windows\windows\compute_image_mean\LINK 1 Build
Error LNK1104 cannot open file 'libboost_filesystem-vc140-mt-gd-1_59.lib' convert_imageset C:\caffe-windows\windows\convert_imageset\LINK 1 Build
Error LNK1104 cannot open file 'libboost_filesystem-vc140-mt-gd-1_59.lib' extract_features C:\caffe-windows\windows\extract_features\LINK 1 Build
Error LNK1104 cannot open file 'libboost_date_time-vc140-mt-gd-1_59.lib' matcaffe C:\caffe-windows\windows\matcaffe\LINK 1 Build
Error LNK1104 cannot open file 'libboost_python-vc140-mt-gd-1_59.lib' pycaffe C:\caffe-windows\windows\pycaffe\LINK 1 Build


Isaac Sherman

unread,
Jul 22, 2016, 9:36:07 AM7/22/16
to Caffe Users
Never figured out a way around the cross-compiler compatibility.  Until the boost libraries are available from the modern compiler, it seems you need to compile windows-caffe with VC120.  I'm still using Visual Studio 2015, but the VC120 toolset from 2013 is required- this is currently publicly available through windows, and requires a separate download- ie., VS 2015 does not come with an installer for the 2013 tools.  
Message has been deleted

DSJ

unread,
Aug 22, 2016, 10:38:30 PM8/22/16
to Caffe Users

You should make boost packages on your own.
Please install boost for Windows and add them into your configuration settings(additional include directories, additional library dependencies).
For VS2015, you may find an instruction to use 

But I have trouble with other linking error with caffe project(libcaffe has been already built). Does anybody know about this?

relea...@gmail.com

unread,
Mar 25, 2017, 3:10:01 AM3/25/17
to Caffe Users
hi can you explain how to make boost packages for vs2015? I also met same problem : cannnot open libboost_python-vc140... no idea how to fix it

在 2016年8月23日星期二 UTC+8上午10:38:30,DSJ写道:
Reply all
Reply to author
Forward
0 new messages