Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1740478/#msg_1740478
I want to generate a software based PWM in Raspberry Pi. For this I have installed wiringPi library.
Now I want to add the wiringPi library to Forte while compiling it. How this can be done? Also do I need to compile the same in the local forte?
Thanks,
Santosh]]>Santosh Kumar Panda2016-08-14T14:37:26-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1740482/#msg_1740482
you need to specify the library you want to add in the CMakeList.txt file with the forte_add_link_library command. You can have a look at the mqtt_paho module for examples on how you can do this.
No you don't need to add this to your local forte. You only need add the libraries for the specific platforms.
Alois]]>Alois Zoitl2016-08-14T18:20:43-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1777912/#msg_1777912
have you finished it ?]]>Barry wan2017-12-06T06:46:57-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1778362/#msg_1778362
Jose Maria Jesus Cabral Lassalle2017-12-13T13:15:14-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1778497/#msg_1778497
Barry wan2017-12-15T01:44:50-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1778578/#msg_1778578
https://www.eclipse.org/4diac/documentation/html/installation/install.html#ownFORTE to build forte with the new FB.]]>Jose Maria Jesus Cabral Lassalle2017-12-18T08:25:36-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1778630/#msg_1778630
Barry wan2017-12-19T06:37:27-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795057/#msg_1795057
Rodrigo Esposito2018-09-13T18:25:08-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795063/#msg_1795063
Alois Zoitl2018-09-13T19:58:14-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795176/#msg_1795176
I'm trying to use the pwm block and I'm having this Response ID: "Unsupported_Type" The runtime Device Manager has returned an Error of type Unsupported_Type . In the images are the console outputs. I'm running the fort on raspberry and the version was built according to image 3. Could someone help me? I have the wiringPi library installed on raspberry and I ran a test with an application in c and it worked.]]>Rodrigo Esposito2018-09-17T20:20:36-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795205/#msg_1795205
Then if you have several fortes are you starting the right one.
Finally is there already a forte running on your system, e.g., started from systemd or init.d. Better check with ps -aux | grep forte and if yes kill it first.
]]>Alois Zoitl2018-09-18T11:25:31-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795232/#msg_1795232
Rodrigo Esposito2018-09-18T20:46:20-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1795233/#msg_1795233
Alois Zoitl2018-09-18T20:51:22-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1798458/#msg_1798458
Alois Zoitl wrote on Sun, 14 August 2016 18:20
Hi,
you need to specify the library you want to add in the CMakeList.txt file with the forte_add_link_library command. You can have a look at the mqtt_paho module for examples on how you can do this.
No you don't need to add this to your local forte. You only need add the libraries for the specific platforms.
Alois
Thank you Alois.
Could you kindly provide some detailed information on how to change the CMakeList file and inside which folder?
For example, I want to add libiec61850 library https://libiec61850.com/libiec61850/documentation/. I downloaded it and moves it inside the FORTE folder. After compiling, a static library libiec61850.a is created.
Thank you.]]>Siyu Zhang2018-11-19T12:08:55-00:00Re: How to add wiringPi library to access the softPWM functions.
https://www.eclipse.org/forums/index.php/mv/msg/1080117/1798602/#msg_1798602
In the CmakeList.txt in your module you can then add your own FBs and additional C/C++ code you need or reference libraries and include directories. For the latter you can use:
* forte_add_include_directories
* forte_add_link_directories
*forte_add_link_library
You can see the different 4diac FORTE modules for examples of how these options are used.
In all cases to make your life easier keep the code of the libraries, your code, 4diac FORTE code separate.
Cheers,
Alois
P.S.: Just in case you missed it: When you are not paying libiec61850 is provided under GPLv3. GPLv3 is not compatible with 4diac's EPL. This may cause legal issues.]]>Alois Zoitl2018-11-20T23:00:34-00:00