AnsweredAssumed Answered

There is a problem when compiling "mxc_vpu_test" test program.

Question asked by LI ZI on May 4, 2016
Latest reply on May 4, 2016 by Yuri Muhin

When I use i.MX6Q SabreSDP Board,on ubuntu 14.04 cross compile "mxc_vpu_test" test program , there is a problem showed below:

 

 

 

root@ubuntu:/mnt/hgfs/ubuntu_share/mytest_src/mxc_vpu_test# make PLATFORM=IMX6Q CROSS_COMPILE=arm-linux-

arm-linux-gcc  -Wall -O2 -c main.c -o main.o

arm-linux-gcc  -Wall -O2 -c dec.c -o dec.o

arm-linux-gcc  -Wall -O2 -c enc.c -o enc.o

arm-linux-gcc  -Wall -O2 -c capture.c -o capture.o

arm-linux-gcc  -Wall -O2 -c display.c -o display.o

arm-linux-gcc  -Wall -O2 -c fb.c -o fb.o

arm-linux-gcc  -Wall -O2 -c utils.c -o utils.o

arm-linux-gcc  -Wall -O2 -c loopback.c -o loopback.o

arm-linux-gcc  -Wall -O2 -c transcode.c -o transcode.o

arm-linux-gcc -lpthread -o mxc_vpu_test.out main.o dec.o enc.o capture.o display.o fb.o utils.o loopback.o transcode.o  -lvpu -lipu -lrt

/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lvpu

/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lipu

collect2: ld returned 1 exit status

make: *** [mxc_vpu_test.out] Error 1

root@ubuntu:/mnt/hgfs/ubuntu_share/mytest_src/mxc_vpu_test#

 

 

I have copied libvpu.so.4 , libvpu.so ,libipu.so files to /usr/lib, but there is the same error still.

Can anyone tell me how to solve this problem, please. Thanks

Outcomes