solettaproject / soletta-small-oses-samples

Soletta samples for Small OSes
Apache License 2.0
1 stars 3 forks source link

oic-server does not compile #30

Open mattiantonini opened 8 years ago

mattiantonini commented 8 years ago

Hello! I'm trying to compile the oic-server example, but something goes wrong. Here the output.txt

Any suggestion?

Cheers, Mattia

ibriano commented 8 years ago

On Thu, 04 Aug 2016 04:59:33 -0700, Mattia Antonini wrote:

Hello! I'm trying to compile the oic-server example, but something goes wrong. Here the output.txt

Any suggestion?

Works here, but with a bit of a trick.

First, I don't know what version of Soletta you have installed for the generator, but that may be one issue, so what I suggest you do is:

In RIOT's source directory, you should find Soletta in pkt/libsoletta/soletta. Go there and do:

git clean -dfx make thirdparty-update PREFIX=$HOME/soletta make alldefconfig make make install

That should build Soletta for the host, so you can run a recent version of the generator. Add $HOME/soletta/bin to PATH, run another git clean or make distclean in soletta's dir and then try building the example again. If the generator complains about not finding libsoletta, add $HOME/soletta/lib to LD_LIBRARY_PATH.