You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help. Do not post such requests to Issues. Doing so interferes with the development of Caffe.
Could not find Matlab when compiling, missing: Matlab_MEX_EXTENSION
Steps to reproduce
Makefile.config:
# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
MATLAB_DIR := C:/Program Files/MATLAB/R2017b/bin/
MATLAB_DIR := C:/Program Files/MATLAB/R2017b/bin/
Output in cmd:
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。
C:\Users\dell>e:
E:\>cd caffe
E:\caffe>scripts\build_win.cmd
系统找不到指定的驱动器。
系统找不到指定的驱动器。
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION = 14
INFO: WITH_NINJA = 1
INFO: CMAKE_GENERATOR = "Ninja"
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 = 1
INFO: PYTHON_EXE = "python"
INFO: RUN_TESTS = 0
INFO: RUN_LINT = 0
INFO: RUN_INSTALL = 0
INFO: ============================================================
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: gflags_shared)
-- Found glog (include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: glog)
-- Found PROTOBUF Compiler: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/bin/protoc.exe
-- Found lmdb (include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: lmdb)
-- Found LevelDB (include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: leveldb)
-- Found Snappy (include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include, library: snappy_static;optimized;C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlib.lib;debug;C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/caffezlibd.lib)
-- CUDA detected: 8.0
-- Found cuDNN: ver. 5.1.10 found (include: C:/cuda1/include, library: C:/cuda1/lib/x64/cudnn.lib)
-- Added CUDA NVCC flags for: sm_50
-- OpenCV found (C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries)
-- Found OpenBLAS libraries: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/lib/libopenblas.dll.a
-- Found OpenBLAS include: C:/Users/dell/.caffe/dependencies/libraries_v140_x64_py35_1.1.0/libraries/include
-- NumPy ver. 1.13.1 found (include: C:/Users/dell/AppData/Local/Programs/Python/Python35/lib/site-packages/numpy/core/include)
-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- python
-- Could NOT find Matlab (missing: Matlab_MEX_EXTENSION) (found version "8.6")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-109-g28ca8145-dirty
-- System : Windows
-- C++ compiler : F:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Release CXX flags : /MD /O2 /Ob2 /DNDEBUG /FS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /FS
-- Debug CXX flags : /MDd /Zi /Ob0 /Od /RTC1 /FS /DWIN32 /D_WINDOWS /W3 /GR /EHsc /FS
-- Build type : Release
--
-- BUILD_SHARED_LIBS : 0
-- BUILD_python : 1
-- BUILD_matlab : 1
-- 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_50
-- cuDNN : Yes (ver. 5.1.10)
--
-- Python:
-- Interpreter : C:/Users/dell/AppData/Local/Programs/Python/Python35/python.exe (ver. 3.5.3)
-- Libraries : C:/Users/dell/AppData/Local/Programs/Python/Python35/libs/python35.lib (ver 3.5.3)
-- NumPy : C:/Users/dell/AppData/Local/Programs/Python/Python35/lib/site-packages/numpy/core/include (ver 1.13.1)
--
-- Matlab:
-- Matlab : No
-- Octave : No
--
-- Install:
-- Install path : E:/caffe/build/install
--
-- Configuring done
-- Generating done
-- Build files have been written to: E:/caffe/build
ninja: no work to do.
E:\caffe>
Your system configuration
Operating system: win10
Compiler: cmake/ninja
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
The text was updated successfully, but these errors were encountered:
I've never built Caffe for MATLAB myself but from that message: # MATLAB directory should contain the mex binary in /bin.
I would assume that your MATLAB directory should contain bin. So when you set it to: MATLAB_DIR := C:/Program Files/MATLAB/R2017b/bin/
the build system is actually looking for C:/Program Files/MATLAB/R2017b/bin/bin.
Still, please do not post usage, installation, or modeling questions, or other requests for help to Issues. Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe. Please read the guidelines for contributing before submitting an issue or a pull request.
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help.
Do not post such requests to Issues. Doing so interferes with the development of Caffe.
Please read the guidelines for contributing before submitting this issue.
Issue summary
Could not find Matlab when compiling, missing: Matlab_MEX_EXTENSION
Steps to reproduce
Makefile.config:
Output in cmd:
Your system configuration
Operating system: win10
Compiler: cmake/ninja
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):
The text was updated successfully, but these errors were encountered: