- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Missing Header: wiringPiSPI.h
Missing Header: wiringPiSPI.h
8 years 6 months ago #29529522
by karman
Missing Header: wiringPiSPI.h was created by karman
Hi,
When trying to compile the test application I get following header missing error:
RioBoard_d.cpp:14:25: fatal error: wiringPiSPI.h: No such file or directory
Where can I find this file?
Thanks
When trying to compile the test application I get following header missing error:
RioBoard_d.cpp:14:25: fatal error: wiringPiSPI.h: No such file or directory
Where can I find this file?
Thanks
Please Log in or Create an account to join the conversation.
- Griffin Baker
8 years 6 months ago #29529524
by Griffin Baker
Replied by Griffin Baker on topic Missing Header: wiringPiSPI.h
If you could, please give us a little more details about this. What is the O/S being used to compile? What was the last command you sent to get this error to pop up?
Please Log in or Create an account to join the conversation.
8 years 6 months ago - 8 years 6 months ago #29529526
by karman
Replied by karman on topic Missing Header: wiringPiSPI.h
Raspbian
Make install
If you can just tell me which library is used i can install it.
Make install
If you can just tell me which library is used i can install it.
Please Log in or Create an account to join the conversation.
- opal
8 years 6 months ago #29529527
by opal
Replied by opal on topic Missing Header: wiringPiSPI.h
Hello karman,
Normally test application should compile out-of-the box. For that to happen we provide installation script (platform dependent, though):
If you have chosen to use Raspbian please consider this script "RIO Install Script for Raspbian.NOOBS"
In case of ArchLinux: "RIO Install Script for Arch Linux"
After the installation all include paths should be ready for compilation.
Let us know how you installed RIOBoard software on your Raspberry and which Linux distribution do you have.
Normally test application should compile out-of-the box. For that to happen we provide installation script (platform dependent, though):
If you have chosen to use Raspbian please consider this script "RIO Install Script for Raspbian.NOOBS"
In case of ArchLinux: "RIO Install Script for Arch Linux"
After the installation all include paths should be ready for compilation.
Let us know how you installed RIOBoard software on your Raspberry and which Linux distribution do you have.
Please Log in or Create an account to join the conversation.
8 years 6 months ago #29529528
by karman
Replied by karman on topic Missing Header: wiringPiSPI.h
Followed the document. Installed fine etc, Run test app and reading rio perfectly.
Its just when trying to compile the test app in the src folder to test if env is correct before writing own app when i get the error. I assume its cause the library is not installed by default on raspbian or i uninstalled it with cleanup
Which library provides the header mentioned?
Its just when trying to compile the test app in the src folder to test if env is correct before writing own app when i get the error. I assume its cause the library is not installed by default on raspbian or i uninstalled it with cleanup
Which library provides the header mentioned?
Please Log in or Create an account to join the conversation.
- opal
8 years 6 months ago #29529529
by opal
Replied by opal on topic Missing Header: wiringPiSPI.h
Hello karman,
It is WiringPi ( WiringPi )
But we can confirm that version of this library we distribute works correctly. As for newer versions (if any) - we did not check yet, therefore we can't confirm that it works.
Anyway, please share your experience.
It is WiringPi ( WiringPi )
But we can confirm that version of this library we distribute works correctly. As for newer versions (if any) - we did not check yet, therefore we can't confirm that it works.
Anyway, please share your experience.
Please Log in or Create an account to join the conversation.
8 years 6 months ago #29529530
by karman
Replied by karman on topic Missing Header: wiringPiSPI.h
Thanks
I will double check when i at berry agaiin to make sure its just not in some funny folder
I will double check when i at berry agaiin to make sure its just not in some funny folder
Please Log in or Create an account to join the conversation.
- opal
8 years 6 months ago #29529531
by opal
Replied by opal on topic Missing Header: wiringPiSPI.h
Hello karman,
If you are comfortable to install WiringPi on your own - cool!
Otherwise you can run the RIOBoard install script again (save your changed files before, if any). The script will remove previous and install the fresh set of RIOBoard files.
That (missing library) is something we are trying our best to prevent. Therefore we decided to include the library in the RIOBoard package.karman wrote: I assume its cause the library is not installed by default on raspbian or i uninstalled it with cleanup
If you are comfortable to install WiringPi on your own - cool!
Otherwise you can run the RIOBoard install script again (save your changed files before, if any). The script will remove previous and install the fresh set of RIOBoard files.
Please Log in or Create an account to join the conversation.
8 years 6 months ago #29529533
by karman
Replied by karman on topic Missing Header: wiringPiSPI.h
Opal
Ok, running script again and checked on system as well.. The actual library (.so) files are there, but the source library (headers etc) seems to be missing.
here the output of the script .. just run it again now.
reboot failed so need to run to office again but pooring rain, so gonna have to wait :)
Ok, running script again and checked on system as well.. The actual library (.so) files are there, but the source library (headers etc) seems to be missing.
here the output of the script .. just run it again now.
reboot failed so need to run to office again but pooring rain, so gonna have to wait :)
root@raspberrypi:~# ./rio_board_install_raspbian_NOOBS.sh
----- Rio Board installation script for Raspbian.NOOBS
----- Creating directory for Rio Board files ...
----- Downloading installation files for Rio Board ...
2014-07-17 17:30:09 URL:http://dev.roboteq.com/dev1/riofiles/RioBoardInstallFiles.zip [47639/47639] -> "RioBoardInstallFiles.zip" [1]
----- Changing file attributes for installation archive ...
----- Unpacking RioBoard installation files ...
Archive: /riofiles/RioBoardInstallFiles.zip
inflating: rioboard_d
inflating: startup_script/rioboard_d
inflating: rioboard.so
inflating: libwiringPi.so.1.0
inflating: rioboard_test
inflating: raspio-src/makefile
inflating: raspio-src/RioBoard.c
inflating: raspio-src/RioBoard.h
inflating: raspio-src/RioBoard_d.cpp
inflating: raspio-src/RioBoard_d.h
inflating: raspio-src/RioBoard_py.cpp
inflating: raspio-src/rioboard_test.cpp
inflating: librioboard.a
inflating: rioboard_d.service
inflating: raspio-src/rioboard_test.py
----- Setting file attributes for Rio Board files ...
----- Checking for previous version of Rio Board daemon ...
/usr/sbin/rioboard_d
----- Removing the previous version of Rio Board daemon ...
update-rc.d: using dependency based boot sequencing
----- Installng RioBoard daemon ...
update-rc.d: using dependency based boot sequencing
----- Installing wiringPi library
----- Fetching the recent firmware for RioBoard
2014-07-17 17:30:14 URL:http://dev.roboteq.com/dev1/riofiles/raspioF3-update.zip [66703/66703] -> "raspioF3-update.zip" [1]
Archive: /riofiles/raspioF3-update.zip
inflating: RaspioF3-v10-update-091913.bin
----- Removing installation archive ...
----- Checking if minicom is installed ...
minicom was located and will not be installed
----- Asigning the alias riocom for minicom with pre-set parameters for RioBoard ...
----- Disabling the boot over serial port ...
----- Rebootting the system ...
Please Log in or Create an account to join the conversation.
- opal
8 years 6 months ago #29529534
by opal
Replied by opal on topic Missing Header: wiringPiSPI.h
Hello karman,
Yes - you are right. I can reproduce the issue on my side. I will try to fix it asap.
In the meantime, I hope the link to original "WiringPi" library helped.
About the "reboot failed ..." please provide more details.
Yes - you are right. I can reproduce the issue on my side. I will try to fix it asap.
In the meantime, I hope the link to original "WiringPi" library helped.
About the "reboot failed ..." please provide more details.
Please Log in or Create an account to join the conversation.
Moderators: opal
- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Missing Header: wiringPiSPI.h
Time to create page: 0.091 seconds