thomasgeissl / QFirmata

[WIP] Qt firmata client, port of openFramework's firmata implementation
2 stars 1 forks source link

Error in Qfirmata library #1

Open arumrum opened 7 years ago

arumrum commented 7 years ago

Hi, I am using your qfirmata libabry in my project. i combine this qfirmata and qwt library. But when i include firmata library in my project which is qfirmata.h, but there are error in qfirmata.h:

D:\SGU\Trial_oscillocope\oscilloscope\qfirmata.h:375: error: expected ':' before 'slots' private slots: ^ D:\SGU\Trial_oscillocope\oscilloscope\qfirmata.h:375: error: 'slots' does not name a type

D:\SGU\Trial_oscillocope\oscilloscope\qfirmata.h:378: error: 'signals' does not name a type signals: ^

and the errors pointing at this:

private slots: void readData(); // polls data from the serial port, this has to be called periodically signals: void digitalPinChanged(const int pin); // triggered when a digital pin changes value, the pin that changed is passed as an argument

void analogPinChanged(const int pin); Do you have any idea about this? I am working on windows 7 64bit with mingw32 compiler. Actually i have tried to run my apps in Linux and it was doing well.

Thank you for your kind help and answer

arumrum commented 7 years ago

I also have tried to change

private slot into Q_SLOTS signals inti Q_SIGNALS

but there are still error pointing at emit.

thomasgeissl commented 7 years ago

Hello arumrum, nice to see you are using QFirmata. Did the provided example work? Does other qt code compile fine? How are you compiling your project?

arumrum commented 7 years ago

Helo, nice to hear the reply form you. yes, the provided example work fine. I also use it in my some projects. the qwt code also work fine when I run it without qfirmata. But when i use the qfirmata and qwt at the same project its error.