The brand-new PN400 Phase Noise Test System is available for purchase! →

ray62202

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Error compiling Linux sample code #164707
    ray62202
    Participant

    Kaiser, I was able to find out that the library image was corrupted with the following command:

    $ readelf –a libbb_api.so.4.0.2

    The output of readelf will tell you about the different pieces of the library, and if they are corrupted. Substitute the file name of the library you are using in the command.

    Andrew updated the library for me, and I’ve been cruising along just fine ever since.

    – Ray

    in reply to: Error compiling Linux sample code #161123
    ray62202
    Participant

    I installed a fresh copy of Ubuntu LTS (downloaded ISO image yesterday from Ubuntu) for testing, so it is ‘factory new’.
    Yeah, that linker message was so vague as to be useless (typical).

    The only other thing I had to do was to install g++ in the standard manner – $sudo apt install g++.
    I listed the details of the compiler config in the forum post.

    I deleted everything and extracted the SDK from a new download, and captured the installation sequence below:

    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$ ldconfig -v -n .
    .:
    libbb_api.so.4 -> libbb_api.so.4.0.2 (changed)
    libftd2xx.so -> libftd2xx.so
    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$ ln -sf libbb_api.so.4 libbb_api.so
    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$ sudo cp libbb_api.* /usr/local/lib
    [sudo] password for dunn874:

    This is the (SDK) library after the install, with libbb_api.so and libbb_api.so.4 as a soft links.

    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$ ls -la
    total 14836
    drwxr-xr-x 2 dunn874 riocdev 4096 Nov 1 10:49 .
    drwxr-xr-x 5 dunn874 riocdev 4096 Oct 18 08:53 ..
    lrwxrwxrwx 1 dunn874 riocdev 14 Nov 1 10:49 libbb_api.so -> libbb_api.so.4
    lrwxrwxrwx 1 dunn874 riocdev 18 Nov 1 10:49 libbb_api.so.4 -> libbb_api.so.4.0.2
    -rw-r–r– 1 dunn874 riocdev 14957792 Oct 17 16:21 libbb_api.so.4.0.2
    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$

    This is the /usr/local/lib after the install
    NOTE! the soft-link libbb_api.so is NO LONGER A LINK, BUT A COPY OF THE FILE

    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$ ls -la /usr/local/lib
    total 43840
    drwxr-xr-x 4 root root 4096 Nov 1 10:50 .
    drwxr-xr-x 10 root root 4096 Jul 17 06:23 ..
    -rw-r–r– 1 root root 14957792 Nov 1 10:50 libbb_api.so
    -rw-r–r– 1 root root 14957792 Nov 1 10:50 libbb_api.so.4
    -rw-r–r– 1 root root 14957792 Nov 1 10:50 libbb_api.so.4.0.2
    drwxrwsr-x 4 root staff 4096 Jul 17 06:46 python2.7
    drwxrwsr-x 3 root staff 4096 Jul 17 06:24 python3.6
    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/lib/Ubuntu 18.04$

    Build the device_info project:

    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/sample_projects/device_info$ make
    g++ -Wall main.cpp -o dev_info -Wl,-rpath /usr/local/lib -lbb_api

    /usr/bin/ld: out of memory allocating 30374008975618 bytes after a total of 282624 bytes
    collect2: error: ld returned 1 exit status
    Makefile:6: recipe for target ‘all’ failed
    make: *** [all] Error 1
    dunn874@WE31900:~/Projects/signal_hound_sdk/device_apis/bb_series/linux/sample_projects/device_info$

    Same problems

    Please advise asap, we are on a tight schedule for a demonstration.

    – Ray

Viewing 2 posts - 1 through 2 (of 2 total)