Community
cancel
Showing results for 
Search instead for 
Did you mean: 
NNath3
New Contributor II
952 Views

upm (0.8.0) without SWIG

I've been trying to build a small Yocto image for my Edison, based on http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/ http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/.

I don't need node.JS, or python, or any of the other fluff that is included in the default edison-image. I'm just trying to run some C/C++ code.

I have been able to build mraa v1.4.0 without SWIG (or python, or java/node.js), but UPM v0.8.0 is resisting my efforts.

My recipe (upm_0.8.0.bb) looks like this:

SUMMARY = "Sensor/Actuator repository for Mraa"

SECTION = "libs"

AUTHOR = "Brendan Le Foll, Tom Ingleby, Yevgeniy Kiveisha"

LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://LICENSE;md5=d1cc191275d6a8c5ce039c75b2b3dc29"

DEPENDS = "mraa"

SRC_URI = "git://github.com/intel-iot-devkit/upm.git;protocol=git;rev=d866b25f85289148e01760dee1fcbc9c1bff019a"

S = "${WORKDIR}/git"

inherit distutils-base pkgconfig cmake

FILES_${PN}-doc += "${datadir}/upm/examples/"

PACKAGECONFIG = "-DBUILDSWIGNODE=OFF, -DBUILDSWIGPYTHON=OFF"

But I get an error that SWIG >= v3.0.5 is required.

The CMake file indicates that this check should be avoidable, but no matter what I set in the PACKAGECONFIG = ... line, bitbake errors out trying to find SWIG >= 3.0.5.

Any help would be appreciated.

Thanks,

4 Replies
idata
Community Manager
24 Views

Hello nniles,

 

 

Thanks for reaching out!

 

 

I have never tried to create a UPM recipe that is only able to work with C/C++. Searching on the community, I came across this post from @arfoll: https://communities.intel.com/message/430074# 430074 https://communities.intel.com/message/430074# 430074. It mentions how to disable Java from MRAA y deleting the BINDINGS variable on the recipe. I believe you have to do the same with your UPM recipe, I suggest you to use this recipe: https://github.com/ostroproject/meta-intel-iot-middleware/blob/master/recipes-devtools/upm/upm_0.7.2... as your base and remove all the bindings you don't require.

 

 

Also, you could submit an issue about this on UPM's Github page ( https://github.com/intel-iot-devkit/upm), that way you'd be able to contact the developers directly which could be of help.

 

 

I hope this helps.

 

-Peter.
idata
Community Manager
24 Views

Hello nniles,

 

 

Do you have any updates about this?

 

 

-Peter.
NNath3
New Contributor II
24 Views

Peter,

I haven't actually identified a need for UPM in my project yet, so I have moved on without it.

Also, I am able to build the latest MRAA without SWIG, java, or node, but it is still pulling in a small set of python dependencies (opkg says that libmraa is the only object in my build that is dependent on anything python).

Thanks,

idata
Community Manager
24 Views

I understand, I'm glad that you were able to remove as much as possible of the packages you don't need and that you were able to move on without UPM.

 

 

Please keep us updated with your project and if you have any doubt, please post it on the community and we'll try to help you in any way we can.

 

-Peter.