Flycapture 2 Download

0 views
Skip to first unread message

Verline Wesolowski

unread,
Aug 3, 2024, 6:12:22 PM8/3/24
to learcentmarkla

I'm using Visual studio 2010 and I use a point gray camera. I use the flycapture libs and dll's to capture the video stream in my application. I use the FlyCapture2.dll, FlyCapture2d.dll and libiomp5md.dll (all 32 bit). My application compiles and links with the static libraries perfectly and in release mode it also runs perfectly. However, in debug mode I get the following error:The application was unable to start correctly (0xc0150002). click OK to close the application.

To install the FlyCapture SDK, install the FlyCapture2 .deb files included with the SDK distribution. We provide an easy-to-use install script, named install_flycapture.sh. You can run the script in the same directory in which you have unpacked the software, as in the following example:

This script installs all the flycapture libraries, example code, sample applications and documentation. Additionally, the install script prompts you to configure udev so that 1394 and usb devices can be used by a particular user. If you choose to configure 1394 and usb devices, the script changes permissions on the nodes by overwriting the default Ubuntu permissions and giving the user full read and write access to the device nodes. After running this script, everything is installed and set up for use.

Note: If you are using a USB 3.1 device on an Intel system, you may notice that the FlyCap2 viewer is slow to respond. To avoid this problem, ensure the following kernel versions are used:

The FlyCapture SDK includes a number of example applications to help get you started in programming common API tasks. Example files are installed under /usr/src/flycapture. Normal users do not have write access to this location, so copy this folder and sub-folders to a location on your home directory. For example:

Some of the examples are GUI-based. The gtk and glade libraries are required to build these examples. These libraries should already be installed during the installation of FlyCapture2. Note that the FlyCaptureGUI example must be built before the FlyCap2 or FlyCapture2GUITest examples can be built.

The FlyCapture SDK includes a number of example applications to help get you started in programming common API tasks. Example files are installed under flycapture-_arm/bin (where you extracted the package).

You can also use a cross compiler to build examples for the target architecture. A cross compiler that works well is CodeSourcery.
Alternatively, you can set up an ARM emulator using QEmu, install Ubuntu on it, and build your software on the virtual machine.

I'm currently using a VM running Ubuntu 14.04 LTS with ROS Indigo. This worked perfectly fine a few week ago, and I get the exact same error on a fresh VM install of Ubuntu/ROS so I assume this indicates a problem with the flycapture libraries, downloading them from the website or otherwise the library isn't present in the main ROS library (which it isn't but that didn't appear to be an issue previously). But I'm not sure if its a bug or something I've done wrong.

Cause: pointgrey_camera_driver requires the Point Grey SDK, which cmake will automatically try to download it if cannot detect the SDK already on your system. However (and I may be wrong in this, so please correct me if I am), if the SDK version has changed and the pointgrey_camera_driver cmake file has not been updated to reflect this, the SDK will not install properly and the header files will not be present. This will cause cmake to crash during compilation, producing the error seen above.

Solution: Manually install the SDK version you need. In the pointgrey_camera_driver source files, open pointgrey_camera_driver/cmake/download_flycap and look for a section of code similar to this:

It seems that pointgrey_camera_driver has been updated so this should no longer be a problem. However, it will still be useful for anyone who tries to install the driver after the next SDK change and before the driver is updated again.

It looks as if it will download the SDK for you if it doesn't find the flycap library. It is possible, since they are not also looking for the headers, e.g. flycapture/FlyCapture2.h, that they find the library on your system but you're missing the headers. That would prevent it from downloading a version of the SDK while building, but would fail later because your system doesn't have the headers required. I'd recommend looking at the CMake output just above the error you posted (generally you should include more information than you think you need for situations like these) to see if it downloaded the SDK itself or not. If you can't figure it out based on my answer, I'd recommend you open an issue against the pointgrey_camera_driver package:

I've added more of the compilation output to the question (apologies if its too cluttered). Based on that output, it looks like the SDK drivers are being downloaded correctly, but fails to install because of the incorrect file type:

So would I be correct in assuming that the problem is related to the updated version of the SDK? I tried updating the cmake file with the correct SDK version and download address, but that didn't change anything. (also the date the version changed is 27/04/2016, not 05)

I manually installed SDK version 2.9.3.13, deleted the files, started the tutorial over from scratch and...everything works, compilation was successful and the tutorial programs work. Thanks for the help William!

c80f0f1006
Reply all
Reply to author
Forward
0 new messages