Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AStoe1
Novice
1,093 Views

After synchronizing libraries in Eclipse, apps fail with libmraa.so.0 not found

Apps that previously worked fine no longer run after Eclipse prompted me to synchronize libraries with the Edison. Now I get this error when they run:

error while loading shared libraries: libmraa.so.0: cannot open shared object file: No such file or directory

I've been trying to find a solution for this for 2 days. I can run the blinking led example fine but anything that requires lower level tools like the LCD give me this error. Does anyone have any advice? I will be very hesitant to upgrade libraries in the future.

0 Kudos
5 Replies
AStoe1
Novice
81 Views

Here is some more diagnostics from another thread, I just ran:

ldd tled

ldd tled

linux-gate.so.1 (0xb777c000)

libmraa.so.1 => /usr/lib/libmraa.so.1 (0xb7744000)

libupm-ppd42ns.so.0 => /usr/lib/libupm-ppd42ns.so.0 (0xb7741000)

libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x42577000)

libm.so.6 => /lib/libm.so.6 (0x42342000)

libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x42561000)

libc.so.6 => /lib/libc.so.6 (0x421bc000)

libpthread.so.0 => /lib/libpthread.so.0 (0x42325000)

librt.so.1 => /lib/librt.so.1 (0x423ac000)

/lib/ld-linux.so.2 (0x4218f000)

libmraa.so.0 => not found

root@andrew:/tmp# ls -l /usr/lib | grep mraa

ls -l /usr/lib | grep mraa

lrwxrwxrwx 1 root root 12 May 2 17:55 libmraa.so -> libmraa.so.1

lrwxrwxrwx 1 root root 16 May 2 17:55 libmraa.so.1 -> libmraa.so.1.0.0

-rwxr-xr-x 1 root 2222 186084 Apr 28 15:06 libmraa.so.1.0.0

-rwxr-xr-x 1 root 2222 136054 Apr 28 15:06 libmraajava.so

root@andrew:/tmp# opkg files libmraa0

opkg files libmraa0

Collected errors:

* opkg_files_cmd: Package libmraa0 not installed.

root@andrew:/tmp#

AStoe1
Novice
81 Views

I also tried this:

>> opkg install libmraa0

Unknown package 'libmraa0'.

Collected errors:

* opkg_install_cmd: Cannot install package libmraa0.

idata
Community Manager
81 Views

Hi Andrew,

 

 

Which Eclipse version are you using? Go to Help > About Eclipse Platform

 

Which image are you using on your board? Run the command uname -a, with the latest image you should receive Linux edison 3.10.17-poky-edison+ # 2 SMP PREEMPT Mon Mar 14 15:26:16 PDT 2016 i686 GNU/Linux

 

The problem seems to be that the board has old versions of MRAA and UPM, run the commands:

 

echo "src mraa-upm http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586 http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586" > /etc/opkg/mraa-upm.conf opkg update opkg install mraa opkg install upm

 

 

Regards,

 

Charlie

 

AStoe1
Novice
81 Views

Hi Charlie,

I'm using the Intel Eclipse version. But the issue appears unrelated to Eclipse. I also updated everything again on the board itself using opkg but the issue remained, and I found an open issue on the mraa github repo where others are also having this problem, and it is an upstream error on the upm repo. The solution is to symlink libmraa.so.0 to libmraa.so.1 and this solved all problems and my apps started running again.

idata
Community Manager
81 Views

Hi,

 

 

I'm glad to know that you were able to solve this, and your apps are running again

 

 

Regards,

 

Charlie
Reply