Cross Compile SDK and Sample for raspberry pi


#1

Has anyone able to successfully cross compile SDK and sample for Raspberry pi?

Product: [Bebop/Bebop2]
Product version: [X.X.X]
SDK version: [X.X.X]
Use of libARController: [YES/NO] (Only for ARSDK)
SDK platform: [iOS/Android/Unix/Python…]
Reproductible with the official app: [YES/NO/Not tried]


#2

Also interested in doing this, but I’m not familiar with Alchemy and am unsure how to do the cross-compile. Can anyone walk through the process / share their experience?


#3

I ended up writing my own application for Raspberry pi3. It is on github. https://github.com/cheersalam/VideoStreamer
Hope it helps you also.

Thanks
Alam
cheersalam@gmail.com


#4

Thanks for sharing Alam!


#5

You are welcome. For any questions send me a direct mail.

Thanks
Alam
cheersalam@gmail.com


#6

Hi Guys,

actually I did manage to build the SDK on a Raspberry Pi 3. I basically added a new cpu target in alchemy/blob/master/toolchains/cpu.mk. I wrote:

ifeq ("$(TARGET_CPU)",“pi3”)
TARGET_GLOBAL_CFLAGS += -march=armv7-a
TARGET_FLOAT_ABI ?= hard
endif

watch out to the float type (hard) and then in arsdk_products/blob/master/native/config/product.mk

I added:
TARGET_CPU = pi3

It works like a charm. No errors, just some cast warnings :slight_smile:
The only issue I have now with my jumping night diesel is the video streaming. After I launch the sample (JumpingSumoSample), it connects to the target, I can send commands over the keyboard but after a few seconds mplayer exits. Anyone knows how I can configure the mplayer to handle the realtime video stream in this context?
Cheers,

Deco


Sorry, unimplemented: Thumb-1 hard-float VFP ABI when building SDK on RPI 3
#7

Try updating gcc and g++ to 7.2.0. Link: https://bitbucket.org/sol_prog/raspberry-pi-gcc-binary.git
We got it working in Raspberry PI 3 B.
Also add TARGET_DEFAULT_ARM_MODE := arm
at the beginning of the <SDK>/products/arsdk/native/config/product.mk file. (Thanks @Nicolas)