Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Compiling Problems

Compiling Problems

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 9 Posters 11.1k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NBM
    wrote on last edited by
    #1

    Hey

    I get this problem when i'm compiling. No matter what i do. I have tried to delete det libery and indset the new libery.

    Can any one help me?

    Arduino: 1.6.6 (Mac OS X), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

    Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
    WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:150:9: error: prototype for 'uint8_t SPIFlash::readByte(uint32_t)' does not match any in class 'SPIFlash'
    uint8_t SPIFlash::readByte(uint32_t addr) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:79:11: error: candidate is: uint8_t SPIFlash::readByte(long int)
    uint8_t readByte(long addr);
    ^
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:161:6: error: prototype for 'void SPIFlash::readBytes(uint32_t, void*, uint16_t)' does not match any in class 'SPIFlash'
    void SPIFlash::readBytes(uint32_t addr, void* buf, uint16_t len) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:80:8: error: candidate is: void SPIFlash::readBytes(long int, void*, word)
    void readBytes(long addr, void* buf, word len);
    ^
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:220:6: error: prototype for 'void SPIFlash::writeByte(uint32_t, uint8_t)' does not match any in class 'SPIFlash'
    void SPIFlash::writeByte(uint32_t addr, uint8_t byt) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:81:8: error: candidate is: void SPIFlash::writeByte(long int, uint8_t)
    void writeByte(long addr, uint8_t byt);
    ^
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:234:6: error: prototype for 'void SPIFlash::writeBytes(uint32_t, const void*, uint16_t)' does not match any in class 'SPIFlash'
    void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:82:8: error: candidate is: void SPIFlash::writeBytes(long int, const void*, uint16_t)
    void writeBytes(long addr, const void* buf, uint16_t len);
    ^
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:269:6: error: prototype for 'void SPIFlash::blockErase4K(uint32_t)' does not match any in class 'SPIFlash'
    void SPIFlash::blockErase4K(uint32_t addr) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:85:8: error: candidate is: void SPIFlash::blockErase4K(long int)
    void blockErase4K(long address);
    ^
    /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:278:6: error: prototype for 'void SPIFlash::blockErase32K(uint32_t)' does not match any in class 'SPIFlash'
    void SPIFlash::blockErase32K(uint32_t addr) {
    ^
    In file included from /Users/nikolajmadsen/Documents/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
    /Users/nikolajmadsen/Documents/Arduino/libraries/SPIFlash/SPIFlash.h:86:8: error: candidate is: void SPIFlash::blockErase32K(long int)
    void blockErase32K(long address);
    ^
    exit status 1
    Fejl i kompilering.

    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      atomicpapa
      wrote on last edited by
      #2

      I am also having a very similar problem trying to compile the code or the serial gateway onto a nano. I am running Arduino IDE 1.6.6.on Ubuntu 15.04. Error log as follows:

      Arduino: 1.6.6 (Linux), Board: "Arduino Nano, ATmega328"

      Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
      WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:150:9: error: prototype for 'uint8_t SPIFlash::readByte(uint32_t)' does not match any in class 'SPIFlash'
      uint8_t SPIFlash::readByte(uint32_t addr) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:79:11: error: candidate is: uint8_t SPIFlash::readByte(long int)
      uint8_t readByte(long addr);
      ^
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:161:6: error: prototype for 'void SPIFlash::readBytes(uint32_t, void*, uint16_t)' does not match any in class 'SPIFlash'
      void SPIFlash::readBytes(uint32_t addr, void* buf, uint16_t len) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:80:8: error: candidate is: void SPIFlash::readBytes(long int, void*, word)
      void readBytes(long addr, void* buf, word len);
      ^
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:220:6: error: prototype for 'void SPIFlash::writeByte(uint32_t, uint8_t)' does not match any in class 'SPIFlash'
      void SPIFlash::writeByte(uint32_t addr, uint8_t byt) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:81:8: error: candidate is: void SPIFlash::writeByte(long int, uint8_t)
      void writeByte(long addr, uint8_t byt);
      ^
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:234:6: error: prototype for 'void SPIFlash::writeBytes(uint32_t, const void*, uint16_t)' does not match any in class 'SPIFlash'
      void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:82:8: error: candidate is: void SPIFlash::writeBytes(long int, const void*, uint16_t)
      void writeBytes(long addr, const void* buf, uint16_t len);
      ^
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:269:6: error: prototype for 'void SPIFlash::blockErase4K(uint32_t)' does not match any in class 'SPIFlash'
      void SPIFlash::blockErase4K(uint32_t addr) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:85:8: error: candidate is: void SPIFlash::blockErase4K(long int)
      void blockErase4K(long address);
      ^
      /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:278:6: error: prototype for 'void SPIFlash::blockErase32K(uint32_t)' does not match any in class 'SPIFlash'
      void SPIFlash::blockErase32K(uint32_t addr) {
      ^
      In file included from /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
      /home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:86:8: error: candidate is: void SPIFlash::blockErase32K(long int)
      void blockErase32K(long address);
      ^
      exit status 1
      Error compiling.

      This report would have more information with
      "Show verbose output during compilation"
      enabled in File > Preferences.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        atomicpapa
        wrote on last edited by
        #3

        Update: I should have mentioned in previous post that I have also attempted to remove and reinstall recipes. Also removed and reinstalled the arduino IDE. I also install IDE 1.0.6 which does result in different errors:

        This report would have more information with
        "Show verbose output during compilation"
        enabled in File > Preferences.
        Arduino: 1.0.6 (Linux), Board: "Arduino Nano w/ ATmega328"
        In file included from SerialGateway.ino:53:
        GatewayUtil.h:40: error: ‘MyParserSerial’ does not name a type
        GatewayUtil.h:44: error: ‘MAX_PAYLOAD’ was not declared in this scope
        GatewayUtil.h:67: error: expected ‘,’ or ‘...’ before ‘&’ token
        GatewayUtil.h:67: error: ISO C++ forbids declaration of ‘MyMessage’ with no type
        GatewayUtil.h: In function ‘void incomingMessage(int)’:
        GatewayUtil.h:74: error: ‘message’ was not declared in this scope
        GatewayUtil.h:74: error: ‘mGetCommand’ was not declared in this scope
        GatewayUtil.h:74: error: ‘mGetAck’ was not declared in this scope
        GatewayUtil.h:74: error: ‘convBuf’ was not declared in this scope
        GatewayUtil.h: At global scope:
        GatewayUtil.h:98: error: variable or field ‘parseAndSend’ declared void
        GatewayUtil.h:98: error: ‘MySensor’ was not declared in this scope
        GatewayUtil.h:98: error: ‘gw’ was not declared in this scope
        GatewayUtil.h:98: error: expected primary-expression before ‘char’

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Luppie
          wrote on last edited by
          #4

          I'm having the same problem.
          Started with MySensors yesterday and tried to install the esp8266 WiFi Gateway.

          Did a clean install of the Arduino IDE 1.6.6 and followed all steps described here

          The result is the same as the topicstarter.

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            The problems are related to arduino 1.6.6, and currently only dev is able to compile on it (as far as I know).

            1 Reply Last reply
            1
            • L Offline
              L Offline
              Luppie
              wrote on last edited by
              #6

              I can confirm that. Just removed 1.6.6 and revert to 1.6.5 and now it is working instantly.
              Thank you for the hint.

              Maybe it's an option to edit the esp8266_gateway page and remove the + from Arduino 1.6.5+ and add a remark that it's not (yet) working on 1.6.6

              1 Reply Last reply
              0
              • A Offline
                A Offline
                atomicpapa
                wrote on last edited by
                #7

                Thanks!! That solved it!!

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  NBM
                  wrote on last edited by
                  #8

                  That worked. Thank you.

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #9

                    FYI: Updated master branch (1.5.1) to compile on Arduino IDE 1.6.6 a couple of days ago.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      shabba
                      wrote on last edited by shabba
                      #10

                      Is there a link to the 1.5.1 ? And is it considered a stable release? Also might be worth making it the default download for stable so new people don't get scared away.
                      Thanks!

                      1 Reply Last reply
                      0
                      • korttomaK Offline
                        korttomaK Offline
                        korttoma
                        Hero Member
                        wrote on last edited by
                        #11

                        The "Download Libraries" button on this page -> http://www.mysensors.org/about/arduino will give you the 1.5.1 version.

                        • Tomas
                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          ansh
                          wrote on last edited by
                          #12

                          I need help! Does not work WiFi Gateway using ESP8266.


                          WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
                          WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'


                          upload-87fb2d34-a887-4c42-bdcc-1ede9c6b8f51

                          1 Reply Last reply
                          0
                          • hekH Offline
                            hekH Offline
                            hek
                            Admin
                            wrote on last edited by
                            #13

                            That's just warnings the new IDE is spitting out. Nothing to worry about.

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              ansh
                              wrote on last edited by ansh
                              #14

                              Thank you! Ok.
                              But after flashing WiFi Gateway ESP8266 not pinged .. When I unplug the USB cord from your computer and connect an external source of 5V, then it worked ...

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                bgriffith87
                                wrote on last edited by
                                #15

                                This thread helped me as well when I installed Arduino IDE 1.6.7. I still had an old version of the MySensors library kicking around in my Sketch Book (if it isn't broke, don't fix it). I just want to keep this thread alive for awhile. :)

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                17

                                Online

                                11.7k

                                Users

                                11.2k

                                Topics

                                113.1k

                                Posts


                                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • MySensors
                                • OpenHardware.io
                                • Categories
                                • Recent
                                • Tags
                                • Popular