cancel
Showing results for 
Search instead for 
Did you mean: 

How to add native gcc to linux distribution?

aqueisser
Senior

What's the process to add a native gcc to openstlinux-weston so I can compile from the command line on my DK2 dev board? I was able to rebuild using bitbake and started poking around to find which layer to enable to get a native gcc running on the STM32MP1 dev board (DK2) but I can't figure it out.

Or should I use a different approach, is there a pre-built image for the DK2 with native gcc?

Thanks,

Andrew

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @aqueisser​ 

add this line to your local.conf

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

https://wiki.koansoftware.com/index.php/Add_native_gcc_to_the_target_image

--

Marco Cavallini

KOAN - Bergamo - Italia

embedded software engineering

https://KoanSoftware.com

View solution in original post

7 REPLIES 7
Olivier GALLIEN
ST Employee

Hi @aqueisser​ 

Compiling on target does not only require gcc but some other package to bring complete toolset.

Taking into account complexity and low performance service it may offer we decided to not support compilation on target.

Moreover we consider it's quite straightforward to use Developer Package SDK on HOST + ssh connection to board.

Could you please share what benefit you expect to compile on target ?

Thanks

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Olivier,

My main problem is that some python packages I've been trying to install (e.g. Kivy) try to launch the compiler at some point. I thought it would be easier to run gcc on the target instead of using the host SDK to run a python script (something like "python -m pip install xyz"). If there's a way to do this in the cross-compile SDK I'd be happy to try that but not sure where to start.

Andrew

Hi @aqueisser​ 

add this line to your local.conf

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

https://wiki.koansoftware.com/index.php/Add_native_gcc_to_the_target_image

--

Marco Cavallini

KOAN - Bergamo - Italia

embedded software engineering

https://KoanSoftware.com

Thanks @koan​ 

@aqueisser​ 

This require clarification from my previous comment.

As advised by @koan​ you can add support of compilation on target in your distribution.

We only removed installation on the same from debian package repository. (apt-get service)

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Great, I'll give it a try.

Thanks Marco and Olivier

aqueisser
Senior

Adding

IMAGE_INSTALL_append = " packagegroup-core-buildessential"

worked like a charm - thanks again.

ellaharrison
Associate

Thank you for sharing detailed answer. I will try the solutions discussed and update you.

I have linux 18.04.