Mac OS X issues with compiling on IDE 1.5 to 1.6.8

Running Mac OSX 10.11.4 and attempting to use Arduino IDE 1.6.8.

Compile errors have appeared in my perfectly working code since updating the IDE from 1.0.5 to first 1.6.5 and then 1.6.8. The first error which is as follows:
Board arduino:avr:intclock328 doesn't define a 'build.board' preference. Auto-set to: AVR_INTCLOCK328
seems to have to do with the requirement since IDE 1.6.5 to provide a "hardware folder" and a .txt file within it that contains at least a statement
that defines a setting for the build.board value. I cannot find acceptable values to assign to that build.board setting nor for other settings that
may also be in that .txt file. Additionally, I am uncertain of the appropriate directory path to place that boards.txt file - the documentation in
indicates that it should be hardware/arduino/avr/... with no indication where that hardware/... portion of the path should be placed. A fully
qualified path needs to be provided. Same with the other two newly required .txt files (platform.txt and programmers.txt) and also what valid values
and setting should be within those files.

The next compile error has to do with the inability of the compiler to find include files such as ../Wire/Wire.h. Reverting back to IDE version 1.0.5
from 1.6.8 causes these error messages to vanish and allows the code to finish compiling.

In file included from /Users/Desktop/WiFiChron/WiFiChron/WiFiChron.ino:59:0:
/var/folders/15/64k3lpz13fjfhc_l2hh460680000gp/T/buildbf4571767891f46ac687e92a99c18682.tmp/sketch/DS1307.h:16:28: fatal error: ../Wire/Wire.h: No such file or directory

Wire.h is part of the Wire library that should be locatable by the compiler in 1.6.8 but apparently isn't being found.

So there are at least two separate issues here, both related to versions of the IDE since at least 1.6.5 and probably 1.5. Any
insight would be appreciated.

scottha:
Board arduino:avr:intclock328 doesn't define a 'build.board' preference. Auto-set to: AVR_INTCLOCK328

That's a warning, not an error and can be safely ignored.

scottha:
I cannot find acceptable values to assign to that build.board setting

You can set it to anything you want. It just defines a macro that can be used in your code to identify which board is being used.

scottha:
nor for other settings that
may also be in that .txt file.

All the information you need is here: Arduino IDE 1.5 3rd party Hardware specification · arduino/Arduino Wiki · GitHub

scottha:
Additionally, I am uncertain of the appropriate directory path to place that boards.txt file

The boards.txt file already exists, otherwise you would not be getting that error.

scottha:
the documentation in
indicates that it should be hardware/arduino/avr/... with no indication where that hardware/... portion of the path should be placed.

It looks like you added the intclock328 entry to the Arduino AVR Boards boards.txt so the hardware folder will be found either in the Arduino IDE installation folder or the Arduino15 folder. You can determine which by doing File > Examples > EEPROM > EEPROM_clear, Sketch > Show Sketch Folder. I don't understand why you don't already know the location since you are the one who added the intclock328 entry to the file.

scottha:
Same with the other two newly required .txt files (platform.txt and programmers.txt) and also what valid values
and setting should be within those files.

Those aren't required but the information is found in the specification document I linked above.

scottha:
In file included from /Users/Desktop/WiFiChron/WiFiChron/WiFiChron.ino:59:0:
/var/folders/15/64k3lpz13fjfhc_l2hh460680000gp/T/buildbf4571767891f46ac687e92a99c18682.tmp/sketch/DS1307.h:16:28: fatal error: ../Wire/Wire.h: No such file or directory

  • Where did you download the WiFiChron sketch from?
  • What do you have selected in Tools > Board?

I think I may be able to answer my own questions and at least give a little insight to others who may have these sorts of problems. The first issue that involved the boards.txt file was resolved by realizing that the boards.txt, platforms.txt, and programmers.txt files are hidden on the Max OS and can be found located within the application file "package" by option-clicking on the application icon, then clicking show package contents and then navigating into the /Java/hardware/ folder to access the three .txt files. Add within your boards.txt file a line within the section supporting the hardware chip you are using a line for a build.board=AVR_INTCLOCK328 value. Similar entries would be required for each type of chip needing support. The .txt files need to be provided within the package contents each time the IDE is updated by downloading a new installation.

The second issue involving the included Wire.h file turned out to be an OPS problem (Other People's Software) wherein I was using software developed by others who did not fully specify, qualify, and prevent redefinition of nested include files. Once I traced that chain down and properly specified the includes, the problems vanished. I'm not sure you actually save yourself any time by using OPS rather than doing your own development. Once again that turned out to be the case. Thanks for looking and considering my problems, perhaps this writeup will help someone else.

Thanks Pert, I was typing that response as your response came in. You were exactly correct. I had added that entry to boards.txt nearly two years ago and had forgotten those files were lurking in the package, ai had been reading dicumentation that was not geared to Macs and failed to mention that application oackage file hierarchy.

Glad to hear you got things working. Note that, although it is easy, adding entries to the Arduino AVR Boards boards.txt file is not ideal because if you update to a new version your changes will be lost. It is better to create a separate hardware package and place it in the hardware folder in your sketchbook folder. This could be as simple as just a boards.txt file that contains the intclock328 entry. You would probably need to make some small changes to the entry to reference the arduino core and if you wanted to be able to Burn Bootloader you would need to copy the bootloader file from Arduino AVR Boards since you can't reference bootloaders. If you're interested in making this change I can give you instructions on what needs to be done, just post your intclock328 boards manager entry.