Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Missing wiringpi lib(adding libraries)
Missing wiringpi lib [message #1851616] Mon, 11 April 2022 09:49 Go to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hello,
first of all, I'm very satisfied with eclipse 2022-03. Thanks to the designers!
I have only one little problem. To make an application for a raspberry I need wiringpi to control GPIOs.
There is no such library on my host. I use the Prebuilt Windows Toolchain for Raspberry Pi on https://gnutoolchains.com/raspberry/.
But they do not provide this library.
Is there any way to install/create this lib?
What I have are all the necessary header and c files.
Does it help if I build the library using eclipse? How can I create a library? I can't ana instruction how th make it.
Could somebody help me.
Kurt

[Updated on: Mon, 11 April 2022 09:50]

Report message to a moderator

Re: Missing wiringpi lib [message #1851812 is a reply to message #1851616] Mon, 18 April 2022 12:16 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 739
Registered: August 2014
Senior Member
The wiringPi libraries and headers are included in Raspbian or Raspi OS releases.

The libraries are shared (dynamic) libraries, and they are needed on both the target computer and the development computer for proper linking.

Please have a look at attached PDF where I have made notes on Raspbian cross-development. The PDF is a expanded version of a file I posted earlier.


--

Tauno Voipio
Re: Missing wiringpi lib [message #1851842 is a reply to message #1851616] Tue, 19 April 2022 15:26 Go to previous messageGo to next message
tepalia02 02 is currently offline tepalia02 02Friend
Messages: 20
Registered: April 2022
Junior Member
You can Use External Libraries in Eclipse for the Raspberry Pi. In order to utilize a library, you will need to include one or more header files in your source code. Then open up the Project Properties (Project>Properties) and add the path to the header files for the relevant compiler
Re: Missing wiringpi lib [message #1851856 is a reply to message #1851842] Wed, 20 April 2022 10:14 Go to previous messageGo to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
thanks a lot for your answers
@ Tauno Voipio thanksfor yourvery good description.
It sounds quiet easy but I run Eclipse on a windows 10 machine and the toolcahin from here : https://gnutoolchains.com/raspberry64/ and it is quiet difficult to find out where the include- and lib-files have to be located.
There are also some links found on the rapberry:
lrwxrwxrwx  1 root root    22 Apr 18 09:24 libwiringPiDev.so -> libwiringPiDev.so.2.70
-rwxr-xr-x  1 root root 27844 Apr 18 09:24 libwiringPiDev.so.2.70
lrwxrwxrwx  1 root root    19 Apr 18 09:24 libwiringPi.so -> libwiringPi.so.2.70
-rwxr-xr-x  1 root root 69860 Apr 18 09:24 libwiringPi.so.2.70

and I do not know how to handle it.
This toolchain doesn't include wiringpi at all:
The includefile works good, birt the lib file cannot be found by the linker.
@ tepalia02 02,
it is not clear how to make this.
I will try it.

[Updated on: Wed, 20 April 2022 14:19]

Report message to a moderator

Re: Missing wiringpi lib [message #1851871 is a reply to message #1851856] Wed, 20 April 2022 16:33 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 739
Registered: August 2014
Senior Member
The directory where those links were found is the equivalent to Raspbian /usr/lib/ in my examples.

Next, you should find the place for the header files. It could be up one step from the above directory and include/ there.


--

Tauno Voipio

[Updated on: Wed, 20 April 2022 16:35]

Report message to a moderator

Re: Missing wiringpi lib [message #1852091 is a reply to message #1851871] Thu, 28 April 2022 16:40 Go to previous messageGo to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hello to all,
i got a solution for this problem.
The bulleye raspian does not provide wiringpi any more.
You have to use an older version.
Thanks to all which answered in this post!
Re: Missing wiringpi lib [message #1853451 is a reply to message #1852091] Sat, 02 July 2022 17:21 Go to previous messageGo to next message
tepalia02 02 is currently offline tepalia02 02Friend
Messages: 20
Registered: April 2022
Junior Member
Which version did you choose finally?
Re: Missing wiringpi lib [message #1853456 is a reply to message #1853451] Sat, 02 July 2022 18:32 Go to previous messageGo to next message
Kurt Struevy is currently offline Kurt StruevyFriend
Messages: 45
Registered: May 2016
Member
Hi tepalia02,
I use now pigpio.
It works perfect for my duties.
Re: Missing wiringpi lib [message #1853469 is a reply to message #1853456] Sun, 03 July 2022 20:25 Go to previous message
tepalia02 02 is currently offline tepalia02 02Friend
Messages: 20
Registered: April 2022
Junior Member
I think I am hearing this OS name for the first time. Thank you.
Previous Topic:undefined reference to `sin'
Next Topic:Scanner Discovery for Makefile Project
Goto Forum:
  


Current Time: Sat Feb 04 02:39:15 GMT 2023

Powered by FUDForum. Page generated in 0.04972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top