Cross-compilation of OpenCV

"Milk-V Duo is an MPU based on the Altek CV1800B chip, capable of running operating systems based on both LINUX and RTOS. The Altek CV1800B chip features the XuanTie C906 core, known for its powerful processing capabilities. Hence, we attempted cross-compiling the OpenCV image processing library for use with Milk-V Duo. XuanTie’s website (https://xuantie.t-head.cn/community/download?id=4112956065753141248) offers an optimized custom version of OpenCV, believed to maximize the chip’s performance. This version holds great promise.


This is a companion discussion topic for the original entry at http://forum.sophgo.com/t/cross-compilation-of-opencv/346

Hi,
I still have -sh: opencv_example: not found.

I am using the latest DUO image release.

The only only xthread .so in the /lib directory is:
lrwxrwxrwx 1 dhcpcd dhcpcd 37 Oct 21 2023 ld-musl-riscv64v0p7_xthead.so.1 → …/usr/lib64v0p7_xthead/lp64d/libc.so

So, I created the following simlink:
[root@milkv-duo]/lib# ls -l /lib/ld-musl-riscv64xthead.so.1
lrwxrwxrwx 1 root root 35 Jan 1 00:44 /lib/ld-musl-riscv64xthead.so.1 → /usr/lib64v0p7_xthead/lp64d/libc.so

But I still get the ‘not found’ message?

Thanks,

Bruce

Never mind. I fixed it:
Simlink for file:///lib/ld-linux-riscv64v0p7_xthead-lp64d.so.

INTERP 0x0000000000000238 0x0000000000010238 0x0000000000010238
0x000000000000002c 0x000000000000002c R 0x1
[Requesting program interpreter: /lib/ld-linux-riscv64v0p7_xthead-lp64d.so.1]
LOAD 0x0000000000000000 0x0000000000010000 0x0000000000010000
0x0000000000370c38 0x0000000000370c38 R E 0x1000
LOAD 0x0000000000371018 0x0000000000382018 0x0000000000382018

1 Like