Author Topic: Cannot find avr compiler although avr-gcc is installed  (Read 2566 times)

Offline AlbertusWillem

  • Single posting newcomer
  • *
  • Posts: 4
Cannot find avr compiler although avr-gcc is installed
« 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. :)


Offline AlbertusWillem

  • Single posting newcomer
  • *
  • Posts: 4
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #1 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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 826
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #2 on: August 20, 2021, 12:30:08 pm »
It looks good to me, what happens when you click OK?

Offline AlbertusWillem

  • Single posting newcomer
  • *
  • Posts: 4
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #3 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7190
    • My Best Post
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #4 on: August 20, 2021, 03:37:24 pm »
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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 826
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #5 on: August 20, 2021, 04:02:47 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)

EDIT: Link to flatpak permissions
« Last Edit: August 20, 2021, 04:29:27 pm by Miguel Gimenez »

Offline AlbertusWillem

  • Single posting newcomer
  • *
  • Posts: 4
Re: Cannot find avr compiler although avr-gcc is installed
« Reply #6 on: August 20, 2021, 05:15:33 pm »
Thank you, I installed code::blocks using apt get now and it works fine.