Installing crossbar in buildroot

#1

We are building an image for a device of us with buildroot (http://buildroot.uclibc.org/). We want to install crossbar on it, but I have no idea to do this on the host system when creating the image. All the install descriptions you provide use pip for installing the packages, but this is already when the target system is running. Any idea how to do this when creating an image on the host system? We are not very familiar with python.

We want to expose a WAMP API on the device to which our users can connect. As I understand things ok, this means we have to run an router on the device. Is this correct?

Gr, Erwin Steffens

0 Likes

#2

Hi Erwin,

We are building an image for a device of us with buildroot
(http://buildroot.uclibc.org/). We want to install crossbar on it, but I
have no idea to do this on the host system when creating the image. All

I haven't used buildroot, but

http://buildroot.uclibc.org/downloads/manual/manual.html#_infrastructure_for_python_packages

might be of interest.

the install descriptions you provide use pip for installing the
packages, but this is already when the target system is running. Any
idea how to do this when creating an image on the host system? We are
not very familiar with python.

I have some experience doing cross-builds of SW for devices, but not buildroot. This stuff can be tricky. Crossbar.io is a quite complex package with a bunch of dependencies.

I'd probably try it in steps: first autobahn[twisted], and then crossbar, and then crossbar[tls, ..]

We want to expose a WAMP API on the device to which our users can
connect. As I understand things ok, this means we have to run an router
on the device. Is this correct?

No, you could, but don't have to run a router on the device. The device can run a WAMP component that connects to a router that runs somewhere, and the device can still be _fully_ accessed via WAMP (e.g. you can call a procedure exposed by the device from outside). This is made possible since WAMP is fully symmetric and abstracts away any asymmetry rgd transport. I spare you the details;) It'll work with no router on device.

Which means: you don't need to bring Crossbar.io to the device. Any WAMP library for running WAMP components will do. E.g.

- Python 2.7 + Twisted + AutobahnPython or
- Python 3.4 + AutobahnPython or
- any one from here: http://wamp.ws/implementations/#libraries

E.g. you could write your components in C++ using AutobahnCpp and cross-compile an executable.

Cheers,
/Tobias

ยทยทยท

Am 03.11.2014 12:05, schrieb Erwin Steffens:

Gr, Erwin Steffens

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
To post to this group, send email to autob...@googlegroups.com
<mailto:autob...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/autobahnws/187f3803-a4f7-47a9-998d-7b7b06b3f5d2%40googlegroups.com
<https://groups.google.com/d/msgid/autobahnws/187f3803-a4f7-47a9-998d-7b7b06b3f5d2%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

0 Likes