Code::Blocks Forums

User forums => Help => Topic started by: AlbertusWillem on August 20, 2021, 02:02:04 AM

Title: Cannot find avr compiler although avr-gcc is installed
Post by: AlbertusWillem on August 20, 2021, 02:02:04 AM
Hi, I cannot get code::blocks to find the avr-gcc compiler, the compiler and avr-gdb is in my /usr/bin file.  I attached a screenshot.  Auto-detect (toolchain executables) did not find it.  Using the file browser next to the auto-detect button, when I open /usr/bin the compiler does not show.

Am I missing something (I am a beginner), please help. :)

Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: AlbertusWillem on August 20, 2021, 11:55:08 AM
Just some more information - I am running on Ubuntu 20.04 using code::blocks 20.03 downloaded from flathub.
Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: Miguel Gimenez on August 20, 2021, 12:30:08 PM
It looks good to me, what happens when you click OK?
Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: AlbertusWillem on August 20, 2021, 01:26:58 PM
It says "Cant find compiler executable in your configured search paths for GNU GCC compiler for AVR" in a error box in the corner.  I'll try and compile it manually in the command line to see if the error might arise from my compiler.
Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: stahta01 on August 20, 2021, 03:37:24 PM
Quote from: AlbertusWillem on August 20, 2021, 11:55:08 AM
Just some more information - I am running on Ubuntu 20.04 using code::blocks 20.03 downloaded from flathub.

There has been at least one person saying flathub Code::Blocks is known to not work.

Tim S.
Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: Miguel Gimenez on August 20, 2021, 04:02:47 PM
Quote from: stahta01 on August 20, 2021, 03:37:24 PM
There has been at least one person saying flathub Code::Blocks is known to not work.

I think TIm is right; search for "flatpak" in the forum (example (https://forums.next.codeblocks.org/index.php/topic,23943.msg163332.html#msg163332))

EDIT: Link to flatpak permissions (https://docs.flatpak.org/en/latest/sandbox-permissions.html)
Title: Re: Cannot find avr compiler although avr-gcc is installed
Post by: AlbertusWillem on August 20, 2021, 05:15:33 PM
Thank you, I installed code::blocks using apt get now and it works fine.