Author Topic: Code Blocks running on M1 Pro Chip.  (Read 1016 times)

Offline sambhav

  • Single posting newcomer
  • *
  • Posts: 1
Code Blocks running on M1 Pro Chip.
« on: September 07, 2022, 09:13:33 pm »
Hi everyone,
I'm trying to install codeblocks 17.12 on the 14" Macbook Pro with the M1 Chip.
After installation, when you create an empty file and start typing, an error message pops up.

How do I fix this issue, as I want to run CodeBlocks on the M1 chip.

Thank You.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Code Blocks running on M1 Pro Chip.
« Reply #1 on: September 08, 2022, 12:30:32 am »
On the MAC please disable the code completion plugin as it causes crashes on the MAC (Windows and Linux are okay).

C::B 17.12 is old.   I am still learning the MAC eco system, so sorry for the asking, but where did you get the ARM Code::Blocks? I have only seen it widely available for for Intel CPU's and there have been some people who have built it for the M1, but it was a nightly not 17.12.
If you want to C::B to debug then currently you will need have a look at the following repo and build C::B in order to get the DAP debugger plugin so you can use it to debug your app until the DAP debugger is included in the SF trunk source code:
You do not need C::B to build C::B if you use the instructions in the following file:
I do not have access to an M1/M2 Mac, but if you get stuck please post a followup post so I can try to help.