Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct statx_timestamp #44

Open
Ann-Rachel opened this issue Jul 21, 2019 · 10 comments
Open

struct statx_timestamp #44

Ann-Rachel opened this issue Jul 21, 2019 · 10 comments

Comments

@Ann-Rachel
Copy link

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
Copy link

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

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

@Ann-Rachel
Copy link
Author

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
Copy link

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
Copy link
Author

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

@fgcjamin
Copy link

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
Copy link

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

@marvimation
Copy link

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
Copy link

Willyzw commented May 4, 2020

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
Copy link

marvimation commented May 15, 2020 via email

@srikanthaddala
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants