All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Problem with ADT and Eclipse
@ 2015-09-14 13:18 star
  0 siblings, 0 replies; only message in thread
From: star @ 2015-09-14 13:18 UTC (permalink / raw)
  To: yocto

I go for the manual:
http://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#adt-eclipse

I could compile this Yocto Project ADT Autotools Project "hello world"
It generates a lot of files and I am lost how to add more source files and headers.

I added a second c-file with a function "sub" and header and included the header in the hello world.c.

But I get linker problems and the second c file isn't get compiled. What do I have to do if the project gets bigger with more files ...? In the old times I added something to makefile, but I have two and both are crowded ...

  
make all 
make  all-recursive
make[1]: Entering directory `/home/user/ws/sp_test'
Making all in src
make[2]: Entering directory `/home/user/ws/sp_test/src'
../arm-poky-linux-gnueabi-libtool  --tag=CC   --mode=link arm-poky-linux-gnueabi-gcc  -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7  -g -O0  --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7  --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7 -o sp_test sp_test-sp_test.o  
arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7 -g -O0 --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7 --sysroot=/home/user/yocto_microzed/tmp/sysroots/microzed-zynq7 -o sp_test spi_test-spi_test.o 
sp_test-sp_test.o: In function `main':
/home/user/ws/spi_test/src/sp_test.c:40: undefined reference to `sub'
collect2: error: ld returned 1 exit status


The second issue is with qemu:

I get the message

Error: unknow fuile arg [path to my uImage]

This is the automatical generated config:
-e "source /home/user/yocto_microzed/tmp/environment-setup-cortexa9-vfp-neon-poky-linux-gnueabi;runqemu  /home/user/yocto_microzed/tmp/deploy/images/microzed-zynq7/uImage /home/user/yocto_microzed/tmp/sysroots/microzed-zynq7 ;bash"

and here what can be found at this locations:

user@vb:~$ ll /home/user/yocto_microzed/tmp/deploy/images/microzed-zynq7/uImage
lrwxrwxrwx 1 user user 72 Aug 28 11:29 /home/user/yocto_microzed/tmp/deploy/images/microzed-zynq7/uImage -> uImage--3.14-xilinx+git0+2b48a8aeea-r0-microzed-zynq7-20150828065234.bin

user@vb:~$ ll /home/user/yocto_microzed/tmp/sysroots/microzed-zynq7
total 32
drwxr-xr-x 8 user user 4096 Sep 14 07:39 ./
drwxr-xr-x 7 user user 4096 Sep 11 13:32 ../
drwxr-xr-x 2 user user 4096 Aug 28 10:06 etc/
drwxr-xr-x 5 user user 4096 Aug 28 10:35 lib/
drwxr-xr-x 7 user user 4096 Sep 11 13:32 pkgdata/
drwxr-xr-x 2 user user 4096 Sep 14 07:39 sysroot-providers/
drwxr-xr-x 7 user user 4096 Sep 10 12:06 usr/
drwxr-xr-x 3 user user 4096 Aug 28 10:06 var/

I hope someone can help a YOCTO 1.8 beginner.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-14 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 13:18 Problem with ADT and Eclipse star

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.