<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I tried to compile the package libmraa as single and have some problems with the dependencies:<div class=""><br class=""></div><div class="">Followed this: <a href="https://openwrt.org/docs/guide-developer/single.package" class="">https://openwrt.org/docs/guide-developer/single.package</a></div><div class="">First i searched for all dependencies:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">root@OpenWrt:/# opkg info libmraa</div><div class="">Package: libmraa</div><div class="">Version: 2.0.0-2</div><div class="">Depends:<b class=""> libc,</b> libstdcpp6, libjson-c4</div><div class="">Status: install user installed</div><div class="">Section: libs</div><div class="">Architecture: mipsel_24kc</div><div class="">Size: 64409</div><div class="">Filename: libmraa_2.0.0-2_mipsel_24kc.ipk</div><div class=""><br class=""></div><div class="">root@OpenWrt:/# opkg info<b class=""> libc</b></div><div class="">Package: libc</div><div class="">Version: 1.1.23-2</div><div class="">Depends:<b class=""> libgcc1</b></div><div class="">Status: install hold installed</div><div class="">Essential: yes</div><div class="">Architecture: mipsel_24kc</div><div class="">Installed-Time: 1568571183</div></blockquote><div class=""><br class=""></div><div class="">then i tried to make menuconfig so i can tick the dependencies but i did not find the dependencie of libc named libgcc1. </div><div class="">A try to compile after installing tools and toolchain fails as well:</div><div class=""><br class=""></div><div class=""><div class="">novski@ubuntu:~/Documents/openwrt$ make package/libgcc1/compile V=s</div><div class="">make[1]: Entering directory '/home/novski/Documents/openwrt'</div><div class="">make[1]: *** No rule to make target 'package/libgcc1/compile'.  Stop.</div><div class="">make[1]: Leaving directory '/home/novski/Documents/openwrt'</div><div class="">/home/novski/Documents/openwrt/include/toplevel.mk:216: recipe for target 'package/libgcc1/compile' failed</div><div class="">make: *** [package/libgcc1/compile] Error 2</div><div class=""><br class=""></div><div class="">Why do i not find the dependency libgcc1 in 'make menuconfig' search (/)?</div><div class=""><br class=""></div><div class="">Thanks, Ivan </div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">Am 19.09.2019 um 20:18 schrieb Ivan Hörler <<a href="mailto:ivanhoerler@gmail.com" class="">ivanhoerler@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi</div><div class="">I have problems makeing libmraa working on Linkit Smart 7688.</div><div class="">The installation worked without problems and i tested with a python script. See details below:</div><div class=""><br class=""></div><div class="">what i did: </div><div class="">- Compiled a openWRT 18.6</div><div class="">- opkg update </div><div class="">- opkg install libmraa</div><div class="">- opkg install python3-light</div><div class="">- opkg install libmraa-python3</div><br class=""><div class="">- copied this skript to /root: </div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">import mraa</div></div><div class=""><div class="">import time</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class="">try:</div></div><div class=""><div class="">    print (mraa.getVersion())</div></div><div class=""><div class="">except:</div></div><div class=""><div class="">    print("no mraa available")</div></div><div class=""><div class=""><br class=""></div></div><div class=""><div class=""># Refer to the pin-out digram for the GPIO number to silk print mapping</div></div><div class=""><div class=""># in this example the number 44 maps to Wi-Fi LED.</div></div><div class=""><div class="">pin = mraa.Gpio(2)</div></div><div class=""><div class="">pin.dir(mraa.DIR_OUT)</div></div><div class=""><div class="">while True:</div></div><div class=""><div class="">    pin.write(1)</div></div><div class=""><div class="">    time.sleep(1)</div></div><div class=""><div class="">    pin.write(0)</div></div><div class=""><div class="">    time.sleep(1)</div></div></blockquote><div class=""><br class=""></div><div class="">- and executed:</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">root@OpenWrt:~# python3 mraa-test-simple.py </div></div><div class=""><div class="">v2.0.0</div></div><div class=""><div class="">Traceback (most recent call last):</div></div><div class=""><div class="">  File "mraa-test-simple.py", line 11, in <module></div></div><div class=""><div class="">    pin = mraa.Gpio(2)</div></div><div class=""><div class="">  File "/usr/lib/python3.7/site-packages/mraa.py", line 391, in __init__</div></div><div class=""><div class="">    _mraa.Gpio_swiginit(self, _mraa.new_Gpio(pin, owner, raw))</div></div><div class=""><div class="">ValueError: Invalid GPIO pin specified</div></div><div class=""><br class=""></div></blockquote><br class=""><div class="">- checked with a LED on pin2 like this if GPIO2 works:</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">root@OpenWrt:~# cd /sys/class/gpio/</div><div class="">root@OpenWrt:/sys/class/gpio# ls</div><div class="">export      gpiochip0   gpiochip32  gpiochip64  unexport</div><div class="">root@OpenWrt:/sys/class/gpio# echo 2 > export</div><div class="">root@OpenWrt:/sys/class/gpio# ls</div><div class="">export      gpio2       gpiochip0   gpiochip32  gpiochip64  unexport</div><div class="">root@OpenWrt:/sys/class/gpio# cd gpio2</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# echo "out" > direction</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# cat value</div><div class="">0</div><div class="">root@OpenWrt:/sys/devices/platform/10000000.palmbus/10000600.gpio/gpiochip0/gpio/gpio2# echo 1 > value</div></div><div class=""><br class=""></div></blockquote>- redone previous step with no changes in error output.<div class=""><br class=""></div><div class="">what am i missing?</div><div class=""><br class=""></div><div class="">Thanks for comments, Ivan Hörler</div></div>_______________________________________________<br class="">openwrt-devel mailing list<br class=""><a href="mailto:openwrt-devel@lists.openwrt.org" class="">openwrt-devel@lists.openwrt.org</a><br class="">https://lists.openwrt.org/mailman/listinfo/openwrt-devel<br class=""></div></blockquote></div><br class=""></div></body></html>