Jump to content

Launch cam500a camera by nanopi neo air [solved]


amin

Recommended Posts

hi

I am grateful for the help that will be given to me.

Please help me with the launch of the cam500a by Nano Air.
 

I tried to use http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B guides and go along with it.

 

but I did not succeed .
I am very beginner and need help.

 

 

This is all that I get by following the guide http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Air#Connect_to_DVP_Camera_CAM500B.

root@NanoPi-NEO-Air:~# cd /root/mjpg-streamer
root@NanoPi-NEO-Air:~/mjpg-streamer# make
make: svnversion: Command not found
make: Warning: File 'Makefile' has modification time 427105 s in the future
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o mjpg_streamer.o mjpg_streamer.c
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o utils.o utils.c
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall  mjpg_streamer.o utils.o -lpthread -ldl -o mjpg_streamer
chmod 755 mjpg_streamer
make -C plugins/input_uvc all
make[1]: Entering directory '/root/mjpg-streamer/plugins/input_uvc'
make[1]: Warning: File 'Makefile' has modification time 427103 s in the future
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
v4l2uvc.c: In function init_videoIn’:
v4l2uvc.c:88:23: warning: variable currentHeight set but not used [-Wunused-but-set-variable]
     int currentWidth, currentHeight = 0;
                       ^
v4l2uvc.c:88:9: warning: variable currentWidth set but not used [-Wunused-but-set-variable]
     int currentWidth, currentHeight = 0;
         ^
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
jpeg_utils.c: In function compress_yuv_to_jpeg’:
jpeg_utils.c:208:27: warning: v may be used uninitialized in this function [-Wmaybe-uninitialized]
             r = (y + (359 * v)) >> 8;
                           ^
jpeg_utils.c:209:26: warning: u may be used uninitialized in this function [-Wmaybe-uninitialized]
             g = (y - (88 * u) - (183 * v)) >> 8;
                          ^
jpeg_utils.c:209:20: warning: y may be used uninitialized in this function [-Wmaybe-uninitialized]
             g = (y - (88 * u) - (183 * v)) >> 8;
                    ^
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_uvc'
cp plugins/input_uvc/input_uvc.so .
make -C plugins/output_file all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_file'
make[1]: Warning: File 'Makefile' has modification time 427099 s in the future
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_file'
cp plugins/output_file/output_file.so .
make -C plugins/output_udp all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_udp'
make[1]: Warning: File 'Makefile' has modification time 427098 s in the future
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_udp.so output_udp.c
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_udp'
cp plugins/output_udp/output_udp.so .
make -C plugins/output_http all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_http'
make[1]: Warning: File 'Makefile' has modification time 427097 s in the future
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_http'
cp plugins/output_http/output_http.so .
make -C plugins/input_file all
make[1]: Entering directory '/root/mjpg-streamer/plugins/input_file'
make[1]: Warning: File 'Makefile' has modification time 427094 s in the future
make[1]: Nothing to be done for 'all'.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_file'
cp plugins/input_file/input_file.so .
make: warning:  Clock skew detected.  Your build may be incomplete.
root@NanoPi-NEO-Air:~/mjpg-streamer# ./start.sh
MJPG Streamer Version: svn rev:
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 1280 x 720
 i: Frames Per Second.: 30
 i: Format............: YUV
 i: JPEG Quality......: 90
ERROR opening V4L interface: No such file or directory
 Init v4L2 failed !! exit fatal
 i: init_VideoIn failed
root@NanoPi-NEO-Air:~/mjpg-streamer#

 

What should i do

 

Link to comment
Share on other sites

  • Tido changed the title to Launch cam500a camera by nanopi neo air [solved]
1 hour ago, @lex said:

Here you have it:

 

cam500a_x_cam500b.jpg.b651246806773b4367908a48a41a2d37.jpg

 

 

 

 

Is cam500a the only problem? Is the problem resolved by changing it to cam500b?

There is no way to answer the cam500a?

Thank you very much for your directions

 

Link to comment
Share on other sites

1 hour ago, @lex said:

CAM500A needs to add some resistor to work with neo air.

There was an instruction on FriendlyArm  to add this resistor to become CAM500B, but i can't find it right now.

 

 

 

 

 

I also feel there is another problem, I do not understand it

When I execute command ''make'' , the operation is not successful

Can you guide me where the problem is?

root@NanoPi-NEO-Air:~/mjpg-streamer# make
make: svnversion: Command not found
make: Warning: File 'Makefile' has modification time 427105 s in the future
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o mjpg_streamer.o mjpg_streamer.c
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall    -c -o utils.o utils.c
gcc -D'SVN_REV=""' -O2 -DLINUX -D_GNU_SOURCE -Wall  mjpg_streamer.o utils.o -lpthread -ldl -o mjpg_streamer
chmod 755 mjpg_streamer
make -C plugins/input_uvc all
make[1]: Entering directory '/root/mjpg-streamer/plugins/input_uvc'
make[1]: Warning: File 'Makefile' has modification time 427103 s in the future
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o v4l2uvc.lo v4l2uvc.c
v4l2uvc.c: In function init_videoIn’:
v4l2uvc.c:88:23: warning: variable currentHeight set but not used [-Wunused-but-set-variable]
     int currentWidth, currentHeight = 0;
                       ^
v4l2uvc.c:88:9: warning: variable currentWidth set but not used [-Wunused-but-set-variable]
     int currentWidth, currentHeight = 0;
         ^
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o jpeg_utils.lo jpeg_utils.c
jpeg_utils.c: In function compress_yuv_to_jpeg’:
jpeg_utils.c:208:27: warning: v may be used uninitialized in this function [-Wmaybe-uninitialized]
             r = (y + (359 * v)) >> 8;
                           ^
jpeg_utils.c:209:26: warning: u may be used uninitialized in this function [-Wmaybe-uninitialized]
             g = (y - (88 * u) - (183 * v)) >> 8;
                          ^
jpeg_utils.c:209:20: warning: y may be used uninitialized in this function [-Wmaybe-uninitialized]
             g = (y - (88 * u) - (183 * v)) >> 8;
                    ^
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o dynctrl.lo dynctrl.c
gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o input_uvc.so input_uvc.c v4l2uvc.lo jpeg_utils.lo dynctrl.lo -ljpeg
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_uvc'
cp plugins/input_uvc/input_uvc.so .
make -C plugins/output_file all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_file'
make[1]: Warning: File 'Makefile' has modification time 427099 s in the future
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_file.so output_file.c
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_file'
cp plugins/output_file/output_file.so .
make -C plugins/output_udp all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_udp'
make[1]: Warning: File 'Makefile' has modification time 427098 s in the future
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_udp.so output_udp.c
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_udp'
cp plugins/output_udp/output_udp.so .
make -C plugins/output_http all
make[1]: Entering directory '/root/mjpg-streamer/plugins/output_http'
make[1]: Warning: File 'Makefile' has modification time 427097 s in the future
gcc -c -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o httpd.lo httpd.c
gcc -O1 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -o output_http.so output_http.c httpd.lo
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/output_http'
cp plugins/output_http/output_http.so .
make -C plugins/input_file all
make[1]: Entering directory '/root/mjpg-streamer/plugins/input_file'
make[1]: Warning: File 'Makefile' has modification time 427094 s in the future
make[1]: Nothing to be done for 'all'.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/root/mjpg-streamer/plugins/input_file'
cp plugins/input_file/input_file.so .
make: warning:  Clock skew detected.  Your build may be incomplete.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines