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

error: ‘struct input_event’ has no member named ‘input_event_usec’ when building on raspbian jessie. #169

Open
thebestofall007 opened this issue Mar 16, 2020 · 2 comments

Comments

@thebestofall007
Copy link

thebestofall007 commented Mar 16, 2020

I now keep getting an error error: ‘struct input_event’ has no member named ‘input_event_usec’ when building on raspbian jessie.

here is the full output:

make[2]: Entering directory '/home/pi/tslib/tslib/tools'
CC ts_uinput.o
ts_uinput.c: In function ‘send_touch_events’:
ts_uinput.c:173:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:174:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:181:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:182:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:195:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:196:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:202:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:203:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:209:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:210:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:217:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:218:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:224:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:225:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:231:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:232:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:238:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:239:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:245:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:246:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:252:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:253:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:259:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:260:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:266:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:267:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:273:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:274:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:280:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:281:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:287:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:288:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:294:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:295:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:301:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:302:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:308:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:309:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:316:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:317:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:325:16: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:326:16: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
ts_uinput.c:336:15: error: ‘struct input_event’ has no member named ‘input_event_sec’
data->ev[c].input_event_sec = s[j][i].tv.tv_sec;
^
ts_uinput.c:337:15: error: ‘struct input_event’ has no member named ‘input_event_usec’
data->ev[c].input_event_usec = s[j][i].tv.tv_usec;
^
Makefile:425: recipe for target 'ts_uinput.o' failed
make[2]: *** [ts_uinput.o] Error 1
make[2]: Leaving directory '/home/pi/tslib/tslib/tools'
Makefile:476: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/tslib/tslib'
Makefile:384: recipe for target 'all' failed
make: *** [all] Error 2

The build was working about 4 days ago. What happened? What is a workaround to this?

@thebestofall007 thebestofall007 changed the title error: ‘struct input_event’ has no member named ‘input_event_usec’ when building on raspbian. error: ‘struct input_event’ has no member named ‘input_event_usec’ when building on raspbian jessie. Mar 16, 2020
@thebestofall007
Copy link
Author

thebestofall007 commented Mar 16, 2020

I'm using a version 1.21 zip for now, as it compiles without error.

@merge
Copy link
Member

merge commented Mar 19, 2020

should be fixed in the master branch now

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

2 participants