cross toolchain for building the beagle bone black and development

89 views
Skip to first unread message

Karina

unread,
Aug 11, 2016, 12:45:29 PM8/11/16
to BeagleBoard
I needed to build a "newer" version of the Linux kernel for my beagle bone black  since the kernel that came with board has this weird USB power issue ( uname : 3.8.13 - bone47).

My development environment is a virtual Box running Debian.(3.16.0-4-amd64)

I followed the instructions to build the Beagle bone kernel and image from the following website. (Thanks Robert Nelson). This worked great!
https://eewiki.net/display/linuxonarm/BeagleBone+Black

As part of those instructions, the cross compiler toolchain I installed was Linaro GCC 5.3-2016.02. The build_kernel.sh script actually (re)downloads this exact toolchain and uses it to build the kernel.

Now I have started to write code for my beagle bone application. I require to use Qt. I was able to the build the Qt library statically using the above linaro compiler. But when I try to link my application code against the build Qt library I get missing library link errors for libicuio, libicui18n, libicuuc, libicudata.

1. How do I get the ICU libraries for the linaro compiler?
2. I could use the debain multi-arch to apt-get the cross-compiler toolchain and icu stuff...but then I need to get the build_kernel.sh script to point to this compiler. Has anyone done this?

Thanks!
Karina



Robert Nelson

unread,
Aug 11, 2016, 12:50:51 PM8/11/16
to Beagle Board, Karina Bond
On Thu, Aug 11, 2016 at 11:45 AM, Karina <karin...@gmail.com> wrote:
> I needed to build a "newer" version of the Linux kernel for my beagle bone
> black since the kernel that came with board has this weird USB power issue
> ( uname : 3.8.13 - bone47).
>
> My development environment is a virtual Box running Debian.(3.16.0-4-amd64)
>
> I followed the instructions to build the Beagle bone kernel and image from
> the following website. (Thanks Robert Nelson). This worked great!
> https://eewiki.net/display/linuxonarm/BeagleBone+Black
>
> As part of those instructions, the cross compiler toolchain I installed was
> Linaro GCC 5.3-2016.02. The build_kernel.sh script actually (re)downloads
> this exact toolchain and uses it to build the kernel.
>
> Now I have started to write code for my beagle bone application. I require
> to use Qt. I was able to the build the Qt library statically using the above
> linaro compiler. But when I try to link my application code against the
> build Qt library I get missing library link errors for libicuio, libicui18n,
> libicuuc, libicudata.
>
> 1. How do I get the ICU libraries for the linaro compiler?

"it's" best to use your system compiler for qt libraries..

> 2. I could use the debain multi-arch to apt-get the cross-compiler toolchain
> and icu stuff...but then I need to get the build_kernel.sh script to point
> to this compiler. Has anyone done this?

in the system.sh file in the kernel build script, just set CC=...

CC=/usr/bin/arm-linux-gnueabihf-

Regards,


--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages