Unable to Compile Uduino.uno

Create issue
Issue #11 resolved
Former user created an issue

I have just updated to the latest version of Uduino 1.4.3 from Oct 19, 2017, and I am getting the following error when trying to compile Uduino.uno for any Teensy board:

Build options changed, rebuilding all Uduino: In function 'ServoWrapper getAvailableServo()': Uduino:222: warning: converting 'false' to pointer type 'ServoWrapper {aka _servoWrapper*}' return false;

      ^

Uduino: In function 'void ReadBundle()': Uduino:63: warning: 'arg' may be used uninitialized in this function uduino.launchCommand(arg);

                          ^

Uduino:62: warning: 'len' may be used uninitialized in this function for (int i = 0; i < len; i++) {

                 ^

Uduino: In function 'void ReadDigitalPin()': Uduino:174: warning: 'pinToRead' may be used uninitialized in this function printValue(pinToRead, digitalRead(pinToRead), false);

                                                   ^

Uduino: In function 'void BundleReadPin()': Uduino:185: warning: 'pinToRead' may be used uninitialized in this function printValue(pinToRead, analogRead(pinToRead), true);

                                                 ^

Uduino: In function 'void WritePinAnalog()': Uduino:121: warning: 'pinToMap' may be used uninitialized in this function struct _servoWrapper* servo = getServoAttachedTo(pinToMap);

                                                          ^

Uduino: In function 'void WritePinDigital()': Uduino:144: warning: 'pinToMap' may be used uninitialized in this function if (!getServoAttachedTo(pinToMap)->isActive()) //it's not a servo

                                            ^

Uduino: In function 'void SetMode()': Uduino:82: warning: 'pinToMap' may be used uninitialized in this function PinSetMode(pinToMap, type);

                           ^

C:\Users\Ali\Documents\Arduino\libraries\Uduino\Uduino.cpp: In constructor 'Uduino::Uduino(const char*)':

C:\Users\Ali\Documents\Arduino\libraries\Uduino\Uduino.cpp:32:9: warning: unused variable 'p' [-Wunused-variable]

void* p = &val;

     ^

C:\Users\Ali\Documents\Arduino\libraries\Uduino\Uduino.cpp: At global scope:

C:\Users\Ali\Documents\Arduino\libraries\Uduino\Uduino.cpp:262:27: error: cannot declare member function 'static void Uduino::Empty()' to have static linkage [-fpermissive]

static void Uduino::Empty() {}

                       ^

Multiple libraries were found for "Servo.h" Used: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Servo Not used: C:\Program Files (x86)\Arduino\libraries\Servo Error compiling for board Teensy 3.6.

Comments (6)

  1. Marc Teys repo owner

    Several people already told me it's not possible to compile for Teensy. I bought a Teensy board to try to fix that ! Most likely in the next version

  2. Albert

    Is there any progress on this front? Can we expect the next version in the coming week or two? If you have a beta and need someone to try it, I volunteer.

  3. Marc Teys repo owner

    I am still waiting for the teensy board but I have fixed the compilations errors. Could you try with this version ? (Experimental)

  4. Albert

    My computer had been broken since last week, and I just got it back today. I tested this and it seems to work. I would do additional testing and report if I find something problematic.

  5. Log in to comment