qfirmata icon indicating copy to clipboard operation
qfirmata copied to clipboard

Installing Firmata in Windows

Open arumrum opened this issue 9 years ago • 4 comments

Good afternoon, Actually i just started my projects a few days ago. I confused how to install firmata in windows. How can I build qmake-qt5 and install? Should I run from Qt command prompt ? Please give any advise

Thank you for your kind relpy

arumrum avatar Dec 09 '16 09:12 arumrum

The easiest way is to build it inside Qt Creator. Building from the command line should also be possible, you just need to set your PATH environment variable to include the Qt installation's bin/ directory.

callaa avatar Dec 11 '16 10:12 callaa

hallo again, i have successfull to install firmata in ive tried in my apps. But I have trouble here, sometimes 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.

Tank you for your kind help and answer

arumrum avatar Jan 10 '17 08:01 arumrum

Hi! Looks like the "signals" and "slots" keywords are not enabled in your build. I pushed a new commit that replaces them with the Q_SIGNALS and Q_SLOTS macros that should work everywhere.

callaa avatar Jan 10 '17 15:01 callaa

thank youuu. I'll try it :)

arumrum avatar Jan 12 '17 15:01 arumrum