Hi Tellrell, Do not use the Xilinx SDK, only the Yocto one, i.e. /usr/local/share/uhd/images/y/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
You need to source the "environment-setup-cortexa9t2hf-neon-oe-linux-gnueabi" file before cross compiling. If you use cmake with building your application, you also need to set the flag "-DCMAKE_TOOLCHAIN_FILE=<path to UHD>/host/cmake/Toolchains/oe-sdk_cross.cmake". Also, if you just want to run the UHD example, it already exists on the N310's root file system at: /usr/lib/uhd/examples/rfnoc_replay_samples_from_file Jonathon On Tue, Aug 24, 2021 at 4:42 PM Tellrell White via USRP-users < usrp-users@lists.ettus.com> wrote: > I'm trying to compile the source code using SDK 2019.1. I'm pointing the > the SDK project to the directory for sysroot and also to the directory for > my linux toolchain which are the following > > /usr/local/share/uhd/images/y/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi > > > /tools/Xilinx/SDK/2019.1/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf > > I continue to get the following error stating that these files can't be > found, however, they do exist. And, when I try adding them within the > project and refreshing nothing happens. > > > cannot find /lib/ld-linux-armhf.so.3 > > cannot find /lib/libc.so.6 > > cannot find /usr/lib/libc_nonshared.a > > Am I going about building this application correctly? I thought that > linking my project to sysroot which I installed for the n310 and to the SDK > toolchain( maybe I'm doing this incorrectly) would be pretty > straightforward. > > > > > > > > > > > On Tuesday, August 24, 2021, 12:41:05 PM EDT, Marcus D. Leech < > patchvonbr...@gmail.com> wrote: > > > On 2021-08-24 12:08 p.m., Tellrell White wrote: > > Yep. Marcus you caught it!! That worked. Do I need to complete the > sections on "Compiling MPM Natively" and "Building UHD"?? I understand that > I need the cross-compiler for compiling SW for the device but I don't see > the need for completing the other two parts. Is there something additional > that needs to be done other than cross compiling on the host machine and > ssh'ing over the executable? > > > As far as I know, you should be able to just cross-compile the code you're > interested in. > > > > _______________________________________________ > USRP-users mailing list -- usrp-users@lists.ettus.com > To unsubscribe send an email to usrp-users-le...@lists.ettus.com >
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com