Closed fgalan closed 6 years ago
Compiling the orion broker will probably not cause too much pain. I would worry more about the libraries we depend on. Another problem could arise if we want mongo to run inside Raspberry as well.
Regarding MongoDB running in Raspberry Pi, I found recently this post on one LinkedIn group related with MongoDB:
According to user's report, the current driver used by Orion (release 0.19.0 and before) cannot be compiled in 32 bits (that I understand is the architecture Raspberry uses).
It seems that mongo-cxx-driver-legacy-1.0.0 can be compiled in Raspberry. At the end, I think we will move to that driver (the main motiviation is to use a "modern" version of the driver).
This mongodb run in Raspberry pi 2: http://facat.github.io/cross-compile-mongodb-for-arm.html I tested in this version of Debian Jessie for Raspberry Pi 2 http://sjoerd.luon.net/posts/2015/02/debian-jessie-on-rpi2/ . mongo-cxx-driver-legacy-1.0.2 compile without "warning {standard input}:xx: Warning: swp{b} use is deprecated for ARMv6 and ARMv7" in this version, present in testings of Raspbian
Thanks @avelardev, very valuable information to implement this issue!
I'm working on the migration of Orion Context Broker to Raspberry Pi 2 as a research project of my school so I'll be posting my results.
Just to clarify regarding
It seems that mongo-cxx-driver-legacy-1.0.0 can be compiled in Raspberry. At the end, I think we will move to that driver (the main motiviation is to use a "modern" version of the driver).
that we moved to mongo-cxx-driver-legacy-1.0.2 in Orion 0.22.0, so this impediment to compile Orion in Raspberry Pi was removed.
@fgalan The version of mongo-cxx-driver-legacy of Orion 0.22.0 is the same of Orion 0.24.0
@fgalan The version of mongo-cxx-driver-legacy of Orion 0.22.0 is the same of Orion 0.24.0
Yes, it is.
Raspberry is at the present moment out of target systems in which Orion have to run. Thus, we are closing this issue.
However, we are always open to contribution from the community so if you have a procedure about it, please don't hesitate to cast the corresponding pull request :)
So, in the end, more than 6 years after we created this issue :), @fisuda has achieved it! See PR https://github.com/telefonicaid/fiware-orion/pull/3630
This is as simple (or difficult :) as to compile Context Broker code in a Raspberry Pi device. Given that we currently compile it in Debian in some systems, it shouldn't be too dificult.