I try to compile caffe2 on my computer ( Ubuntu 17.1, CUDA 9.2), but I still get this error during linking:
[ 72%] Built target caffe2
[ 72%] Building NVCC (Device) object caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o
/home/john/pytorch/caffe2/sgd/yellowfin_op.h: In constructor ‘caffe2::YellowFinOp<T, Context>::YellowFinOp(const caffe2::OperatorDef&, caffe2::Workspace*)’:
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:171: error: ‘GetSingleArgument<int>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:259: error: ‘GetSingleArgument<int>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
/home/john/pytorch/caffe2/sgd/yellowfin_op.h:20:347: error: ‘GetSingleArgument<bool>’ is not a member of ‘caffe2::YellowFinOp<T, Context>’
YellowFinOp(const OperatorDef& operator_def, Workspace* ws)
^
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-aligned-allocation-unavailable’
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1plus: warning: unrecognized command line option ‘-Wno-typedef-redefinition’
cc1plus: warning: unrecognized command line option ‘-Wno-invalid-partial-specialization’
CMake Error at caffe2_gpu_generated_yellowfin_op_gpu.cu.o.Release.cmake:279 (message):
Error generating file
/home/john/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/sgd/./caffe2_gpu_generated_yellowfin_op_gpu.cu.o
caffe2/CMakeFiles/caffe2_gpu.dir/build.make:889: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/sgd/caffe2_gpu_generated_yellowfin_op_gpu.cu.o] Error 1
CMakeFiles/Makefile2:1441: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Here is my system summary:
-- CMake version : 3.9.1
-- CMake command : /usr/bin/cmake
-- Git version : v0.1.11-9044-g9c426797a
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.2.0
-- BLAS : Eigen
-- CXX flags : -fvisibility-inlines-hidden -DONNX_NAMESPACE=onnx_c2 -O2 -fPIC -Wno-narrowing -Wno-invalid-partial-specialization -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-private-field -Wno-unused-result -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-error=deprecated-declarations -faligned-new
-- Build type : Release
-- Compile definitions :
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr/local
--
-- BUILD_CAFFE2 : ON
-- BUILD_ATEN : OFF
-- BUILD_BINARY : ON
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 2.7.14
-- Python includes : /usr/include/python2.7
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : OFF
-- USE_ASAN : OFF
-- USE_ATEN : OFF
-- USE_CUDA : ON
-- CUDA static link : OFF
-- USE_CUDNN : ON
-- CUDA version : 9.2
-- cuDNN version : 7.1.4
-- CUDA root directory : /usr/local/cuda
-- CUDA library : /usr/lib/x86_64-linux-gnu/libcuda.so
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so
-- cublas library : /usr/local/cuda/lib64/libcublas.so;/usr/local/cuda/lib64/libcublas_device.a
-- cufft library : /usr/local/cuda/lib64/libcufft.so
-- curand library : /usr/local/cuda/lib64/libcurand.so
-- cuDNN library : /usr/lib/x86_64-linux-gnu/libcudnn.so
-- nvrtc : /usr/lib/x86_64-linux-gnu/libnvrtc.so
-- CUDA include path : /usr/local/cuda/include
-- NVCC executable : /usr/local/cuda/bin/nvcc
-- CUDA host compiler : /usr/bin/cc
-- USE_TENSORRT : OFF
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FFMPEG : OFF
-- USE_GFLAGS : ON
-- USE_GLOG : ON
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- USE_LEVELDB : ON
-- LevelDB version : 1.20
-- Snappy version : ..
-- USE_LITE_PROTO : OFF
-- USE_LMDB : ON
-- LMDB version : 0.9.21
-- USE_METAL : OFF
-- USE_MKL :
-- USE_MOBILE_OPENGL : OFF
-- USE_MPI : ON
-- USE_NCCL : ON
-- USE_SYSTEM_NCCL : OFF
-- USE_NERVANA_GPU : OFF
-- USE_NNPACK : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : ON
-- OpenCV version : 3.1.0
-- USE_OPENMP : OFF
-- USE_PROF : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- Public Dependencies : Threads::Threads;gflags;glog::glog
-- Private Dependencies : nnpack;cpuinfo;/usr/lib/x86_64-linux-gnu/liblmdb.so;/usr/lib/x86_64-linux-gnu/libleveldb.so;/usr/lib/x86_64-linux-gnu/libsnappy.so;/usr/lib/x86_64-linux-gnu/libnuma.so;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_video;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;gloo;gcc_s;gcc;dl
-- Configuring done
Anything I am doing wrong? I have no idea how to fix this.
Thanks for the help
Related
I am cross-compiling samba v4.17.3, i met some questions.
I write auto_config.sh,
root#gyz-thinkcentre-e73:~/third_source/samba-4.17.3# cat auto_config.sh
qemu_binary="qemu-aarch64"
libdir_qemu="/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/"
base_libdir_qemu="/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/"
prefix_path="/root/result/samba"
CROSS_EXEC= "${qemu_binary} -L /root/niic/SDK/sysroots -E LD_LIBRARY_PATH=${libdir_qemu}:${base_libdir_qemu}"
./configure --prefix=${prefix_path} --target=aarch64-niic-linux --host=aarch64-niic-linux samba_cv_CC_NEGATIVE_ENUM_VALUES=yes --cross-exec="${CROSS_EXEC}"
when i run auto_config.sh, a error occured: No such file or directory, but the two path '/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/' and '/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/' are exist.
root#gyz-thinkcentre-e73:~/third_source/samba-4.17.3# ./auto_config.sh
./auto_config.sh: line 7: qemu-aarch64 -L /root/niic/SDK/sysroots -E LD_LIBRARY_PATH=/root/niic/SDK/sysroots/aarch64-niic-linux/lib64/:/root/niic/SDK/sysroots/aarch64-niic-linux/usr/lib64/: No such file or directory
Setting top to : /root/third_source/samba-4.17.3
Setting out to : /root/third_source/samba-4.17.3/bin
Checking for 'gcc' (C compiler) : aarch64-niic-linux-gcc -mcpu=cortex-a55 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/root/niic/SDK/sysroots/aarch64-niic-linux
Checking for program 'git' : /usr/bin/git
Checking for c flags '-MMD' : yes
Checking for program 'gdb' : aarch64-niic-linux-gdb
Checking for header sys/utsname.h : yes
Checking uname sysname type : not found
Checking uname machine type : not found
Checking uname release type : not found
Checking uname version type : not found
Checking for header stdio.h : yes
Checking simple C program : not found
The configuration failed False
(complete log in /root/third_source/samba-4.17.3/bin/config.log)
I am trying to install Tungsten Replicator 4.0 version for Mysql 5.7. I have used binary installation(tar.gz file installation) for Mysql 5.7 and exported path in bash_profile.
./tools/tmp install command got executed successfully but services both master and slave are offline. We are getting below error for service status command.
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl services
Processing services command...
NAME VALUE
---- -----
appliedLastSeqno: -1
appliedLatency : -1.0
role : master
serviceName : beta182_183
serviceType : unknown
started : true
state : OFFLINE:ERROR
NAME VALUE
---- -----
**appliedLastSeqno**:**** **Unknown**
**appliedLatency **:**** **Unknown**
**role** **:** **Unknown**
serviceName : beta183_182
serviceType : Unknown
started : false
state : Unknown
Finished services command...
[tungsten#beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl -service beta182_183 status
Processing status command...
NAME VALUE
---- -----
appliedLastEventId : NONE
appliedLastSeqno : -1
appliedLatency : -1.0
autoRecoveryEnabled : true
autoRecoveryTotal : 0
channels : -1
clusterName : beta182_183
currentEventId : NONE
currentTimeMillis : 1579684465335
dataServerHost : beta-388.panterranetworks.net
extensions :
host : beta-388.panterranetworks.net
latestEpochNumber : -1
masterConnectUri : thls://localhost:/
masterListenUri : thls://beta-388.panterranetworks.net:12120/
maximumStoredSeqNo : -1
minimumStoredSeqNo : -1
offlineRequests : NONE
pendingError : Replicator unable to go online due to error
pendingErrorCode : NONE
pendingErrorEventId : NONE
pendingErrorSeqno : -1
pendingExceptionMessage: **Unable to prepare plugin: class name=com.continuent.tungsten.replicator.thl.THL message=[Error while attempting to acquire file lock: /opt/continuent/thl/beta182_183/disklog.lck]**
pipelineSource : UNKNOWN
relativeLatency : -1.0
resourcePrecedence : 99
rmiPort : 10110
role : master
seqnoType : java.lang.Long
serviceName : beta182_183
serviceType : unknown
simpleServiceName : beta182_183
siteName : default
sourceId : beta-388.panterranetworks.net
state : OFFLINE:ERROR
timeInStateSeconds : 15.744
timezone : GMT
transitioningTo :
uptimeSeconds : 15.931
useSSLConnection : true
version : Tungsten Replicator 4.0.0 build 18
Finished status command...
Can anyone please share how to resolve the error? I have tried multiple times with giving all permissions to the file and also uninstalled and reinstalled the tungsten.
Mysql version 5.7 is not support tungsten version 4.0,
https://docs.continuent.com/tungsten-replicator-4.0/introduction.html
Shared your config replicator!
I'm building a Vala program with gnome-builder and flatpak. I wan't to connect to a mySQL Database. Thats why I need to run mysql_config to get the right compiler flags.
So I added mysql_config = find_program('mysql_config')to my meson.build file.
When I try to compile I get meson.build:7:0: ERROR: Program(s) ['mysql_config'] not found or not executable.
When I run whereis mysql_config on command line I get the expected result mysql_config: /usr/bin/mysql_config. Also I can run mysql_config --cflags from command line with the expected result -I/usr/include/mysql -I/usr/include/mysql.
Thats why I think that the problem is that I'm building with flatpak-builder.
My ./meson.build:
project('zeiterfassunggtk', ['c', 'vala'], version: '0.1.0',
meson_version: '>= 0.40.0',
)
i18n = import('i18n')
mysql_config = find_program('mysql_config')
mysql_vapi = meson.get_compiler('vala').find_library('mysql')
mysql_dep = declare_dependency(c_args: run_command([mysql_config, '--cflags']).stdout().split(),
link_args: run_command([mysql_config, '--libs']).stdout().split(),
dependencies: [mysql_vapi])
subdir('data')
subdir('src')
subdir('po')
meson.add_install_script('build-aux/meson/postinstall.py')
My ./src/meson.build
zeiterfassunggtk_sources = [
'main.vala',
'window.vala',
'mysql.vala',
]
zeiterfassunggtk_deps = [
dependency('gio-2.0', version: '>= 2.50'),
dependency('gtk+-3.0', version: '>= 3.22'),
]
gnome = import('gnome')
zeiterfassunggtk_sources += gnome.compile_resources('zeiterfassunggtk-resources',
'zeiterfassunggtk.gresource.xml',
c_name: 'zeiterfassunggtk'
)
executable('zeiterfassunggtk', zeiterfassunggtk_sources,
vala_args: '--target-glib=2.50', dependencies: zeiterfassunggtk_deps,
install: true,
)
The full output of the build process:
flatpak build --env=LANG=de_AT.UTF-8 --env=USER=g.zehetner --env=HOME=/home/g.zehetner --env=PATH=/usr/bin:/bin --env=TERM=xterm-256color --env=V=0 --env=CCACHE_DIR=/home/g.zehetner/.cache/gnome-builder/flatpak-builder/ccache --env=PATH=/app/bin:/usr/bin --build-dir=/home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --share=network --nofilesystem=host --filesystem=/home/g.zehetner/.cache/gnome-builder --filesystem=/home/g.zehetner/Projekte/ZeiterfassungGtk --filesystem=/home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --env=V=1 '--env=CFLAGS=-O2 -g' '--env=CXXFLAGS=-O2 -g' --env=NOCONFIGURE=1 /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/flatpak/staging/x86_64-master ninja
[0/1] Regenerating build files.
The Meson build system
Version: 0.46.0
Source dir: /home/g.zehetner/Projekte/ZeiterfassungGtk
Build dir: /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master
Build type: native build
Project name: zeiterfassunggtk
Native C compiler: ccache cc (gcc 6.2.0 "cc (GCC) 6.2.0")
Appending CFLAGS from environment: '-O2 -g'
Appending LDFLAGS from environment: '-L/app/lib '
Native Vala compiler: valac (valac 0.38.2)
Appending LDFLAGS from environment: '-L/app/lib '
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program mysql_config found: NO
meson.build:7:0: ERROR: Program(s) ['mysql_config'] not found or not executable
A full log can be found at /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master/meson-logs/meson-log.txt
FAILED: build.ninja
/usr/bin/python3 /usr/bin/meson --internal regenerate /home/g.zehetner/Projekte/ZeiterfassungGtk /home/g.zehetner/.cache/gnome-builder/projects/ZeiterfassungGtk/builds/org.gnome.Zeiterfassunggtk.json-flatpak-org.gnome.Platform-x86_64-3.26-master --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed
You can find the full code at Github.com
I am trying to port Caffe-SSD to Windows. I moved all the new files (layers and whatnot) to the Caffe's latest windows branch and used the Caffe_SSD caffe.proto file and initiated the compilation process.
It seemed everything is in place but after several minutes of compilation it fails with these errors :
"C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj" (default target) (3) ->
(CustomBuild target) ->
C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/include\caffe/proto/caffe.pb.h(4356): error : expected an ident
ifier [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/include\caffe/proto/caffe.pb.h(14835): error : expected an iden
tifier [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
414 Warning(s)
2 Error(s)
Time Elapsed 00:08:49.15
ERROR: Build failed
Why am I getting this error? I used the very same caffe.proto from the ssd branch and therefore everything needs to be fine! where is the problem?
This is the configuration by the way :
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd>scripts\build_win.cmd
The system cannot find the drive specified.
The system cannot find the drive specified.
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
-- 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
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: C:/Users/Master/Anaconda3/envs/anaconda35/python.exe (found suitable version "3.5.3", minimum required is "2.7")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found GFlags: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found gflags (include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: gflags_shared)
-- Found Glog: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found glog (include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: glog)
-- Found Protobuf: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/bin/protoc.exe (found version "3.1.0")
-- Found PROTOBUF Compiler: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/bin/protoc.exe
-- Found LMDB: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found lmdb (include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: lmdb)
-- Found LevelDB: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found LevelDB (include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: leveldb)
-- Found ZLIB: optimized;C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlibd.lib (found version "1.2.8")
-- Found Snappy: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found Snappy (include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: snappy_static;optimized;C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlibd.lib)
-- CUDA detected: 8.0
-- Found cuDNN: ver. 6.0.20 found (include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/cuda60/cuda/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/cuda60/cuda/lib/x64/cudnn.lib)
-- Added CUDA NVCC flags for: sm_61
-- OpenCV found (C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries)
-- Found OpenBLAS libraries: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/libopenblas.dll.a
-- Found OpenBLAS include: C:/Users/Master/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- Found PythonLibs: C:/Users/Master/Anaconda3/envs/anaconda35/libs/python35.lib (found suitable version "3.5.3", minimum required is "2.7")
-- Found NumPy: C:/Users/Master/Anaconda3/envs/anaconda35/lib/site-packages/numpy/core/include (found suitable version "1.13.1", minimum required is "1.7.1")
-- NumPy ver. 1.13.1 found (include: C:/Users/Master/Anaconda3/envs/anaconda35/lib/site-packages/numpy/core/include)
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- python
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.10.1.windows.1")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : unknown
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- Debug CXX flags : /MDd /Zi /Ob0 /Od /RTC1 /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- Build type : Release
--
-- BUILD_SHARED_LIBS : 0
-- BUILD_python : 1
-- BUILD_matlab : 0
-- BUILD_docs :
-- CPU_ONLY : 0
-- USE_OPENCV : ON
-- USE_LEVELDB : ON
-- USE_LMDB : ON
-- USE_NCCL : 0
-- ALLOW_LMDB_NOLOCK : OFF
--
-- Dependencies:
-- BLAS : Yes (Open)
-- Boost : Yes (ver. 1.61)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.1.0)
-- lmdb : Yes (ver. 0.9.70)
-- LevelDB : Yes (ver. 1.18)
-- Snappy : Yes (ver. 1.1.1)
-- OpenCV : Yes (ver. 3.1.0)
-- CUDA : Yes (ver. 8.0)
--
-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_61
-- cuDNN : Yes (ver. 6.0.20)
--
-- Python:
-- Interpreter : C:/Users/Master/Anaconda3/envs/anaconda35/python.exe (ver. 3.5.3)
-- Libraries : C:/Users/Master/Anaconda3/envs/anaconda35/libs/python35.lib (ver 3.5.3)
-- NumPy : C:/Users/Master/Anaconda3/envs/anaconda35/lib/site-packages/numpy/core/include (ver 1.13.1)
--
-- Install:
-- Install path : C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/install
--
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/16/2017 10:12:06 PM.
Project "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\Master\Desk
top\Caffe\caffe-windows-ssd\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "x64\Release\ZERO_CHECK\".
Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
Checking Build System
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/CMakeFiles/generate.stamp
is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/src/gtest/CMakeFiles/gene
rate.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/src/caffe/CMakeFiles/gene
rate.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/src/caffe/test/CMakeFiles
/generate.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/tools/CMakeFiles/generate
.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/examples/CMakeFiles/gener
ate.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/python/CMakeFiles/generat
e.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/matlab/CMakeFiles/generat
e.stamp is up-to-date.
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/docs/CMakeFiles/generate.
stamp is up-to-date.
FinalizeBuildStatus:
Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ALL_BUILD.vcxproj" (1) is building "C:\Users\Master\Desk
top\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj" (3) on node 1 (default targets).
Project "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj" (3) is building "C:\Users\Maste
r\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffeproto.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
Creating directory "caffeproto.dir\Release\".
Creating directory "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\lib\Release\".
Creating directory "caffeproto.dir\Release\caffeproto.tlog\".
InitializeBuildStatus:
Creating "caffeproto.dir\Release\caffeproto.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ComputeCustomBuildOutput:
Creating directory "C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\include\caffe\proto\".
CustomBuild:
Building Custom Rule C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/src/caffe/CMakeLists.txt
CMake does not need to re-run because C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/build/src/caffe/CMakeFiles/gene
rate.stamp is up-to-date.
Running C++/Python protocol buffer compiler on C:/Users/Master/Desktop/Caffe/caffe-windows-ssd/src/caffe/proto/caffe.
proto
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /I"C:\Users\Master\Desktop\Caffe\caffe
-windows-ssd\build\include" /I"C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build" /IC:\Users\Master\.caffe\depend
encies\libraries_v140_x64_py35_1.1.0\libraries\include /nologo /W3 /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D CA
FFE_VERSION=1.0.0 /D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:
inline /GR /Fo"caffeproto.dir\Release\\" /Fd"caffeproto.dir\Release\caffeproto.pdb" /Gd /TP /errorReport:queue "C:\Us
ers\Master\Desktop\Caffe\caffe-windows-ssd\build\include\caffe\proto\caffe.pb.cc"
caffe.pb.cc
This is the content of caffe.pb.h line 4356:
// nested types ----------------------------------------------------
typedef ParamSpec_DimCheckMode DimCheckMode;
static const DimCheckMode STRICT =
ParamSpec_DimCheckMode_STRICT;
static const DimCheckMode PERMISSIVE =
ParamSpec_DimCheckMode_PERMISSIVE;
static inline bool DimCheckMode_IsValid(int value) {
return ParamSpec_DimCheckMode_IsValid(value);
}
static const DimCheckMode DimCheckMode_MIN =
ParamSpec_DimCheckMode_DimCheckMode_MIN;
static const DimCheckMode DimCheckMode_MAX =
ParamSpec_DimCheckMode_DimCheckMode_MAX;
static const int DimCheckMode_ARRAYSIZE =
ParamSpec_DimCheckMode_DimCheckMode_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
DimCheckMode_descriptor() {
return ParamSpec_DimCheckMode_descriptor();
}
static inline const ::std::string& DimCheckMode_Name(DimCheckMode value) {
return ParamSpec_DimCheckMode_Name(value);
}
static inline bool DimCheckMode_Parse(const ::std::string& name,
DimCheckMode* value) {
return ParamSpec_DimCheckMode_Parse(name, value);
}
and the line 14835:
typedef V1LayerParameter_DimCheckMode DimCheckMode;
static const DimCheckMode STRICT =
V1LayerParameter_DimCheckMode_STRICT;
static const DimCheckMode PERMISSIVE =
V1LayerParameter_DimCheckMode_PERMISSIVE;
static inline bool DimCheckMode_IsValid(int value) {
return V1LayerParameter_DimCheckMode_IsValid(value);
}
static const DimCheckMode DimCheckMode_MIN =
V1LayerParameter_DimCheckMode_DimCheckMode_MIN;
static const DimCheckMode DimCheckMode_MAX =
V1LayerParameter_DimCheckMode_DimCheckMode_MAX;
static const int DimCheckMode_ARRAYSIZE =
V1LayerParameter_DimCheckMode_DimCheckMode_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
DimCheckMode_descriptor() {
return V1LayerParameter_DimCheckMode_descriptor();
}
static inline const ::std::string& DimCheckMode_Name(DimCheckMode value) {
return V1LayerParameter_DimCheckMode_Name(value);
}
static inline bool DimCheckMode_Parse(const ::std::string& name,
DimCheckMode* value) {
return V1LayerParameter_DimCheckMode_Parse(name, value);
}
In case, full compilation log is needed, the complete log is here
This is the content of caffe.proto which I have used (copied from linux ssd)
Caffe.proto From caffe_ssd_linux
Caffe.proto From caffe-windows
Update 2:
replacing STRICT with _STRICT and PERMISSIVE with _PERMISSIVE resulted in these errors :
"C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj" (default target) (3) ->
(ClCompile target) ->
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(59): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::AnnotatedDataLayer<fl
oat>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(60): error C2039: 'data_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>
>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(60): error C2228: left of '.Reshape' must have class/struct/union [C:\Users\Master\D
esktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(104): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::AnnotatedDataLayer<f
loat>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(105): error C2039: 'label_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtyp
e>>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(105): error C2228: left of '.Reshape' must have class/struct/union [C:\Users\Master\
Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(157): error C2039: 'DistortImage': is not a member of 'caffe::DataTransformer<Dtype>
' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(161): error C2039: 'ExpandImage': is not a member of 'caffe::DataTransformer<Dtype>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(168): error C2039: 'ExpandImage': is not a member of 'caffe::DataTransformer<Dtype>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(183): error C2039: 'CropImage': is not a member of 'caffe::DataTransformer<Dtype>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(229): error C2661: 'caffe::DataTransformer<Dtype>::Transform': no overloaded functio
n takes 3 arguments [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(59): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::AnnotatedDataLayer<do
uble>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(60): error C2039: 'data_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>
>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(104): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::AnnotatedDataLayer<d
ouble>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(105): error C2039: 'label_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtyp
e>>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(157): error C2039: 'DistortImage': is not a member of 'caffe::DataTransformer<Dtype>
' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(161): error C2039: 'ExpandImage': is not a member of 'caffe::DataTransformer<Dtype>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(168): error C2039: 'ExpandImage': is not a member of 'caffe::DataTransformer<Dtype>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(183): error C2039: 'CropImage': is not a member of 'caffe::DataTransformer<Dtype>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\annotated_data_layer.cpp(229): error C2661: 'caffe::DataTransformer<Dtype>::Transform': no overloaded functio
n takes 3 arguments [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\detection_output_layer.cpp(65): error C3861: 'MapLabelToName': identifier not found [C:\Users\Master\Desktop\
Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\detection_output_layer.cpp(67): error C3861: 'MapLabelToDisplayName': identifier not found [C:\Users\Master\D
esktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\detection_output_layer.cpp(462): error C2039: 'TransformInv': is not a member of 'caffe::DataTransformer<Dtyp
e>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\detection_output_layer.cpp(462): error C2039: 'TransformInv': is not a member of 'caffe::DataTransformer<Dtyp
e>' [C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\infogain_loss_layer.cpp(18): error C2039: 'axis': is not a member of 'caffe::InfogainLossParameter' [C:\Users
\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\infogain_loss_layer.cpp(57): error C2039: 'axis': is not a member of 'caffe::InfogainLossParameter' [C:\Users
\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(243): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(243): error C3861: 'GetNormalizer': identifier not found [C:\Users\Master\Desktop\Caf
fe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(249): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(249): error C3861: 'GetNormalizer': identifier not found [C:\Users\Master\Desktop\Caf
fe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(281): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(281): error C3861: 'GetNormalizer': identifier not found [C:\Users\Master\Desktop\Caf
fe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(322): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(322): error C3861: 'GetNormalizer': identifier not found [C:\Users\Master\Desktop\Caf
fe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(243): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(249): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(281): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\multibox_loss_layer.cpp(322): error C2039: 'GetNormalizer': is not a member of 'caffe::LossLayer<Dtype>' [C:\
Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(70): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::VideoDataLayer<float>' [C
:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(71): error C2039: 'data_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(71): error C2228: left of '.Reshape' must have class/struct/union [C:\Users\Master\Deskt
op\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(80): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::VideoDataLayer<float>' [C
:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(81): error C2039: 'label_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(81): error C2228: left of '.Reshape' must have class/struct/union [C:\Users\Master\Deskt
op\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(70): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::VideoDataLayer<double>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(71): error C2039: 'data_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(80): error C2039: 'PREFETCH_COUNT': is not a member of 'caffe::VideoDataLayer<double>' [
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\src\caffe\layers\video_data_layer.cpp(81): error C2039: 'label_': is not a member of 'boost::shared_ptr<caffe::Batch<Dtype>>'
[C:\Users\Master\Desktop\Caffe\caffe-windows-ssd\build\src\caffe\caffe.vcxproj]
1618 Warning(s)
48 Error(s)
Time Elapsed 00:12:50.35
ERROR: Build failed
I was having the issues that you had in Update 2 and with a bit of luck and googling I was able to solve them. So here it goes for the ones suffering from them,
I found this thread on GitHub which says,
PREFETCH_COUNT should be changed to prefetch_.size() in every troubling cpp file under <CAFFE_DIR>\caffe\src\caffe\layers. In your case they should be annotated_data_layer.cpp and video_data_layer.cpp.
this->prefetch_[i]. should be changed to this->prefetch_[i]-> in every troubling cpp file under <CAFFE_DIR>\caffe\src\caffe\layers. In your case they should be annotated_data_layer.cpp and video_data_layer.cpp. This will solve errors related to label_': is not a member, data_': is not a member and left of '.Reshape' must have class/struct/union
For infogain_loss_layer.cpp(18): error C2039: 'axis': is not a member of caffe::InfogainLossParameter error, you need to add axis to InfogainLossParameter message in caffe.proto file. In my case last used id was 1, so I added it as optional int32 axis = 2; Now InfogainLossParameter message is like below,
message InfogainLossParameter {
// Specify the infogain matrix source.
optional string source = 1;
optional int32 axis = 2;
}
Sadly, I don't think this will solve all your issues, the ones related to DataTransformer will remain but I hope it will help someone to fix some of them without spending as much time as I did.
I build ITK with gdcm official release for windows. But its not having some of file that I'm using in further coding. So I have to use git version of gdcm cause its having those which I needed but following error encountered when I am trying to build ITK with ITK_USE_SYSTEM_GDCM and using gdcm git version to build gdcm bin.
>------ Build started: Project: ITKIOGDCM, Configuration: Debug Win32 ------
80>Compiling...
80>itkGDCMImageIO.cxx
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMImageIO.cxx(41) : fatal error C1083: Cannot open include file: 'gdcmImageHelper.h': No such file or directory
80>itkGDCMSeriesFileNames.cxx
80>D:\ITK\src\Modules\IO\GDCM\include\itkGDCMSeriesFileNames.h(154) : error C2664: 'void gdcm::SerieHelper::AddRestriction(const gdcm::TagKey &)' : cannot convert parameter 1 from 'const std::string' to 'const gdcm::TagKey &'
80> Reason: cannot convert from 'const std::string' to 'const gdcm::TagKey'
80> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(29) : error C2248: 'gdcm::SerieHelper::SerieHelper' : cannot access protected member declared in class 'gdcm::SerieHelper'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(198) : see declaration of 'gdcm::SerieHelper::SerieHelper'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(64) : see declaration of 'gdcm::SerieHelper'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(160) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(160) : error C2227: left of '->IsReadable' must point to class/struct/union/generic type
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(163) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(163) : error C2227: left of '->GetFileName' must point to class/struct/union/generic type
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(166) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(166) : error C2227: left of '->GetFileName' must point to class/struct/union/generic type
80>itkGDCMImageIOFactory.cxx
80>Generating Code...
80>Build log was saved at "file://d:\ITK\binGDCM\Modules\IO\GDCM\src\ITKIOGDCM.dir\Debug\BuildLog.htm"
80>ITKIOGDCM - 9 error(s), 0 warning(s)
Please help.
You are mixing the very old and deprecated GDCM 1.x with GDCM 2.x. They are actually API incompatible.