Menu

ARduinoRCLib-T5X - ARduino IDE 1.6 lots of errors

Features
Anonymous
2015-03-02
2015-03-05
  • Anonymous

    Anonymous - 2015-03-02

    Hi,

    for I want to build my own transmitter (PPM only) I found this lib (introduced by T5X) during my research.
    Unfortunately I'm receiving many errors regarding wrong types and so on.
    I did a fresh install of the latest ARduino IDE last weekend.

     
    • dvdouden

      dvdouden - 2015-03-04

      Hi,

      Which board are you compiling for? Only Arduino Uno/Micro (Atmega328/168 types) have been tested so far. They seem to compile fine with the 1.6 version of Arduino

       
  • Anonymous

    Anonymous - 2015-03-04

    The project:
    https://github.com/ckonecny/t5x

    I prefer Arduino pro mini but I've tried for nano also.
    There are problems with debug.h and debug_lib.h which were included in AIPin.cpp:

    Arduino: 1.6.0 (Windows 7), Platine: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

    Build-Optionen wurden verändert, alles wird neu gebaut

    In file included from C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug_lib.h:36:0,
    from C:\Users\majo\Documents\Arduino\libraries\RC\AIPin.cpp:17:
    C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:18: error: 'prog_char' does not name a type
    void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
    C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:29: error: ISO C++ forbids declaration of 'p_file' with no type [-fpermissive]
    void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
    C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:60: error: 'prog_char' does not name a type
    void halt(const prog_char p_file, uint16_t p_line, const prog_char p_fmt, ...);
    C:\Users\majo\Documents\Arduino\libraries\RC/rc_debug.h:105:71: error: ISO C++ forbids declaration of 'p_fmt' with no type [-fpermissive]
    ...

     
    • dvdouden

      dvdouden - 2015-03-05

      Cool, I didn't of that project yet, or that it uses ArduinoRCLib. Looks like it uses the code from the trunk (nightly) that hasn't been released officially yet.
      Anyway, I found the problem. I don't have time to look into it very deeply or test everything with the 1.6 IDE, but here's how you can get the code to at least compile again.

      Open rc_debug.h, and after the line

      #include <avr/pgm_space.h>
      

      add the following:

      typedef char PROGMEM prog_char;
      typedef uint8_t PROGMEM prog_uint8_t;
      

      That should fix the compiler errors.
      I guess the new IDE uses a newer version of the compiler, and some typedefs have been removed.

       
  • Anonymous

    Anonymous - 2015-03-05

    Thank you, it compiles now.
    And yes, the compiler may have changed.
    In nearly every thirdparty lib I must often add some "const".

     
    • dvdouden

      dvdouden - 2015-03-05

      Glad to be of help!
      FWIW:
      Arduino 1.0.4 uses avr-gcc 4.3.2
      Arduino 1.6.0 uses avr-gcc 4.8.1
      I know there were some problems with PROGMEM in the old version of gcc, causing all sorts of incorrect compiler warnings while the code was perfectly valid. Apparently they fixed it in the newer version since I no longer see those warnings.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.