按照步驟一步步來,我的則可以成功,我又嘗試了一次,如果沒有按照步驟來,依然不能編譯成功。
>> cd D:\matconvnet-1.0-beta25
>> addpath matlab
>> mex -setup
結果
mex -setup:D:\matlab\bin\win64\mexopts\msvc2015.xml C
>> vl_compilenn
連續運作兩次,出現錯誤
接着再來一次`
>> mex -setup
應該也可以從這裡直接開始:
>> cd D:\matconvnet-1.0-beta25
>> addpath matlab
>> vl_compilenn
>> mex -setup:D:\matlab\bin\win64\mexopts\mingw64.xml C```
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410160905791.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
mex -setup C++
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161045572.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
mex -setup:D:\matlab\bin\win64\mexopts\msvcpp2015.xml C++
**## 注意注意,此時錯誤開始好轉**
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161312138.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
vl_compilenn
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161330852.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
![`在這裡插入圖檔描述`](https://img-blog.csdnimg.cn/2019041016134320.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161400497.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
mex -setup
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161423151.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
mex -setup:D:\matlab\bin\win64\mexopts\msvc2015.xml C
>> vl_compilenn
由于感覺上面雜亂無章,特此用截圖來直覺表示::
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161540975.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/20190410161603760.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/2019041016161939.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
![在這裡插入圖檔描述](https://img-blog.csdnimg.cn/2019041016163655.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA0OTM0ODk=,size_16,color_FFFFFF,t_70)
本人學習小白,有問題咱們可以随時交流哦