I built on two versions:
1. Stock:
# uname -r = 3.8.13-bone47, ldd (Debian EGLIBC 2.13-38+deb7u1) 2.13
2. Flashed with: bone-eMMC-flasher-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz:
$ uname -r = 4.19.94-ti-r42, ldd (Debian GLIBC 2.28-10) 2.28
On 3.8.13, I got this on all example builds:
gcc -o auto_reconnect_test auto_reconnect_test.o -lLabJackM
/usr/local/lib/libLabJackM.so: undefined reference to `std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned int) [email protected]_3.4.18'
/usr/local/lib/libLabJackM.so: undefined reference to `std::chrono::_V2::system_clock::now()@GLIBCXX_3.4.19'
/usr/local/lib/libLabJackM.so: undefined reference to `std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned int, unsigned int, unsigned int) [email protected]_3.4.18'
/usr/local/lib/libLabJackM.so: undefined reference to `std::chrono::_V2::steady_clock::now()@GLIBCXX_3.4.19'
collect2: ld returned 1 exit status
scons: *** [auto_reconnect_test] Error 1
scons: building terminated because of errors.
On the flashed BBBlack, I got success on every example build except:
gcc -o c-r_speed_test c-r_speed_test.o -lLabJackM
/usr/bin/ld: c-r_speed_test.o: undefined reference to symbol '[email protected]@GLIBC_2.4'
/usr/bin/ld: //lib/arm-linux-gnueabihf/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
scons: *** [c-r_speed_test] Error 1
scons: building terminated because of errors.
which was easily fixed by adding -lm:
[email protected]:~/LabJackM-1.1804-Raspbian-Linux-armhf/LabJackM/examples/more/testing$ gcc -o c-r_speed_test c-r_speed_test.o -lLabJackM -lm
Might not still be binary compatible with 3.18?
Hope it helps;
Clark
Most of those errors look like they are related to missing libraries. Please ensure your first machine satisfies our requirements:
https://labjack.com/support/software/api/ljm/what-are-system-requirements
The following forum topic has some related issues, and some of the troubleshooting may be useful:
https://labjack.com/forums/t7/64-bit-arm-support