S32V234 Matlab Vision Toolbox: Compilation error (no rule to make target)

cancel
Showing results for 
Search instead for 
Did you mean: 

S32V234 Matlab Vision Toolbox: Compilation error (no rule to make target)

Jump to solution
437 Views
fixed-term_luka
Contributor I

Hello, I am currently trying to run the NXP Vision Toolbox examples on my S32V234 board.

The cnn_squeezenet_image.m simulation works perfectly on my computer, but I always get an error when I try to compile it for the S32C234 dev-board (run_cnn_squeezenet.m). The only change I made is the IP-address. The Vision SDK has the HF2 applied, arm compute library version 18.03, APU compiler v1.0 b530.

Please see the output from the command window (also attached as files below for better readability):

>> run_cnn_squeezenet
FFmpeg library already installed
Generating code for ARM
### Codegen Successfully Generated for arm device
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWConvLayer.o" "MWConvLayer.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWDepthConcatenationLayer.o" "MWDepthConcatenationLayer.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "cnn_api.o" "cnn_api.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWCNNLayerImpl.o" "MWCNNLayerImpl.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWConvLayerImpl.o" "MWConvLayerImpl.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWDepthConcatenationLayerImpl.o" "MWDepthConcatenationLayerImpl.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "MWTargetNetworkImpl.o" "MWTargetNetworkImpl.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-c++.exe -c  -fPIC -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations   -march=armv8-a -std=gnu++11  -I"C:/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB\ Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen"  -I"C:\NXP\arm_compute-v18.03-bin-linux" -I"C:\NXP\arm_compute-v18.03-bin-linux/include" -o "cnn_exec.o" "cnn_exec.cpp"
C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin/aarch64-linux-gnu-ar.exe -rcs cnnbuild.a MWConvLayer.o MWDepthConcatenationLayer.o cnn_api.o MWCNNLayerImpl.o MWConvLayerImpl.o MWDepthConcatenationLayerImpl.o MWTargetNetworkImpl.o cnn_exec.o  C:\NXP\arm_compute-v18.03-bin-linux/lib/linux-arm64-v8a-neon/libarm_compute.so  C:\NXP\arm_compute-v18.03-bin-linux/lib/linux-arm64-v8a-neon/libarm_compute_core.so
### Created: cnnbuild.a
### Successfully generated all binary outputs.
### Using toolchain: S32DS Vision GCC
### Creating 'C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_Vision_Toolbox_for_S32V234\codegen\exe\cnn_squeezenet\cnn_squeezenet_rtw.mk' ...
Warning: Function 'cnn_squeezenet' does not terminate due to an infinite loop.

Warning in ==> cnn_squeezenet Line: 38 Column: 1
Code generation successful (with warnings): View report
 
C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_Vision_Toolbox_for_S32V234\codegen\exe\cnn_squeezenet>SET PATH=C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\MATLAB\R2018b\bin\win64;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw64/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/usr/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\Anaconda3\yyyyy;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\gs\gs9.21\bin; C:\Oracle\Client\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\7-Zip;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C:\Users\xxxxxxx\AppData\Local\Microsoft\WindowsApps;  
 
C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_Vision_Toolbox_for_S32V234\codegen\exe\cnn_squeezenet>SET PATH=C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\MATLAB\R2018b\bin\win64;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw64/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/usr/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\Anaconda3\yyyyy;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\gs\gs9.21\bin; C:\Oracle\Client\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\7-Zip;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C:\Users\xxxxxxx\AppData\Local\Microsoft\WindowsApps;  
 
C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_Vision_Toolbox_for_S32V234\codegen\exe\cnn_squeezenet>SET PATH=C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\MATLAB\R2018b\bin\win64;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw64/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/usr/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\Anaconda3\yyyyy;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\gs\gs9.21\bin; C:\Oracle\Client\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\7-Zip;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C:\Users\xxxxxxx\AppData\Local\Microsoft\WindowsApps;  
 
C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_Vision_Toolbox_for_S32V234\codegen\exe\cnn_squeezenet>SET PATH=C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/usr/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw64/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\MATLAB\R2018b\bin\win64;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw64/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/usr/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../msys32/mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Xarmv8-linux/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv8-eabi/i686-mingw32/bin;C:/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/../compilers/gcc-6.3.1-linaro-Earmv7-eabi/i686-mingw32/bin;C:\Program Files\Anaconda3\yyyyy;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\gs\gs9.21\bin; C:\Oracle\Client\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\7-Zip;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2018b\runtime\win64;C:\Program Files\MATLAB\R2018b\bin;C:\Users\xxxxxxx\AppData\Local\Microsoft\WindowsApps;  
Current SDK ROOT is /c/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk
make[1]: Entering directory '/c/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen/exe/cnn_squeezenet/build-v234ce-gnu-linux-o'
make[1]: /c/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/build/nbuild/platforms/MATLAB: No such file or directory
make[1]: *** No rule to make target '/c/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/build/nbuild/platforms/MATLAB'.  Stop.
make[1]: Leaving directory '/c/Users/xxxxxxx/AppData/Roaming/MathWorks/MATLAB Add-Ons/Toolboxes/NXP_Vision_Toolbox_for_S32V234/codegen/exe/cnn_squeezenet/build-v234ce-gnu-linux-o'
make: *** [/c/NXP/VisionSDK_S32V2_RTM_1_3_0_HF1/s32v234_sdk/build/nbuild/platforms/coordinator.mk:115: allsub] Error 2
Warning: Cannot deploy on target. Compilation failed..
> In nxpvt_codegen
  In run_cnn_squeezenet (line 27)

It seems like the compilation target is ‘Matlab’, how do I change it to the S32V234?

Thank you!

Labels (1)
1 Solution
189 Views
paulvlase
NXP Employee
NXP Employee

Hi fixed-term.lukas.ebenstein@de.bosch.com‌,

You need to change the Matlab Add-ons installation folder because our VSDK doesn't support spaces in paths.

Open the Matlab Preferences windows and select Matlab -> Add-Ons page. There change the path to one without spaces in it. e.g.: C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLABAdd-Ons. Notice the missing space character between 'MATLAB' and 'Add-Ons'.

You can rename the initial folder such that it doesn't contain spaces and update the path in the Matlab Preferences after. You must close the Matlab before renaming the add-ons installation folder.

addons_preferences.jpg

After you change the add-ons installation folder, you need to reinstall the NXPVT Vision Toolbox.

Another thing I want to point out is that we didn't test our toolbox with VSDK 1.3.0 HF1 or HF2. We recommend you to use VSDK 1.3.0 release without hot fixes, HF1 and HF2.

View solution in original post

1 Reply
190 Views
paulvlase
NXP Employee
NXP Employee

Hi fixed-term.lukas.ebenstein@de.bosch.com‌,

You need to change the Matlab Add-ons installation folder because our VSDK doesn't support spaces in paths.

Open the Matlab Preferences windows and select Matlab -> Add-Ons page. There change the path to one without spaces in it. e.g.: C:\Users\xxxxxxx\AppData\Roaming\MathWorks\MATLABAdd-Ons. Notice the missing space character between 'MATLAB' and 'Add-Ons'.

You can rename the initial folder such that it doesn't contain spaces and update the path in the Matlab Preferences after. You must close the Matlab before renaming the add-ons installation folder.

addons_preferences.jpg

After you change the add-ons installation folder, you need to reinstall the NXPVT Vision Toolbox.

Another thing I want to point out is that we didn't test our toolbox with VSDK 1.3.0 HF1 or HF2. We recommend you to use VSDK 1.3.0 release without hot fixes, HF1 and HF2.

View solution in original post