You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug of crypto++ but rather a configuration issue in the files setenv-embedded.sh and GNUmakefile-cross. There is an ARM_EMBEDDED_SYSROOT setting which should not be used when cross-compiling on Linux (e.g. on desktop Ubuntu) for BeagleBone Black.
My solution was simply to remove the --sysroot option from line 68 in the file GNUmakefile-cross. My solution is not ideal, of course. It is just a shortcut.
The text was updated successfully, but these errors were encountered:
When cross-compiling, we expect the following (using ARMHF):
SYSROOT is /usr/arm-linux-gnueabihf
INCLUDEDIR is /usr/arm-linux-gnueabihf/include
LIBDIR is /usr/arm-linux-gnueabihf/lib
BINDIR is /usr/arm-linux-gnueabihf/bin
How LIBDIR morphed into into /usr/arm-linux-gnueabihf/usr/arm-linux-gnueabihf/lib/ (i.e., $SYSROOT/$SYSROOT/lib) is a mystery. But in all fairness, building GCC is not a trivial task.
You should probably file a bug report with Debian or Ubuntu (or whomever provides the toolchain).
This is not a bug of crypto++ but rather a configuration issue in the files setenv-embedded.sh and GNUmakefile-cross. There is an
ARM_EMBEDDED_SYSROOT
setting which should not be used when cross-compiling on Linux (e.g. on desktop Ubuntu) for BeagleBone Black.The issue is described at Linking error when compiling crypto++ for armhf, and I posted an answer on that webpage.
My solution was simply to remove the
--sysroot
option from line 68 in the file GNUmakefile-cross. My solution is not ideal, of course. It is just a shortcut.The text was updated successfully, but these errors were encountered: