Author Topic: Ardunio Project Help  (Read 744 times)

Online stahta01

  • Lives here!
  • ****
  • Posts: 6253
    • My Best Post
Re: Ardunio Project Help
« Reply #15 on: June 25, 2018, 03:45:24 am »
Remove the option or use a compiler that supports that option. Did you setup the compiler tool chain correctly?
It's the standard Mingw-w64 6.2.0 with POSIX Threads. Ithink POSIXS...
It better be set up right, otherwise something is wrong and my other projects are some sort of miraculous outcome.
Any suggestions for this "other" compiler?

So, you are no longer building code you wish to run on an Ardunio board?
And, the current code is to run on Windows instead?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline eldevstudios

  • Multiple posting newcomer
  • *
  • Posts: 10
  • We program in code
Re: Ardunio Project Help
« Reply #16 on: June 25, 2018, 06:35:12 am »
So, you are no longer building code you wish to run on an Ardunio board?
No, that wasn't said. I don't have a single project I am working on. If the compiler was the issue, I wouldn't be able to build code for my other projects. The toolchains are setup right. If they weren't, no project could build.
I am still trying to build the simple test code to see if it will even build for the Arduino.
We program in code here
Follow my instagram @eldevstudios

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10904
    • Travis build status
Re: Ardunio Project Help
« Reply #17 on: June 25, 2018, 09:19:43 am »
To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline headkase

  • Almost regular
  • **
  • Posts: 158
Re: Ardunio Project Help
« Reply #18 on: June 25, 2018, 06:01:25 pm »
Any suggestions for this "other" compiler?

MinGW-Builds has the latest compilers:

https://sourceforge.net/projects/mingw-w64/files/

In Toolchains targeting Win64 or Win32 -> Personal Builds -> mingw-builds -> GCC version (7.3.0 is more stable than the latest 8.1.0) -> Threading Model (posix is good) -> Exception handling (SEH is best but limited to 64-bit compilers, if you're 32-bit then Dwarf) -> Download the latest revision of the compiler.

Then see:

http://wiki.codeblocks.org/index.php/MinGW_installation#Code::Blocks_Configuration

For integrating the MinGW-Builds compiler into Code::Blocks.  Unarchive the compiler toolchain wherever you would like, then start from the given link to configure Code::Blocks to use it.

For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.

Offline eldevstudios

  • Multiple posting newcomer
  • *
  • Posts: 10
  • We program in code
Re: Ardunio Project Help
« Reply #19 on: June 25, 2018, 06:58:11 pm »
For cross-compiling to your Ardunio project I'm not completely sure this toolchain will do that but it's worth a shot and by being the most recent versions there should be support for more targets.
I hadn't asked how to set up Mingw-w64, it works fine for me. My question was what compiler should I use for AVR-GCC.

To build code for arduino you need avr-gcc. Is it selected as a compiler for the uno target?
I couldn't find an AVR-GCC compiler for some weird reason. I have Mingw-w64 as default most of the time.
We program in code here
Follow my instagram @eldevstudios

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10904
    • Travis build status
Re: Ardunio Project Help
« Reply #20 on: June 25, 2018, 08:47:58 pm »
I think this is the official source: http://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-(c-compilers).
Also it seems the arduino installation includes a supported avr-gcc compiler.
So if you tell cb to look somewhere inside Arduino's folders it could use this compiler.
Search for bin/c++.exe or something similar.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1883
Re: Ardunio Project Help
« Reply #21 on: June 26, 2018, 12:57:34 am »
The avg-gcc is also shiped with the arduino ide: arduino-1.8.5\hardware\tools\avr\bin