7 Replies Latest reply on Jul 27, 2016 1:35 PM by Intel Corporation

    mraa failed on Yocto build with split layers

    PaulaK

      Hello,

      I tried to follow this tutorial IoT - Creating a Yocto image for the Intel® Galileo board using split layers | Intel® Software  but it crashs when it comes to do_compile MRAA (log below).

       

      | cd /home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build/src/java && /home/pksm/iotdk/newBld/tmp/sysroots/quark/usr/lib/jvm/java-8-openjdk/bin/javac *.java -d /home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build/src/java

      | /bin/sh: 1: /home/pksm/iotdk/newBld/tmp/sysroots/quark/usr/lib/jvm/java-8-openjdk/bin/javac: not found

      | make[2]: *** [src/java/libmraajava.so] Error 127

      | make[2]: Leaving directory `/home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build'

      | make[1]: *** [src/java/CMakeFiles/mraajava.dir/all] Error 2

      | make[1]: *** Waiting for unfinished jobs....

      | make[2]: Leaving directory `/home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build'

      | /home/pksm/iotdk/newBld/tmp/sysroots/x86_64-linux/usr/bin/cmake -E cmake_progress_report /home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build/CMakeFiles  67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83

      | [ 58%] Built target mraajs

      | make[1]: Leaving directory `/home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/build'

      | make: *** [all] Error 2

      | ERROR: oe_runmake failed

      | WARNING: exit code 1 from a shell command.

      | ERROR: Function failed: do_compile (log file is located at /home/pksm/iotdk/newBld/tmp/work/i586-poky-linux/mraa/0.8.0-r0/temp/log.do_compile.28016)

      ERROR: Task 669 (/home/pksm/iotdk/meta-intel-iot-middleware/recipes-devtools/mraa/mraa_0.8.0.bb, do_compile) failed with exit code '1'

       

      FYI, I had to add a meta-java layer for openjdk8 and my host machine is Ubuntu 12.04.

       

      Thanks!