On 2021-09-27 9:02 p.m., Tellrell White wrote:
Marcus
From looking under sysroot, it appears that there is stuff under it as
shown here
apg@apg-virtual-machine:/usr/local/oecore-x86_64/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi$
ls
bin data etc lib mnt run sys usr
boot dev home media proc sbin tmp var
I looked into some of the directores like /bin, /lib, and /boot and
there are things within the directories so there is stuff there. Do I
need to list sysroot under PATH so that it can be seen? Also, am I
using/calling the cross-compiler correctly from the command line as
indicated above?
Use $CC as if it were your compiler command.
$CC -o hello hello.c
What happens then?
On Monday, September 27, 2021, 8:53:49 PM EDT, Marcus D Leech
<patchvonbr...@gmail.com> wrote:
Have you confirmed that there’s “stuff” under the sysyroot that is
being pointed to in that $CC variable?
Sent from my iPhone
On Sep 27, 2021, at 8:26 PM, Tellrell White via USRP-users
<usrp-users@lists.ettus.com> wrote:
I'm trying to cross-compile a simple "hello world" c file on a host
system running ubuntu 18.04. I installed version
UHD_4.0.0.HEAD-0-g90ce6062 and I have the same version of UHD running
on the N310 I'm using. As instructed, I followed the steps under
"Obtaining an SDK" and "SDK Usage" at the following link
https://files.ettus.com/manual/page_usrp_n3xx.html#n3xx_software_dev_sdk
<https://files.ettus.com/manual/page_usrp_n3xx.html#n3xx_software_dev_sdk>
and the command $CC -dumpmachine shows the correct result as shown.
apg@apg-virtual-machine:~$ $CC -dumpmachine
arm-oe-linux-gnueabi
My issue is when i try to compile a simple hello world.c file I get
the following
apg@apg-virtual-machine:~$ arm-oe-linux-gnueabi-gcc hello_world.c
hello_world.c:1:10: fatal error: stdio.h: No such file or directory
1 | #include <stdio.h>
| ^~~~~~~~~
compilation terminated.
Not sure why i'm getting this simple error at the moment but the
proper env variables have been set as shown
apg@apg-virtual-machine:~$ echo $CC
arm-oe-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a9
--sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9t2hf-neon-oe-linux-gnueabi
Perhaps there are some add'l paths that I need to be set ??
_______________________________________________
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