We are trying to install fastcv SDK in Android Device in order to build sample application. while following the official installation guide,
We are facing the following issues.
make clean
Host OS was auto-detected: windows
make: C:/android/Development/fastcv-android-1-7-1/samples/fastcorner/: No such file or directory
make: /ndk-build: No such file or directory
make: *** [Makefile:57: clean] Error 127
"make clean" terminated with exit code 2. Build might be incomplete.
We are using Windows as the host machine, with Android 8.1 and NDK version 21.
Any help would be appreciated. Thanks
Hai,
we are using Linux as host machine and tested with RB3 SDA845, Below are the steps we followed
FastCV SDK environment setup on host
FastCV SDK download
https://developer.qualcomm.com/software/fast-cv-sdk/tools
Download v1.7.1 for Linux Embedded
FastCV installation and compilation
The FastCV binary file is fastcv-installer-linuxembedded-1-7-1.bin. Follow the steps below to install it:
chmod 777 fastcv-installer-linuxembedded-1-7-1.bin
./fastcv-installer-linuxembedded-1-7-1.bin
Building Sample Applications on host
fastcvSimpleTest using Hexagon sdk 64-bit
1. Download Hexagon DSP SDK from Qualcomm developer network
https://developer.qualcomm.com/software/hexagon-dsp-sdk
2. Download gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz
http://releases.linaro.org/archive/14.11/components/toolchain/binaries/aarch64-linux-gnu
Extract the tar file and copy folder gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu
To <Hexagon_SDK_ROOT>/tools/ folder.
Rename gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu folder to linaro64.
3. Copy the fastcvSimpleTest folder inside <Hexagon_SDK_ROOT>/examples/common/.
Copy 64-bit libfastcv.a from libs provided in the fastcv sdk
(fastcv-1-7-1_LinuxEmbedded\lib\64-bit\libfastcv.a) to
<Hexagon_SDK_ROOT>/examples/common/fastcvSimpleTest/lib/ folder.
4. Open a new terminal from the root directory <Hexagon_SDK_ROOT> of the Hexagon SDK
and run setup_sdk_env.source.
This script configures the local environment. These changes are not persistent in the
terminal instance, so you must run setup_sdk_env.source on each terminal you want to
develop in.
$ cd < Hexagon SDK root directory, default is: ~/Qualcomm/Hexagon_SDK/<version>>
$ source setup_sdk_env.source
5. Change the directory to fastcvSimpleTest folder
cd examples/common/fastcvSimpleTest
Execute command: make tree V=UbuntuARM_Debug_aarch64
6. A folder with name "UbuntuARM_Debug_aarch64" should get generated in
the fastcvSimpleTest folder. It will contain the fastcvSimpleTest binary file.
FastCV SDK Test with RB3 SDA845
1. Push the fastcvSimpleTest binary file in the target:
adb push
<Hexagon_SDK_ROOT>\examples\common\fastcvSimpleTest\UbuntuARM_Debug_aarch64\s
hip\fastcvSimpleTest /usr/bin/
2. Change bin permissions and execute the fastcvSimpleTest:
adb shell chmod 777 /usr/bin/fastcvSimpleTest
adb shell /usr/bin/fastcvSimpleTest
I got the following error, How can I solve such error?
best wishes.
ubuntu@npu:/zyx_mac/Work/Lib$ chmod 777 ./fastcv-installer-android-1-7-1.bin
ubuntu@npu:/zyx_mac/Work/Lib$ ./fastcv-installer-android-1-7-1.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Graphical installers are not supported by the VM. The console mode will be used instead...
=======================================================
Installer User Interface Mode Not Supported
The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The valid UI modes identifiers are GUI, Console, and Silent.
=======================================================
Hi,
I had the same issue (Ubuntu 22.04.1 LTS).
Installing openjdk-8 resolved this problem in my case.
apt install openjdk-8-jdk openjdk-8-jre
Best regards,
Jacek