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

Compiling does not work on OrangePi PC Plus #2

Closed
dl1nux opened this issue May 28, 2024 · 4 comments
Closed

Compiling does not work on OrangePi PC Plus #2

dl1nux opened this issue May 28, 2024 · 4 comments

Comments

@dl1nux
Copy link

dl1nux commented May 28, 2024

Hi and thanks for your short instructions.

I tried it on a Oriange Pi PC Plus, but at the ent of compilation I get some warnings and the GPIO commands do not work.

GPIO Utility
[Compile] gpio.c
[Compile] readall.c
gpio.c: In function ‘doUsbP’:
gpio.c:944:25: warning: unused parameter ‘argc’ [-Wunused-parameter]
944 | static void doUsbP (int argc, char *argv [])
| ~~~~^~~~
gpio.c:944:37: warning: unused parameter ‘argv’ [-Wunused-parameter]
944 | static void doUsbP (int argc, char *argv [])
| ~~~~~~^~~~~~~
readall.c:1616:13: warning: ‘piPlusReadall’ defined but not used [-Wunused-function]
1616 | static void piPlusReadall (int model)
| ^~~~~~~~~~~~~
[Link]
[Install]
chown: warning: '.' should be ':': „root.root“

All Done.

NOTE: To compile programs with wiringPi, you need to add:
-lwiringPi
to your compile line(s) To use the Gertboard, MaxDetect, etc.
code (the devLib), you need to also add:
-lwiringPiDev
to your compile line(s).

pi@orangepipcplus:$ sudo gpio readall
wiringPiSetup: mmap (PWM) failed: Invalid argument
pi@orangepipcplus:
$

Any ideas?

@bassamanator
Copy link
Owner

So wiringOP was not installable, and you were going step by step?

@bassamanator
Copy link
Owner

These are the official instructions for the Orange Pi PC Plus, give them a try:

  1. Delete wiringOP directory, rm -rf ~/.wiringOP (you might need to use sudo and to individually delete sub directories)
  2. cd ~
  3. git clone https://github.com/orangepi-xunlong/wiringOP
cd ~/wiringOP
sudo ./build clean
sudo ./build

@dl1nux
Copy link
Author

dl1nux commented May 30, 2024

This also doesn't work actually. I think there are some open issues in the actual code:
orangepi-xunlong/wiringOP#107
orangepi-xunlong/wiringOP#103

Same error messages appear as before. I think I'll have to wait for a fix.

Regards

@bassamanator
Copy link
Owner

Oh that sucks. I'll add a note about this board on the README.

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