سلام
من بعد از دانلود libraries_v140_x64_py27_1.0.1.tar برای نصب از اسکریپت زیر استفاده کردم .
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" amd64
set CAFFE_DEPENDENCIES=G:\PHD\Thesis\Code\caffe-windows\libraries
set CMAKE_GENERATOR="Ninja"
set CMAKE_CONFIGURATIONURATION=Release
cmake -G%CMAKE_GENERATOR% -DBLAS=Open -DCMAKE_BUILD_TYPE=%CMAKE_CONFIGURATIONURATION% -DBUILD_SHARED_LIBS=OFF -DCUDNN_ROOT=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0 -C %CAFFE_DEPENDENCIES%\caffe-builder-config.cmake ..\
cmake --build . --config %CMAKE_CONFIGURATIONURATION%
cmake --build . --config %CMAKE_CONFIGURATIONURATION% --target install
if ERRORLEVEL 1 (
echo Build failed
exit /b 1
)
:: Build and exectute the tests
if "%CMAKE_BUILD_SHARED_LIBS%"=="OFF" (
:: Run the tests only for static lib as the shared lib is causing an issue.
cmake --build . --target runtest --config %CMAKE_CONFIGURATION%
if ERRORLEVEL 1 (
echo Tests failed
exit /b 1
)
:: Run python tests only in Release build since
:: the _caffe module is _caffe-d is debug
if "%CMAKE_CONFIGURATION%"=="Release" (
:: Run the python tests
cmake --build . --target pytest
if ERRORLEVEL 1 (
echo Python tests failed
exit /b 1
)
)
)
:: Lint
cmake --build . --target lint --config %CMAKE_CONFIGURATION%
if ERRORLEVEL 1 (
echo Lint failed
exit /b 1
)
تمام مراحل با موفقیت پیش میره اما دو تا مشکل وجود داره یکی در ابتدای اجرا اسکریپت گزارش زیر داده می شود که نمیدونم مشکلی داره یا نه
-- Looking for pthread.h
-- Looking for pthread.h - not found
یکی هم خطا زیر است که با عملیات رو با متوقف میکنه
[1/1] cmd.exe /C "cd /D G:\PHD\Thesis\Code\caffe-windows\build &&
"C:\Program Files\CMake\bin\cmake.exe"
-DPYTHON_EXECUTABLE=F:/local/Anaconda2/python.exe -P
G:/PHD/Thesis/Code/caffe-windows/cmake/lint.cmake"
FAILED: CMakeFiles/lint cmd.exe /C "cd /D
G:\PHD\Thesis\Code\caffe-windows\build &&
"C:\Program Files\CMake\bin\cmake.exe"
-DPYTHON_EXECUTABLE=F:/local/Anaconda2/python.exe -P
G:/PHD/Thesis/Code/caffe-windows/cmake/lint.cmake"
-- G:/PHD/Thesis/Code/caffe-windows/build/../include/caffe/util/signal_handler.h:1:
#ifndef header guard has wrong style, please use:
G:_PHD_THESIS_CODE_CAFFE_WINDOWS_INCLUDE_CAFFE_UTIL_SIGNAL_HANDLER_H_
[build/header_guard] [5]
-- G:/PHD/Thesis/Code/caffe-windows/build/../include/caffe/util/signal_handler.h:24:
#endif line should be
"#endif // G:_PHD_THESIS_CODE_CAFFE_WINDOWS_INCLUDE_CAFFE_UTIL_SIGNAL_HANDLER_H_"
[build/header_guard] [5]
CMake Error at G:/PHD/Thesis/Code/caffe-windows/cmake/lint.cmake:50
(message): Lint found 2 errors!
ninja: build stopped: subcommand failed.
Lint failed
lint چیست و مشکل من چطور حل میشه
ممنون