Community
cancel
Showing results for 
Search instead for 
Did you mean: 
TLHUI
New Contributor II
1,689 Views

Build with UPM library failed

Hi,

I installed a UPM library, i use a Netbeans IDE.

Compilation with lmraa worked but when i build with libupm-grove isn't work.

and in "C++ Compiler -> Compilation Line -> Additional Options", I add "-lmraa"

Netbeans run return my :

/root/.netbeans/remote/molika.sut.us/toti.local/Users/toti/embedded/code/welcomeMac/

dist/Debug/GNU-Linux-x86/welcomemac:error while loading shared libraries: libupm-grove.so.0: cannot open

shared object file: No such file or directory

RUN FINISHED; exit value 127; real time: 10ms; user: 0ms; system: 0ms

Why, my edison dosen't detect my libupm-grove ?

Thanks

0 Kudos
11 Replies
Matthias_H_Intel
Employee
106 Views

you'd have to add all required upm libraries (like you did for mraa). In this case e.g. -lupm-grove; possibly others as well

TLHUI
New Contributor II
106 Views

Thanks for answer.

But, i don't know what do I need to add more?

Because, http://iotdk.intel.com/docs/master/upm/classupm_1_1_grove_button.html upm: GroveButton Class Reference (Libupm-grove) need only lmraa, no ? I need GPIO, but it is also included (http://iotdk.intel.com/docs/master/upm/grove_8h_source.html upm: grove.h) ?

Thanks,

Matthias_H_Intel
Employee
106 Views

http://iotdk.intel.com/docs/master/upm/modules.html upm: UPM libraries:

[...]

Here is a list of UPM libraries that can be used. Note that each of the classes listed in these libraries are completely seperate so you will need to link against all those that you have used in your program [...]

http://iotdk.intel.com/docs/master/upm/group__grove.html libupm-groveLibrary for basic grove sensors

[...]

TLHUI
New Contributor II
106 Views

Oki mhahn, but I use only Grove Button with this exemple : https://github.com/intel-iot-devkit/upm/blob/master/examples/grovebutton.cxx upm/grovebutton.cxx at master · intel-iot-devkit/upm · GitHub

So, Normally libupm-grove will be enough, no ?

Matthias_H_Intel
Employee
106 Views

in this case you would be good, yes

TLHUI
New Contributor II
106 Views

Oki,

So, i don't understand why netbeans return my

  1. /root/.netbeans/remote/molika.sut.us/toti.local/Users/toti/embedded/code/welcomeMac/welcomeMac/
  2. dist/Debug/GNU-Linux-x86/welcomemac:error while loading shared libraries: libupm-grove.so.0: cannot open
  3. shared object file: No such file or directory
  4. RUN FINISHED; exit value 127; real time: 10ms; user: 0ms; system: 0ms
Matthias_H_Intel
Employee
106 Views

Sorry, maybe I misunderstood. From your original description I could only see

"Additional Options", I add "-lmraa""

Didn't see "-lupm-grove" added - now I can see.

I don't fully understand how the Netbeans setup is. Do you have a cross compile environment on your host system?

Did you check your installation whether libupm-grove.so.0 exists at all?

TLHUI
New Contributor II
106 Views

lupm-grove is in "Linker" and lmraa is in "C++ Compiler"

How do i check that this lib is installed "libupm-grove" ? What is the cmd ?

Thanks

Edit :

I reinstall the upm library :

-- Installing: /usr/local/lib/pkgconfig/upm-st7735.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_st7735.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_st7735.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-st7735.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-st7735.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-st7735.so

-- Installing: /usr/local/include/upm/gfx.h

-- Installing: /usr/local/include/upm/st7735.h

-- Installing: /usr/local/lib/pkgconfig/upm-grovemoisture.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_grovemoisture.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_grovemoisture.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-grovemoisture.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-grovemoisture.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-grovemoisture.so

-- Installing: /usr/local/include/upm/grovemoisture.h

-- Installing: /usr/local/lib/pkgconfig/upm-lpd8806.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_lpd8806.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_lpd8806.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-lpd8806.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-lpd8806.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-lpd8806.so

-- Installing: /usr/local/include/upm/lpd8806.h

-- Installing: /usr/local/lib/pkgconfig/upm-gas.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_gas.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_gas.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-gas.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-gas.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-gas.so

-- Installing: /usr/local/include/upm/gas.h

-- Installing: /usr/local/include/upm/mq2.h

-- Installing: /usr/local/include/upm/mq3.h

-- Installing: /usr/local/include/upm/mq5.h

-- Installing: /usr/local/include/upm/mq9.h

-- Installing: /usr/local/include/upm/tp401.h

-- Installing: /usr/local/lib/pkgconfig/upm-rfr359f.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_rfr359f.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_rfr359f.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-rfr359f.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-rfr359f.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-rfr359f.so

-- Installing: /usr/local/include/upm/rfr359f.h

-- Installing: /usr/local/lib/pkgconfig/upm-pulsensor.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_pulsensor.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_pulsensor.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-pulsensor.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-pulsensor.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-pulsensor.so

-- Installing: /usr/local/include/upm/pulsensor.h

-- Installing: /usr/local/lib/pkgconfig/upm-ttp223.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_ttp223.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_ttp223.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-ttp223.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ttp223.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ttp223.so

-- Installing: /usr/local/include/upm/ttp223.h

-- Installing: /usr/local/lib/pkgconfig/upm-th02.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_th02.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_th02.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-th02.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-th02.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-th02.so

-- Installing: /usr/local/include/upm/th02.h

-- Installing: /usr/local/lib/pkgconfig/upm-maxds3231m.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_maxds3231m.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_maxds3231m.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-maxds3231m.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-maxds3231m.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-maxds3231m.so

-- Installing: /usr/local/include/upm/maxds3231m.h

-- Installing: /usr/local/lib/pkgconfig/upm-mpu9150.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_mpu9150.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_mpu9150.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-mpu9150.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-mpu9150.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-mpu9150.so

-- Installing: /usr/local/include/upm/mpu9150.h

-- Installing: /usr/local/lib/pkgconfig/upm-ds1307.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_ds1307.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_ds1307.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-ds1307.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ds1307.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ds1307.so

-- Installing: /usr/local/include/upm/ds1307.h

-- Installing: /usr/local/lib/pkgconfig/upm-ecs1030.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_ecs1030.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_ecs1030.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-ecs1030.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ecs1030.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-ecs1030.so

-- Installing: /usr/local/include/upm/ecs1030.h

-- Installing: /usr/local/lib/pkgconfig/upm-max44000.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_max44000.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_max44000.py

-- Installing: /usr/local/lib/i386-linux-gnu/libupm-max44000.so.0.1.9

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-max44000.so.0

-- Up-to-date: /usr/local/lib/i386-linux-gnu/libupm-max44000.so

-- Installing: /usr/local/include/upm/max44000.h

-- Installing: /usr/local/lib/pkgconfig/upm-lol.pc

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/_pyupm_lol.so

-- Installing: /usr/local/lib/i386-linux-gnu/python2.7/site-packages/pyupm_lol.py

-- Installing: /usr/...

Sergio_A_Intel
Employee
106 Views

Hi,

Were you able to find a solution to this issue? Let us know if you still need assistance.

Sergio

TLHUI
New Contributor II
106 Views

Thanks,

But, I resolved my problem

ICust28
New Contributor I
106 Views

Hi Tim,

I have faced to the problem similar to yours one week and have no luck, can you tell me how can u fix it?

Reply