callaa / qfirmata

Firmata library for Qt/QML
GNU Lesser General Public License v3.0
16 stars 5 forks source link

Installing Firmata in Windows #3

Open arumrum opened 7 years ago

arumrum commented 7 years ago

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

callaa commented 7 years ago

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.

arumrum commented 7 years ago

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

callaa commented 7 years ago

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.

arumrum commented 7 years ago

thank youuu. I'll try it :)