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

Deprecated dependency WiringPi #2

Open
Ditman352 opened this issue Mar 1, 2023 · 3 comments
Open

Deprecated dependency WiringPi #2

Ditman352 opened this issue Mar 1, 2023 · 3 comments
Assignees

Comments

@Ditman352
Copy link

Ditman352 commented Mar 1, 2023

is the wiringPi.h file missing. I'm getting the error below.

@raspberrypi:~/LagBox/src $ make
mkdir ../bin
gcc -Wall -c inputLatencyMeasureTool.c -o ../bin/inputLatencyMeasureTool.o -std=gnu99
inputLatencyMeasureTool.c:42:10: fatal error: wiringPi.h: No such file or directory
42 | #include <wiringPi.h>
| ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:6: main] Error 1

If I try to continue I get this when I try to use gui and start measurement.

888888@raspberrypi:~/LagBox/gui $ python3 latency_gui.py
/home/888888/LagBox/gui/latency_gui.py:100: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if QtWidgets.QWizard.currentId(self) is not 1:
/home/888888/LagBox/gui/latency_gui.py:438: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(line) is 0: # Count all empty lines
/home/888888/LagBox/gui/latency_gui.py:468: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(line) is 0:
/home/888888/LagBox/gui/latency_gui.py:682: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif len(line) is 0:
/home/888888/LagBox/gui/DataPlotter.py:40: SyntaxWarning: "is" with a literal. Did you mean "=="?
if current_file[i][0] is '#': # If row is a comment
cat /sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed
Speed: cat:'/sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed':NosuchfileordirectoryM
cat /sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed
Speed: cat:'/sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed':NosuchfileordirectoryM
cat /sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed
Speed: cat:'/sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed':NosuchfileordirectoryM
cat /sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed
Speed: cat:'/sys/devices/platform/scb/fd500000.pcie/pci0000:00/speed':NosuchfileordirectoryM
Device name: Performance Designed Products Rock Candy Wired Controller for Ni
Device type ID: 1
Values for bInterval of device:
['5', '5']
Starting Key Detection
../bin/inputLatencyMeasureTool -m 3 -tmin 100 -tmax 10000 -b 308 -d 1 -event 3 -n 1000 -name 'Performance Designed Products Rock Candy Wired Controller for Ni'
b'/bin/sh: 1: ../bin/inputLatencyMeasureTool: not found\n'
b''
QThread: Destroyed while thread is still running
Aborted

@A-Schmid
Copy link
Member

A-Schmid commented Mar 1, 2023

Hi!
wiringPi is an external dependency you can find all information about it here: http://wiringpi.com/
You have to install it in order to build the the "inputLatencyMeasureTool".
In your case, the (Python-) GUI crashed because the actual measuring tool (written in C) could not be found, as it did not get built because of the missing dependency.
Hope I could help :)

@Ditman352
Copy link
Author

Ditman352 commented Mar 1, 2023

Yes this was the issue. However "http://wiringpi.com/" didn't work for me and I did need to install wiringPi.h from a 3rd party source. https://github.com/WiringPi/WiringPi got me to the next step. Still working....

@Ditman352
Copy link
Author

Updating the page below would be nice once this gets worked out.

https://hci.ur.de/projects/latency/howto

@Ditman352 Ditman352 changed the title Qthread is destroyed while thread is running. Deprecated dependency WiringPi Mar 1, 2023
@A-Schmid A-Schmid self-assigned this Mar 1, 2023
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