QT - Problema al compilar: "This file was generated using the moc from 4.7.4. It"

 
Vista:
sin imagen de perfil

Problema al compilar: "This file was generated using the moc from 4.7.4. It"

Publicado por Black (2 intervenciones) el 12/04/2016 14:25:58
Buenas a todos, actualmente estoy realizando un trabajo para conectar Arduino con Qt. Estoy usando la librería Firmata para Arduino y la librería Firmatator (disponible en este enlace: https://github.com/dh1tw/firmatator) para Qt.

Mi problema viene en la libería Firmatator. Cuando trato de compilar el ejemplo "firmatator_examples.pro" se produce el siguiente error:

…\include\firmatator\moc_fdevice.cpp:14: error: C1189: #error : "This file was generated using the moc from 4.7.4. It"

Pienso que el problema es que en la libería Firmatator se hace uso de una copia local de Qserialport que está desactualizada (año 2013) respecto a la versión de qtserialport que tengo instalada en Qt. Supongo que habrá que realizar cambios en el fichero .pro para decirle que use la ruta de mi libería Qtserialport y vuelva a compilar, pero no sé de qué manera...

Añado el código del fichero firmatator_examples.pro:

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

Postdata: Tengo QT 5.4.1 (MSVC 2013 32 bit) con Qt Creator 3.3.1.

Espero sus respuestas y gracias de antemano.

Un saludo.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 96
Oro
Ha mantenido su posición en QT (en relación al último mes)
Gráfica de QT

Problema al compilar: "This file was generated using the moc from 4.7.4. It"

Publicado por juanki (102 intervenciones) el 13/04/2016 21:01:39
Hola

Los archivos moc_* los genera QtCreator cuando compilas el proyecto. ¿Probaste haciendo "clean" antes de compilar? o ¿rebuild proyect?

Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

Problema al compilar: "This file was generated using the moc from 4.7.4. It"

Publicado por Black (2 intervenciones) el 18/04/2016 18:00:52
Exacto, lo he probado y nada.
Gracias por contestar,
saludos.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar