caffeの使用中に遭遇したいくつかの穴
11002 ワード
caffe使用中に遭遇した穴
debugで新しいvsプロジェクトを作成するには、まずインポートするincludeライブラリディレクトリを作成します.
.\NugetPackages\glog.0.3.3.0\build
ative\include;
.\NugetPackages\OpenBLAS.0.2.14.1\lib
ative\include;
.\NugetPackages\OpenCV.2.4.10\build
ative\include;
.\NugetPackages\boost.1.59.0.0\lib
ative\include;
.\NugetPackages\gflags.2.1.2.1\build
ative\include;
.\NugetPackages\hdf5-v120-complete.1.8.15.2\lib
ative\include;
.\NugetPackages\LevelDB-vc120.1.2.0.0\build
ative\include;
.\NugetPackages\lmdb-v120-clean.0.9.14.0\lib
ative\include;
.\NugetPackages\protobuf-v120.2.6.1\build
ative\include;
libディレクトリ:
.\caffe-master\Build\x64\Debug;
.\NugetPackages\OpenCV.2.4.10\build
ative\lib\x64\v120\Debug;
.\NugetPackages\boost_chrono-vc120.1.59.0.0\lib
ative\address-model-64\lib;
.\NugetPackages\boost_date_time-vc120.1.59.0.0\lib
ative\address-model-64\lib;
.\NugetPackages\boost_filesystem-vc120.1.59.0.0\lib
ative\address-model-64\lib;
.\NugetPackages\boost_system-vc120.1.59.0.0\lib
ative\address-model-64\lib;
.\NugetPackages\boost_thread-vc120.1.59.0.0\lib
ative\address-model-64\lib;
.\NugetPackages\gflags.2.1.2.1\build
ative\x64\v120\dynamic\Lib;
.\NugetPackages\glog.0.3.3.0\build
ative\lib\x64\v120\Debug\dynamic;
.\NugetPackages\hdf5-v120-complete.1.8.15.2\lib
ative\lib\x64;
.\NugetPackages\LevelDB-vc120.1.2.0.0\build
ative\lib\x64\v120\Debug;
.\NugetPackages\lmdb-v120-clean.0.9.14.0\lib
ative\lib\x64;
.\NugetPackages\OpenBLAS.0.2.14.1\lib
ative\lib\x64;
.\NugetPackages\protobuf-v120.2.6.1\build
ative\lib\x64\v120\Debug;
.\NugetPackages\boost_date_time-vc120.1.59.0.0\lib
linker:
opencv_calib3d2410d.lib
opencv_contrib2410d.lib
opencv_core2410d.lib
opencv_features2d2410d.lib
opencv_flann2410d.lib
opencv_gpu2410d.lib
opencv_highgui2410d.lib
opencv_imgproc2410d.lib
opencv_legacy2410d.lib
opencv_ml2410d.lib
opencv_nonfree2410d.lib
opencv_objdetect2410d.lib
opencv_ocl2410d.lib
opencv_photo2410d.lib
opencv_stitching2410d.lib
opencv_superres2410d.lib
opencv_ts2410d.lib
opencv_video2410d.lib
opencv_videostab2410d.lib
caffe.lib
compute_image_mean.lib
convert_imageset.lib
convert_mnist_data.lib
libcaffe.lib
libboost_date_time-vc120-mt-gd-1_59.lib
libboost_filesystem-vc120-mt-gd-1_59.lib
libboost_system-vc120-mt-gd-1_59.lib
libglog.lib
hdf5.lib
hdf5_cpp.lib
hdf5_f90cstub.lib
hdf5_fortran.lib
hdf5_hl.lib
hdf5_hl_cpp.lib
hdf5_hl_f90cstub.lib
hdf5_hl_fortran.lib
hdf5_tools.lib
szip.lib
zlib.lib
LevelDb.lib
lmdbD.lib
libprotobuf.lib
libopenblas.dll.a
gflags_nothreadsd.lib
gflagsd.lib
debugで
compute_image_mean.lib, convert_imageset.lib, convert_mnist_data.liblibcaffe.lib
等のライブラリが生成されていない場合は、まずcaffeライブラリエンジニアリングでdebugを実行し、対応するlib、dll等のファイルを生成してインポート可能現れるとdllファイルが欠落している場合はbinファイルの下のdllファイルをプロジェクトディレクトリの下のx 64/debug/にインポートする必要があります.
gflags_nothreadsd.dll
libgcc_s_seh-1.dll
libgflags-debug.dll # caffe Build/x64/Debug/
libglog.dll
libopenblas.dll
opencv_calib3d2410d.dll
opencv_contrib2410d.dll
opencv_core2410d.dll
opencv_features2d2410d.dll
opencv_flann2410d.dll
opencv_gpu2410d.dll
opencv_highgui2410d.dll
opencv_imgproc2410d.dll
opencv_legacy2410d.dll
opencv_ml2410d.dll
opencv_nonfree2410d.dll
opencv_objdetect2410d.dll
opencv_ocl2410d.dll
opencv_photo2410d.dll
opencv_stitching2410d.dll
opencv_superres2410d.dll
opencv_video2410d.dll
opencv_videostab2410d.dll
e:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2132): error C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
1> e:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility(2113) : “std::_Copy_impl”
1> d:\coding_file\cpp\sudoku\sudoku\function.cpp(73): “_OutIt std::copy<_ty>(_InIt,_InIt,_OutIt)”
のような問題が発生した場合は、構成プロパティ->C/C+->プリプロセッサ、プリプロセッサ定義に_を付ける必要があります.SCL_SECURE_NO_WARNINGS
このコマンド