Hi Saurabh,
Thanks for your reply! I was able to build the *.out file using the Makefile, after removing linking of '-lvpu -lipu as I didn't get these libraries. After that I try to run the compiled *.out file on i.MX6. And it is giving me strange error.
Compilation logs:
$ make clean;make
rm -f /mx6s_v4l2_capture.out mx6s_v4l2_capture.o
arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -Wall -O2 -c mx6s_v4l2_capture.c -o mx6s_v4l2_capture.o
mx6s_v4l2_capture.c: In function 'v4l_capture_test':
mx6s_v4l2_capture.c:501:29: warning: 'fb0' may be used uninitialized in this function [-Wmaybe-uninitialized]
memcpy(fb0 + bufoffset + j * var.xres * 2,
^
mx6s_v4l2_capture.c:541:3: warning: 'fb0_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
munmap((void *)fd_fb, fb0_size);
^
arm-poky-linux-gnueabi-gcc -o mx6s_v4l2_capture.out mx6s_v4l2_capture.o -lrt -lpthread
Error while running on i.MX6:
# ls -la
total 36
drwxrwx--- 4 root disk 4096 Aug 20 06:55 .
drwxr-xr-x 4 root root 80 Aug 20 06:34 ..
drwxrwx--- 2 root disk 4096 Aug 19 18:35 System Volume Information
-rwxrwx--- 1 root disk 19869 Aug 20 2015 mx6s_v4l2_capture.out
drwxrwx--- 2 root disk 8192 Jul 12 13:43 unit_tests
root@varsomimx6:/run/media/mmcblk0p1# ./mx6s_v4l2_capture.out
-sh: ./mx6s_v4l2_capture.out: No such file or directory
Though this file is exist, it is giving the error 'No such file or direcory'. Not able to understand why?
Please help me here.
Thanks,
Dhaval