Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Missing wiringpi lib(adding libraries)
Missing wiringpi lib [message #1851616] Mon, 11 April 2022 05:49 Go to next message
Eclipse UserFriend
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 05:50] by Moderator

Re: Missing wiringpi lib [message #1851812 is a reply to message #1851616] Mon, 18 April 2022 08:16 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Missing wiringpi lib [message #1851842 is a reply to message #1851616] Tue, 19 April 2022 11:26 Go to previous messageGo to next message
Eclipse UserFriend
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 06:14 Go to previous messageGo to next message
Eclipse UserFriend
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 10:19] by Moderator

Re: Missing wiringpi lib [message #1851871 is a reply to message #1851856] Wed, 20 April 2022 12:33 Go to previous messageGo to next message
Eclipse UserFriend
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.

[Updated on: Wed, 20 April 2022 12:35] by Moderator

Re: Missing wiringpi lib [message #1852091 is a reply to message #1851871] Thu, 28 April 2022 12:40 Go to previous messageGo to next message
Eclipse UserFriend
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 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Which version did you choose finally?
Re: Missing wiringpi lib [message #1853456 is a reply to message #1853451] Sat, 02 July 2022 14:32 Go to previous messageGo to next message
Eclipse UserFriend
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 16:25 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:33:35 EDT 2025

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

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

Back to the top