Hi, I´m studying Qt, specifically I´m trying to connect Arduino with Qt to create a GUI for configure a Arduino board.
I´m using Firmata library for Arduino and Firmatator library (available in this link: https://github.com/dh1tw/firmatator).
Well, my problem is in firmatator library. When I build “firmatator_examples.proâ€, I get this error:
…\include\firmatator\moc_fdevice.cpp:14: error: C1189: #error : "This file was generated using the moc from 4.7.4. It"
I think that the problem is due to in this project there is a copy of “QtSerialPort†pre-built and more old (year 2013) than my installed version of “QtSerialPortâ€. I suppose that I have to do changes in the file .pro but I don´t know…
I add code of firmatator_examples.pro:
#-------------------------------------------------
#
# Project created by QtCreator 2012-05-08T18:37:34
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = firmatator_examples
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
include/firmatator/moc_serialport.cpp \
ftest.cpp
#
#win32:CONFIG(release, debug|release): LIBS += -L$$PWD/include/firmatator/release/ -lfirmatator
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/include/firmatator/debug/ -lfirmatator
#else:symbian: LIBS += -lfirmatator
#else:unix: LIBS += -L$$PWD/include/firmatator/ -lfirmatator
#
#INCLUDEPATH += $$PWD/include/firmatator
#DEPENDPATH += $$PWD/include/firmatator
#
HEADERS += \
include/firmatator/firmatator.h \
include/firmatator/fdevice.h \
ftest.h
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/include/firmatator/release/ -lfirmatator
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/include/firmatator/debug/ -lfirmatator
else:symbian: LIBS += -lfirmatator
else:unix: LIBS += -L$$PWD/include/firmatator/ -lfirmatator
INCLUDEPATH += $$PWD/include/firmatator
DEPENDPATH += $$PWD/include/firmatator
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/include/QSerialDevice/release/ -lSerialPort
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/include/QSerialDevice/debug/ -lSerialPort
else:symbian: LIBS += -lSerialPort
else:unix: LIBS += -L$$PWD/include/QSerialDevice/ -lSerialPort
INCLUDEPATH += $$PWD/include/QSerialDevice
DEPENDPATH += $$PWD/include/QSerialDevice
PD: I have QT 5.4.1 (MSVC 2013 32 bit) with Qt Creator 3.3.1.
Sorry for my English and I wait replies.
Thanks in advance.
Bookmarks