Project

General

Profile

Missing dependencies

Added by Ed Henderson almost 5 years ago

On this page: https://support.criticallink.com/redmine/projects/5csx_vdk_basler/wiki/Setting_Up_A_Build_Environment

There is a list of dependencies for linux installation. The wiki reads like this:

The following ubuntu packages should be installed to support building ARM applications:

You can install these packages by running:

In addition to the standard packages, you will also need to install the yocto based cross-compiler, libraries, and header files for the target board support package. These are distributed as a self-extracting archive and may be downloaded on the 

That code is exactly as it appears --- it says there is a list of packages, but then the list is blank!!!
Either there IS no list, or there is a list, and it wasn't added here.

Can you update this information?


Replies (6)

RE: Missing dependencies - Added by Michael Williamson almost 5 years ago

Hi Ed,

Sorry about.... on a typical Ubuntu install, I think the only packages you need to install would be "build-essential". The SDK installation (self-extractor) will install a copy of all of the cross-compiler build tools at that time. Once the self extractor is installed, you would need to run the environment setup script, which should look like:

user@linux# . /opt/poky/2.4.3/environment-setup-cortexa9hf-neon-poky-linux-gnueabi

Note: I don't remember the exact path offhand, the 2.1.3 version number might be slightly different. Sorry. I can look later.

Once you run the setup, you should have the arm cross tools in your path, e.g., arm-poky-linux-gnueabi-gcc, as well as gnu auto tools like make, and autogen.sh, etc, as well as providing a version of cmake. You should be able to compile the example projects for this kit with the toolchain. The SDK also includes several libraries (also installed on the provided linux SD card) with headers you can link against including a snapshot of the Basler Pylon library, I beleive.

This will allow you to create or compile a C or C++ application targeted for the MitySOM-5CSX running the linux that is on the provided SD card.

If you are not familiar with developing applications in a linux environment, let me know and I can provide some further assistance.

Sorry for the inconvenience. I would like to see you get past this.

With best regards,
Mike

RE: Missing dependencies - Added by Ed Henderson almost 5 years ago

I have the dev environment setup as per your instructions.

I am familiar with building applications in general.
I'm having a hard time locating the include files I need to build the demo app though.

RE: Missing dependencies - Added by Michael Williamson almost 5 years ago

Can you send / post the compiler errors? Which header files are missing?

-Mike

RE: Missing dependencies - Added by Ed Henderson almost 5 years ago

So far trying to follow instructions here:
https://support.criticallink.com/redmine/projects/5csx_vdk_basler/wiki/ARM_SW_Architecture_and_Demo_App

Result:

dhenderson@ubuntu:/media/psf/sharpertool/proj/Intelleuron/criticallink/vdk/home_root/sw/demo_app$ ./configure
configure: loading site script /opt/poky/2.1.3/site-config-cortexa9hf-neon-poky-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/media/psf/sharpertool/proj/Intelleuron/criticallink/vdk/home_root/sw/demo_app':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Also, trying to read through the source code. I can find this file: `GenICamModel.h`, which references `<GenApi/GenApi.h>`, but not sure where that include file would be.
--- Oh -- just found it! `find /opt -name 'GenApi.h'` is my friend there.

Okay, starting to come together. I was also wondering about Pylon, but that is also in the ./usr/include path

RE: Missing dependencies - Added by Ed Henderson almost 5 years ago

Oh, I should mention -- I'm trying to build on an Ubuntu host, not on the VDK itself, and just realized that the instructions above are for compiling ON the board, so need to make some adjustments

RE: Missing dependencies - Added by Ed Henderson almost 5 years ago

SUCCESS!

I was able to build, on my Ubuntu machine. I just need to add the --host, but the target did not seem to matter. Not sure I fully understand what the option was doing, but I'm able to build a modified demo_app which works.

  • THANK YOU **
    (1-6/6)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)