From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example
I cloned the Onion LEDE/OpenWrt cross-compiler yesterday (23 July 2018) from here:
It all built successfully, in an Ubuntu 16.04 VM running on my Mac.
However, like other posters on this thread, I am unable to build the cross-compile example described in the Onion documentation here:
I ran into the same "can't find ugpio/ugpio.h" error that all other posters here on this thread have described.
I see @Pavel-Metrokhin 's tutorial with "A Small but Important Note" about enabling ugpio support in the cross-compiler (via make menuconfig) here:
I've looked at the various options within "make menuconfig" and cannot find one for libugpio anywhere.
Pavel, can you please tell me where, exactly, this libugpio package option is located (within the menuconfig system?) Or - much better - please fix the pre-configured cross-compile environment. And / or fix the documentation. I find it very disconcerting that this problem has been reported to Omega on this forum for more than a year and not been fixed. The example programs should build and run flawlessly.
Same issue as most people here with the ugpio/ugpio.h error. You a major problem in continuity with your documentation and is seems like it should be an easy fix. As others have expressed, this is very irritating. Please fix
@Tim-DeBenedictis @James-Tate it's possible that you guys are overwriting the .config file with the scripts/feeds script. Please review the earlier post where the overwriting problem is described: http://community.onion.io/topic/2755/wifi-not-working-after-building-customized-image/30
I had the exact same issue. It appears the libugpio is missing in the onion/omega2-source image. The alternate link provided above (https://dev.openwrt.org/export/35269/packages/libs/libugpio/Makefile) no longer appears to be active. I did however manage to grab the Makefile from the OpenWrt_Packages repository which allowed for the example to compile finally.
In case it helps anyone, I've uploaded my pre-built omega2-source image with the libugpio library and compiled gpio example to Docker Hub here:
Yes, I am aware that this is an old topic, but I got stuck with the same issue just now I managed to get past - maybe it will help someone. Who knows...
Please use the steps described by Flemming Richter above just change the Makefile URL to https://raw.githubusercontent.com/openwrt/packages/master/libs/libugpio/Makefile
It worked for me flawlessly.
@Les-Nie edit /etc/opkg/distfeeds.conf, uncomment
src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages
opkg install libugpio