How to add native gcc to linux distribution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-07 8:22 AM
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
Solved! Go to Solution.
- Labels:
-
OpenSTLinux
-
ST-Boards
-
STM32MP15 Lines
-
Yocto
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-08 1:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-07 8:36 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-07 8:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-08 1:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-08 1:34 AM
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-08 3:45 PM
Great, I'll give it a try.
Thanks Marco and Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-07-10 8:18 AM
Adding
IMAGE_INSTALL_append = " packagegroup-core-buildessential"
worked like a charm - thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-16 8:43 PM
Thank you for sharing detailed answer. I will try the solutions discussed and update you.
I have linux 18.04.
