web-dev-qa-db-ja.com

libglademm-2.4.so.1がない-組み込みLinuxボックス用のこのライブラリはどこにありますか?

私のNVidia JetsonでFlyCap2を実行して、PointGrey FireFly MVマシンビジョンカメラを使用できるようにしています。メインプログラムにgladeライブラリがないため、メインプログラムを実行できません。ライブラリとは何か、そのようなライブラリがARM7組み込みLinuxアーキテクチャで利用できるかどうか。

ubuntu@tegra-ubuntu:~/Downloads/flycapture.2.7.3.13_armhf/bin$ Sudo ./FlyCap2
./FlyCap2: error while loading shared libraries: libglademm-2.4.so.1: cannot open shared object file: No such file or directory
ubuntu@tegra-ubuntu:~/Downloads/flycapture.2.7.3.13_armhf/bin$ 

幸いにも、Point Grey Imagingライブラリはうまく機能しているようです。別の例を使用して、FireflyMVカメラでいくつかのフレームをキャプチャできます。最終的にはOpenCVに飛び込んでしまうかもしれませんが、このgladeライブラリの問題を解決できればいいと思います。

ubuntu@tegra-ubuntu:~/Downloads/flycapture.2.7.3.13_armhf/bin$ Sudo ./FlyCapture2Test
FlyCapture2 library version: 2.7.3.13
Application build date: Oct  9 2014 13:45:38

Number of cameras detected: 1

*** CAMERA INFORMATION ***
Serial number -9420273
Camera model - Firefly MV USB FMVU-03MTM
Camera vendor - Point Grey Research
Sensor - Micron MT9V022177ATM (1/3" 640x480 CMOS)
Resolution - 752x480
Firmware version - 0.9.2.12
Firmware build time - Sun Oct 26 02:34:55 2008

Grabbed image 0
Grabbed image 1
Grabbed image 2
Grabbed image 3
Grabbed image 4
Grabbed image 5
Grabbed image 6
Grabbed image 7
Grabbed image 8
Grabbed image 9
Done! Press Enter to exit...

以下は、FlyCapture READMEバージョンに付属するARMです。インストール手順に従い、適切なライブラリを/ usr/libに移動しました。

ubuntu@tegra-ubuntu:~/Downloads/flycapture.2.7.3.13_armhf$ cat README_ARM 
FlyCapture2 ARM README

1) Overview

FlyCapture2 has been tested on a pandabard which is available from www.pandaboard.org.  FlyCapture2 ARM should also work on other TI OMAP hardware such as the beagleboard.  The library and all its dependencies have been compiled using the CodeSourcery cross compiler.  This readme will not go in too much detail on how to configure an OMAP device and how to load a linux operating system on it.  It will concentrate on installation of the FlyCapture2 library.

2) Prerequisites

* Pandaboard or other OMAP device (recommended is a pandaboard at www.pandaboard.org)
* Linux distribution on the Pandaboard (recommended is ubunut 11.04 at https://wiki.ubuntu.com/ARM/OmapNetbook)
* A PGR usb Camera
* A powered USB hub.  The pandaboard does not provide enough power to operate the camera.

3) Installation

    1. Copy your flycapture-<version>_arm.tar.gz package on a network or usb drive and copy it to a location on the pandaboard.
    2. untar the installation package:
        > tar xvfz flycapture-<version>_arm.tar.gz
    3. copy all libraries to system folders:
        > cd flycapture-<version>_arm/lib
        > Sudo cp libflycapture.so* /usr/lib 
    4. configure permissions to run PGR cameras:
        > Sudo sh flycap2-conf
    5. follow the instructions that the script takes you through
    6. Restart your board.

4) Running FC2 Examples

You should be able to go into the flycapture-<version>_arm/bin folder where you extracted the package and launch any of the examples.  They will run and grab some images but will error out when trying to convert between image formats.  In the full release versions of FlyCapture2 ARM we will provide examples that run fully but due to the fact that there is no IPP availability on ARM the image conversions will not work in the current state of the library.  Also there will be no AVI saving in this version of the library.

5) Compiling software against flycapture. 

There are a number of ways you can build your software to run on an OMAP board with flycapture.
    1. Build software right on the board using gnu compiler tools by installing in the least the build-essentials package from ubuntu repository.
    2. Use a cross compiler to build for the target architecture.  One such cross compiler that works well is CodeSourcery.
    3. Set up an ARM emulator using QEmu and install ubuntu on it.  Then build your software on the virtual machine.

更新:このライブラリは、ユーザーインターフェイスのXML記述である "glade"と関係があると思います。実際、よく見ると、2つの.gladeファイルがあり、そのうちの1つはGTKを参照しています。

ubuntu@tegra-ubuntu:~/Downloads/flycapture.2.7.3.13_armhf/bin$ ls
AsyncTriggerEx                 FlyCapture2Test-9420273-4.pgm
C                              FlyCapture2Test-9420273-5.pgm
CustomImageEx                  FlyCapture2Test-9420273-6.pgm
ExtendedShutterEx              FlyCapture2Test-9420273-7.pgm
FlyCap2                        FlyCapture2Test-9420273-8.pgm
FlyCap2.glade                  FlyCapture2Test-9420273-9.pgm
FlyCapture2GUI_GTK.glade       GigEGrabEx
FlyCapture2Test                GrabCallbackEx
FlyCapture2Test-9420273-0.pgm  HighDynamicRangeEx
FlyCapture2Test-9420273-1.pgm  ImageEventEx
FlyCapture2Test-9420273-2.pgm  MultipleCameraEx
FlyCapture2Test-9420273-3.pgm

Libglade2-devとlibgladeui-devのインストールは残念ながら助けにはなりませんでした。

1
user391339

Linux x64バージョンのFlyCapture2のREA​​DMEには、

依存関係:

  1. libraw1394-8
  2. libgtkmm-2.4-dev
  3. libglademm-2.4-dev
  4. libgtkglextmm-x11-dev(Ubuntu 8.10以降のlibgtkglextmm-x11-1.2-dev)
  5. libusb-1.0(Ubuntu 9.04以降のみ)

Ubuntu 12.04:

Sudo apt-get install libraw1394-11 libgtk2.0-0 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-1.2-dev libusb-1.0-0

Ubuntu 10.04:

Sudo apt-get install libraw1394-11 libgtk2.0-0 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-1.2-dev libusb-1.0-0

Ubuntu 9.04:

Sudo apt-get install libraw1394-8 libgtk2.0-0 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-dev libusb-1.0

Ubuntu 8.10:

Sudo apt-get install libraw1394-8 libgtk2.0-0 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-1.2-dev

Ubuntu 8.04:

Sudo apt-get install libraw1394-8 libgtk2.0-0 libgtkmm-2.4-dev libglademm-2.4-dev libgtkglextmm-x11-dev

9.04より前のディストリビューションのlibusb-1.0は、Point Greyのダウンロードセクションから入手できます。 libusb-1.0は、抽出された.debパッケージをダブルクリックし、指示に従って手動でインストールできます。

Raw1394をインストールした後、起動時にロードするraw1394モジュールを追加する必要がある場合があります。
これを行うには、/ etc/modulesファイルに「raw1394」を追加します。

1
catacly