با سلام و احترام
می خواستم یک برنچ از کفی اصلاح شده گیت هاب کامپایل کنم،
اقای حسن پور لطف کردند راهنمایی کردن :سوال من و پاسخ ایشان در لینک زیر هست:
http://qa.deeplearning.ir/3158/خطا-در-نصب-نسخه-اصلاح-شده-caffe
حالا در ادامه تغییرات زیر رو انجام دادم:
1:اضافه کردن فایل های زیر در فولدر cmake:
WindowsCreateLinkHeader.cmake
WindowsDownloadPrebuiltDependencies.cmake
CaffeGetPrerequisites.cmake
TargetResolvePrerequesites.cmake
2:اضافه کردن export.hpp.in به فولدر external در cmake
3:اضافه کردن دو تا هدر زیر به فایل cmakelist کفی اصلاح شده(از کفی کامپایل شده خودم)
include(cmake/WindowsCreateLinkHeader.cmake)
include(cmake/TargetResolvePrerequesites.cmake)
الان ارور مرحله ی قبل رو رد کرده با تغییراتی که انجام دادم و ارور دیگه ایی میده که در ادامه آمده:
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION = 14
INFO: WITH_NINJA = 0
INFO: CMAKE_GENERATOR = "Visual Studio 14 2015 Win64"
INFO: CPU_ONLY = 0
INFO: CUDA_ARCH_NAME = Auto
INFO: CMAKE_CONFIG = Release
INFO: USE_NCCL = 0
INFO: CMAKE_BUILD_SHARED_LIBS = 0
INFO: PYTHON_VERSION = 3
INFO: BUILD_PYTHON = 1
INFO: BUILD_PYTHON_LAYER = 1
INFO: BUILD_MATLAB = 0
INFO: PYTHON_EXE = "python"
INFO: RUN_TESTS = 0
INFO: RUN_LINT = 0
INFO: RUN_INSTALL = 1
INFO: ============================================================
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Checking if C linker supports --verbose
-- Checking if C linker supports --verbose - yes
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Checking if CXX linker supports --verbose
-- Checking if CXX linker supports --verbose - yes
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:1395 (_Boost_MISSING_DEPENDENCIES)
cmake/Dependencies.cmake:8 (find_package)
CMakeLists.txt:48 (include)
CMake Warning at C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:1395 (_Boost_MISSING_DEPENDENCIES)
cmake/Dependencies.cmake:8 (find_package)
CMakeLists.txt:48 (include)
CMake Warning at C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:743 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:842 (_Boost_COMPONENT_DEPENDENCIES)
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:1395 (_Boost_MISSING_DEPENDENCIES)
cmake/Dependencies.cmake:8 (find_package)
CMakeLists.txt:48 (include)
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/FindBoost.cmake:1753 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
cmake/Dependencies.cmake:8 (find_package)
CMakeLists.txt:48 (include)
-- Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY)
CMake Error at C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/ExternalProject.cmake:1745 (message):
error: could not find git for clone of gflags
Call Stack (most recent call first):
C:/Users/somaye/Anaconda3/envs/python35/Library/share/cmake-3.6/Modules/ExternalProject.cmake:2473 (_ep_add_download_command)
cmake/External/gflags.cmake:26 (ExternalProject_Add)
cmake/External/glog.cmake:2 (include)
cmake/Dependencies.cmake:38 (include)
CMakeLists.txt:48 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/somaye/Desktop/caffe-augmentation-master/caffe-augmentation-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/somaye/Desktop/caffe-augmentation-master/caffe-augmentation-master/build/CMakeFiles/CMakeError.log".
ERROR: Configure failed![][1]
در حال حاضر فایل های cmakefile دو نسخه کفی (کفی کامپایل شده برروی سیستم خودم و کفی اصلاح شده) تفاوت های دیگری دارند که نمی دونم باید چی کارشون کنم،سرچ هم کردم اما باز راهی پیدا نکردم.
جاهایی که فایل cmakefile ها متفاوت هستند در تصویر زیر نشان داده شده است(در تصویر نشان داده شده سمت راست cmakefile برنچ کامپایل شده خودم و سمت چپ برنج اصلاح شده می باشد.)
با سپااس