rtlduino / RTL8710AF_GCC

Linux RTL8710AF below the GCC version, you can Ubuntu, CentOS, Fedora and so on the development of the SDK environment, support the compiler, debugging, running.
37 stars 21 forks source link

Where is Makefile #3

Open drasko opened 7 years ago

drasko commented 7 years ago

How do you build this?

ru-sh commented 7 years ago

+1. I'm unable to compile it:

root@ubuntu1:/home/ruslan/RTL8710AF_GCC/project/realtek_ameba1_va0_example/GCC-RELEASE# make all
if [ ! -d ../../../tools/arm-none-eabi-gcc/4.8.3-2014q1 ] ; then tar -jxf ../../../tools/arm-none-eabi-gcc/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2 -C ../../../tools/arm-none-eabi-gcc/ ; mv ../../../tools/arm-none-eabi-gcc/gcc-arm-none-eabi-4_8-2014q1 ../../../tools/arm-none-eabi-gcc/4.8.3-2014q1 ; fi
make[1]: Entering directory '/home/ruslan/RTL8710AF_GCC/project/realtek_ameba1_va0_example/GCC-RELEASE'
===========================================================
Build application
===========================================================
mkdir -p application/Debug/obj
mkdir -p application/Debug/bin
cp ../../../component/soc/realtek/8195a/misc/bsp/image/ram_1.r.bin application/Debug/obj/ram_1.r.bin
chmod 777 application/Debug/obj/ram_1.r.bin
../../../tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy --rename-section .data=.loader.data,contents,alloc,load,readonly,data -I binary -O elf32-littlearm -B arm application/Debug/obj/ram_1.r.bin application/Debug/obj/ram_1.r.o
make[1]: ../../../tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy: Command not found
application.mk:468: recipe for target 'prerequirement' failed
make[1]: *** [prerequirement] Error 127
make[1]: Leaving directory '/home/ruslan/RTL8710AF_GCC/project/realtek_ameba1_va0_example/GCC-RELEASE'
Makefile:16: recipe for target 'ram_all' failed
make: *** [ram_all] Error 2
astro commented 7 years ago

@ru-sh apt-get install binutils-arm-none-eabi

ru-sh commented 7 years ago

@astro As far as I understand, make starts compiler from 'tools' folder. Are arm-none-eabi tools in zip archive compiled for x64 OS?