1 Reply Latest reply on Jul 17, 2015 10:12 AM by JernejH

    Mraa lib, platform_checks.py error

    JernejH

      Hi everyone,

       

      I am trying to use mraa library. I copied github repository to my Galileo board and followed mraa building tutorial. The build was successful, and when I try running the tests, general test and gpio test work, while platform checks gives me this error:

       

      File "platform_checks.py", line 28, in <module>
          @u.skipIf(m.init() != m.ERROR_PLATFORM_ALREADY_INITIALISED, "mraa_init() not valid")
      AttributeError: 'module' object has no attribute 'init'
      

       

      And when I try to build blink example I get error:

       

      root@galileo:~/mraa-master/examples# gcc blink-io.c -o blink
      /tmp/cclloof1.o: In function `main':
      blink-io.c:(.text+0x8b): undefined reference to `mraa_init'
      blink-io.c:(.text+0x96): undefined reference to `mraa_get_version'
      blink-io.c:(.text+0xc1): undefined reference to `mraa_gpio_init'
      blink-io.c:(.text+0x120): undefined reference to `mraa_gpio_dir'
      blink-io.c:(.text+0x137): undefined reference to `mraa_result_print'
      blink-io.c:(.text+0x164): undefined reference to `mraa_gpio_write'
      blink-io.c:(.text+0x17b): undefined reference to `mraa_result_print'
      blink-io.c:(.text+0x1a9): undefined reference to `mraa_gpio_write'
      blink-io.c:(.text+0x1c0): undefined reference to `mraa_result_print'
      blink-io.c:(.text+0x1f3): undefined reference to `mraa_gpio_close'
      blink-io.c:(.text+0x20a): undefined reference to `mraa_result_print'
      collect2: error: ld returned 1 exit status
      root@galileo:~/mraa-master/examples#
      

       

      When I was building I did not get any error messages, but I must have missed something because library is not working. Did someone experience similar problems or knows how to fix mine?

       

      Cheers, Jernej