9 Replies Latest reply on Apr 11, 2016 1:53 PM by AlexT_Intel

    Need help for building Python 3 with mraa and upm


      I'm using several SDKs in much project, which work only with Python 3.


      I've managed to build Python and Mraa, but got problems with


      1. Finding tkinter lib when building python
      2. Build UPM - it says that can't find mraa lib


      For building Python and mraa I used this guide: Problems generating wrappers for Python 3.4.1 · Issue #172 · intel-iot-devkit/mraa · GitHub

      For building upm - https://github.com/intel-iot-devkit/upm/blob/master/docs/building.md


      This is my output:

      root@edison:~/upm/build# cmake -DBUILDPYTHON3=ON -DPYTHON_INCLUDE_DIR=/usr/include/python3.5dm/ -DPYTHON_LIBRARY=/usr/lib/libpython3.5dm.so PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ CPLUS_INCLUDE_PATH=/usr/local/include/mraa/ LIBRARY_PATH=/usr/local/lib/ ..

      -- checking for module 'mraa>=0.7.6'

      --   package 'mraa>=0.7.6' not found

      CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):

        A required package was not found

      Call Stack (most recent call first):

        /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)

        CMakeLists.txt:18 (pkg_check_modules)





      INFO found mraa version:

      INFO - UPM Version v0.3.2-102-gf983719

      INFO - Target arch is i586

      INFO - Node version is 0.10.38

      INFO - Node using v8



      -- Configuring incomplete, errors occurred!

      See also "/home/root/upm/build/CMakeFiles/CMakeOutput.log".

      See also "/home/root/upm/build/CMakeFiles/CMakeError.log".


      Can somebody help me with that? And it seems that we need whole instruction for building python 3 with these libs and even add compiled versions to repos.



      Made gist with instructions: How to install Python 3 with libmraa and upm · GitHub