[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Running Kura on Ubuntu

Hello,

Try this:

* Stop Kura (sudo killall java will do it)
* The scripts that start Kura are located in /opt/eclipse/kura/bin. Open the script start_kura_background.sh. There is a JVM parameter âkura.os.versionâ. It is likely set to âraspbianâ. Try setting it to âubuntu_14.04â.
* Start Kura.

Thanks,
--Dave


 , . 
On May 17, 2016, at 17:08, John MacEnri <john.macenri@xxxxxxxxxxxxxxxxx> wrote:

Hi Dave,

thanks very much for the fast response.
I hadn't copped what the "No Networking" build really meant. I had deployed the other Pi one, which I since removed. Installing the NN one worked much better. Kura is now running and Web Admin console appears.

But I am getting lots of errors in kura-console.log about the UsbService

!MESSAGE [SCR] Exception while activating instance org.eclipse.kura.linux.usb.UsbServiceImpl@279af4c0 of component org.eclipse.kura.usb.UsbService
.
.
.
Caused by: java.lang.UnsatisfiedLinkError: /tmp/.kura/configuration/org.eclipse.osgi/bundles/61/1/.cp/lib/linux/x86_64/libEurotechLinuxUdev.so: libudev.so.0: cannot open shared object file: No such file or directory

which is what you predicted.
I noticed when digging into the contents of the org.eclipse.kura.linux.usb_1.0.7.jar that it contains a
lib/linux/x86_ubuntu/libEurotechLinuxUdev.so

Is there a config that will force the framework to load that one instead and would that work?

Otherwise I guess I'll have to build the .so. 
What are the steps involved in building it?
I have full dev tools on the target Unbuntu platform, but it's been a long time since I've had to build C stuff.

Thanks

John MacEnri

On 17 May 2016 at 17:36, Woodard, David <david.woodard@xxxxxxxxxxxx> wrote:
Hi John,

Yes, it will work, but there may be a couple of issues to address.

1. Which Debian installer are you trying to use? If you donât need to configure network settings through Kura, I would recommend using the âNo Networkingâ installer [1]. This is likely where you are seeing a lot of issues. Ubuntu handles networking quite differently than Raspbian, so networking support in Kura would likely require source code changes. Let me know if you need more explanation or support here.

2. The core of Eclipse Kura is nearly all pure Java. The exception is one native library that needs to be compatible with your system for Kura to start. The source for this native library can be found here [2]. This may need to be compiled for your architecture and replaced in the org.eclipse.kura.linux.usb bundle. Again, I can provide more information on how to do this if you need.

If possible, I would start with the âNo Networkingâ installer and check the status of the components and services. If you see an issue with a native library in org.eclipse.kura.linux.usb, you know you need to move to step 2. If you are seeing other errors, let me know.


Thanks,
--Dave

On May 17, 2016, at 12:18, John MacEnri <john.macenri@xxxxxxxxxxxxxxxxx> wrote:

Hi,

I have previously been using Kura 1.4.0 on a Raspberry Pi 2.

But we now wish to deploy Kura and our App on a different hardware platform (an industrial PC) which is running Ubuntu 14.04 LTS. 
We ONLY make use of the Ethernet ports and not USB, Bluetooth, Wifi or Serial Ports.

Is Ubuntu a supported runtime platform and if so, how can I deploy Kura to it?
I have tried simply deploying the Pi2 .deb file, but that doesn't seem to work right. 

Any help greatly appreciated.

Regards

John MacEnri
Crowley Carbon Ltd

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev


_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev

_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev