Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Firmata in Windows #3

Open
arumrum opened this issue Dec 9, 2016 · 4 comments
Open

Installing Firmata in Windows #3

arumrum opened this issue Dec 9, 2016 · 4 comments

Comments

@arumrum
Copy link

arumrum commented Dec 9, 2016

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
Copy link
Owner

callaa commented Dec 11, 2016

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
Copy link
Author

arumrum commented Jan 10, 2017

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
Copy link
Owner

callaa commented Jan 10, 2017

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
Copy link
Author

arumrum commented Jan 12, 2017

thank youuu. I'll try it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants