sunfounder / Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi

Sunfounder Smart Video Car Kit for Raspberry Pi
http://www.sunfounder.com
137 stars 117 forks source link

struct statx_timestamp #44

Open Ann-Rachel opened 5 years ago

Ann-Rachel commented 5 years ago

mjpg-streamer run: make USE_LIBV4L2=true clean all

In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:446, from utils.c:33: /usr/include/arm-linux-gnueabihf/bits/statx.h:25:8: error: redefinition of ‘struct statx_timestamp’ struct statx_timestamp ^~~~~~~ In file included from utils.c:32: /usr/include/linux/stat.h:56:8: note: originally defined here struct statx_timestamp { ^~~~~~~ In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:446, from utils.c:33: /usr/include/arm-linux-gnueabihf/bits/statx.h:36:8: error: redefinition of ‘struct statx’ struct statx ^~~~~ In file included from utils.c:32: /usr/include/linux/stat.h:99:8: note: originally defined here struct statx { ^~~~~ make: *** [: utils.o] Error 1

I try to downgrade libc6 but it is not possible and stuck on version 2.28.

Any solution? :/

kindofausername commented 5 years ago

How did you install it? Did you follow the instructions?

https://wiki.ubuntuusers.de/MJPG-Streamer/

Ann-Rachel commented 5 years ago

I follow the description on their page: https://www.sunfounder.com/learn/Smart-Video-Car-for-Raspberry-Pi/56-60-smart-video-car.html

sudo apt-get install subversion sudo apt-get install libv4l-dev sudo apt-get install libjpeg8-dev sudo apt-get install imagemagick

Compile the source code of MJPG-streamer: cd /home/pi/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/mjpg-streamer/mjpg-streamer sudo make USE_LIBV4L2=true clean all

follow the link, I get the same error...

kindofausername commented 5 years ago

Try to just

Make

Without USE_LIBV4L2=true.

Should work if you don't have a fancy webcam and use the provided one.

I will try to install mjpg-streamer on a different machine again keep you updated.

Ann-Rachel commented 5 years ago

thank you, but the camera still doesn't work. I use the one from the set... nothing special...

fgcjamin commented 5 years ago

Hello, I had the same issue, I commented the concerned includes in mjpg-streamer/utils.c line 32 & 33 : //#include <linux/stat.h> //#include <sys/stat.h> Then

make clean all and it works.

zhangzhiyong0410 commented 5 years ago

This is caused by incompatibility with the new Raspberry Pi system.

marvimation commented 4 years ago

Hello, I had the same issue, I commented the concerned includes in mjpg-streamer/utils.c line 32 & 33 : //#include <linux/stat.h> //#include <sys/stat.h> Then

make clean all and it works.

Sounds great fgcjamin! How did you comment out the concerned includes? Do you cd into the mjpg-streamer utils somehow? Please explain your procedure for the noobies thanks.

Willyzw commented 4 years ago

Hello, I had the same issue, I commented the concerned includes in mjpg-streamer/utils.c line 32 & 33 : //#include <linux/stat.h> //#include <sys/stat.h> Then

make clean all and it works.

Sounds great fgcjamin! How did you comment out the concerned includes? Do yo

I have encountered the same error, most likely due to incompatibility with the newest OS Raspbian buster as commented by zhangzhiyong0410. To comment out the problematic lines, you can navigate to the desired folder by cd ~/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/mjpg-streamer/mjpg-streamer in terminal and then edit it by nano utils.c

marvimation commented 4 years ago

Cool! I will try it! Thanks for your kind help!

Best always!

Marco

On Mon, May 4, 2020 at 3:05 PM Willyzw notifications@github.com wrote:

Hello, I had the same issue, I commented the concerned includes in mjpg-streamer/utils.c line 32 & 33 : //#include <linux/stat.h> //#include <sys/stat.h> Then

make clean all and it works.

Sounds great fgcjamin! How did you comment out the concerned includes? Do yo

In terminal, you can navigate to the desired folder by cd ~/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/mjpg-streamer/mjpg-streamer and then edit it by nano utils.c

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sunfounder/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/issues/44#issuecomment-623732785, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGOS4NV5AORAXB36TIM2Z3RP432ZANCNFSM4IFSLBIA .

-- http://www.linkedin.com/pub/marco-pilato/2/632/679

The Marvimation Team

http://www.linkedin.com/pub/marco-pilato/2/632/679 http://www.flickr.com/photos/78738839@N03/7258640088/in/photostream/lightbox/

srikanthaddala commented 4 years ago

Hello, I had the same issue, I commented the concerned includes in mjpg-streamer/utils.c line 32 & 33 : //#include <linux/stat.h> //#include <sys/stat.h> Then

make clean all and it works.

this worked for me too thanks