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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,285 次查看
lizi
Contributor I

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

0 项奖励
回复
1 回复

948 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   Please try to build the whole unit_tests package.

[imx-tests] Compile mxc_vpu_test

Building imx-tests on ubuntu hardfloat rootfs for imx6d/q

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复