Open LMerCy opened 6 years ago
2017.12.25 I have finally solved the problem, Instead of building with build_windows.bat, i choose to build with caffe2.sln(vs2015), by this i find i haven't include python27.lib in caffe2 project. I think this is the reseason why i cannnot build first time.
You've made my life easier LMerCy! It helps, i have put python27.lib into few project directories and built with build_windows.bat successfully.
For those who didn't know - first edit build_windows.bat file flag -DBUILD_PYTHON=ON.
could you please tell me how to include python27.lib in caffe2?
It was in few places: -(main directory) caffe2/ -(main directory) caffe2/build/ -(main directory) caffe2/build/caffe2
I'm not sure in which directory lib should be, so i put into all of them
Just copy
python27.lib
to -(main directory) caffe2/build/caffe2
,
it works.
e.g. (C:\pytorch\build\caffe2)
If this is a build issue, please fill out the template below.
System information
CMake summary output
General: -- Git version : v0.8.1-877-g1bcd36d-dirty -- System : Windows -- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- C++ compiler version : 19.0.24215.1 -- Protobuf compiler : c:\caffe2\scripts..\build_host_protoc\bin\protoc.exe -- CXX flags : /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP /bigobj -- Build type : Release -- Compile definitions :
-- BUILD_BINARY : ON -- BUILD_PYTHON : ON -- Python version : 2.7.14 -- Python library : C:/ProgramData/Anaconda2/libs/python27.lib -- BUILD_SHARED_LIBS : OFF -- BUILD_TEST : OFF -- USE_ATEN : OFF -- USE_ASAN : OFF -- USE_CUDA : OFF -- USE_EIGEN_FOR_BLAS : 1 -- USE_FFMPEG : OFF -- USE_GFLAGS : OFF -- USE_GLOG : OFF -- USE_GLOO : OFF -- USE_LEVELDB : OFF -- USE_LITE_PROTO : OFF -- USE_LMDB : OFF -- USE_METAL : OFF -- USE_MKL : -- USE_MOBILE_OPENGL : OFF -- USE_MPI : OFF -- USE_NCCL : OFF -- USE_NERVANA_GPU : OFF -- USE_NNPACK : OFF -- USE_OBSERVERS : ON -- USE_OPENCV : OFF -- USE_OPENMP : OFF -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_THREADS : ON -- USE_ZMQ : OFF CMake Warning at CMakeLists.txt:159 (message): Generated cmake files are only fully tested if one builds with system glog, gflags, and protobuf.
CMake Warning at CMakeLists.txt:192 (message): Generated cmake files are only available when building shared libs.
**** Summary ****