proffalken / JMR-Pi

Setup scripts for JMRI on the Raspberri-Pi
14 stars 9 forks source link

"FAILED TO LOAD COMM LIBRARY" #11

Open alevans51 opened 9 years ago

alevans51 commented 9 years ago

Using a Raspberry Pi 2 and getting the error. Seems to be in JMRI. Suggested fixes and comments from JMRI site provided below:

The good news, maybe, there's a workaround until the bad news can be rectified: You can try to use the existing JMRI RPi hard-float library by a simple change to the script. In PanelPro, line 192, change if [ "$ARCH" = "armv6l" ] ; then to
if [ "$ARCH" = "armv7l" ] ; then and try again. (just change the 6 to a 7) Great - that worked. I also needed to change it in DecodePro (which is what I use most of the time) to get that working. And will, presumably, in the others when needed.

An alternate workaround, which may be simpler for some folks, is to copy the armv6l binaries over the armv7l binaries and leave the scripts alone. This command, suitable for cut-n-paste, is: cp -v /home/pi/JMRI/lib/linux/armv6l/* /home/pi/JMRI/lib/linux/armv7l/

Hopefully, my RPi2's will arrive soon and I can determine a permanent change to JMRI for this.

The command worked equally as well as the previous. Needed to add "sudo" at the beginning of the command hence the command was: sudo cp -v /home/pi/JMRI/lib/linux/armv6l/* /home/pi/JMRI/lib/linux/armv7l/

Also found previously, since in the mode of sharing issues with RPi 2, when the GUI started up for the 1st time the following error appeared: "GDBus.Error.org.freedesktop.policykit1.error.failed: can not determine user of subject". Found on internet the fix, need to edit file "lxpolkit.desktop". Command used: sudo nano /etc/xdg/autostart/lxpolkit.desktop Change last line from: NotShownIn=GNOME;KDE; to NotShownIn=GNOME;KDE;LXDE;

Thanks Prof. Falken !

proffalken commented 9 years ago

This is great, I don't suppose you'd consider forking the project, making the changes and pushing it back?

I don't have a huge amount of time to spend on this project at the moment but I'm more than willing to accept pull requests! :)

Matt

alevans51 commented 9 years ago

The JMRI group is making a patch for this already, and it will be in next release.

Just wanted to give you a heads-up on these changes.

I’ve made 4 WI-FI throttle installs now. All of them are working great.

Thanks Much Prof Falken!

From: Matthew Macdonald-Wallace [mailto:notifications@github.com] Sent: Monday, March 02, 2015 8:55 AM To: proffalken/JMR-Pi Cc: Allen Evans Subject: Re: [JMR-Pi] "FAILED TO LOAD COMM LIBRARY" (#11)

This is great, I don't suppose you'd consider forking the project, making the changes and pushing it back? I don't have a huge amount of time to spend on this project at the moment but I'm more than willing to accept pull requests! :) Matt — Reply to this email directly or view it on GitHub https://github.com/proffalken/JMR-Pi/issues/11#issuecomment-76725155 . https://github.com/notifications/beacon/AKp0WkPlRWDvGiZK5acoYIYv3PMFxEI-ks5nxHFKgaJpZM4DkubV.gif