J'ai istallé libmtdev-dev et je fais exportation du mtdev_libs et mtdev_cflags
export MTDEV_CFLAGS="/usr/local/include/"
export MTDEV_LIBS="/usr/local/lib/"
et je reçois le meme message d’erreur :
LibMTDevInputDevice.cpp:41:19: error: mtdev.h: Aucun fichier ou dossier de ce type
LibMTDevInputDevice.cpp:42:27: error: mtdev-mapping.h: Aucun fichier ou dossier de ce type
LibMTDevInputDevice.cpp: In destructor ‘virtual avg::LibMTDevInputDevice::~LibMTDevInputDevice()’:
LibMTDevInputDevice.cpp:58: error: ‘mtdev_close’ was not declared in this scope
LibMTDevInputDevice.cpp:59: warning: possible problem detected in invocation of delete operator:
LibMTDevInputDevice.cpp:59: warning: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: warning: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:59: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
LibMTDevInputDevice.cpp: In member function ‘virtual void avg::LibMTDevInputDevice::start()’:
LibMTDevInputDevice.cpp:73: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:74: error: ‘mtdev_open’ was not declared in this scope
LibMTDevInputDevice.cpp:81: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:81: error: ‘MTDEV_POSITION_X’ was not declared in this scope
LibMTDevInputDevice.cpp:84: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:84: error: ‘MTDEV_POSITION_Y’ was not declared in this scope
LibMTDevInputDevice.cpp: In member function ‘virtual std::vectorboost::shared_ptr > avg::LibMTDevInputDevice::pollEvents()’:
LibMTDevInputDevice.cpp:98: error: ‘mtdev_get’ was not declared in this scope
LibMTDevInputDevice.cpp:103: error: ‘ABS_MT_SLOT’ was not declared in this scope
make[3]: *** [LibMTDevInputDevice.lo] Erreur 1
[^] # Re: google ..
Posté par andree . En réponse au message mtdev.h erreur. Évalué à 0.
Bonjour,
J'ai istallé libmtdev-dev et je fais exportation du mtdev_libs et mtdev_cflags
export MTDEV_CFLAGS="/usr/local/include/"
export MTDEV_LIBS="/usr/local/lib/"
et je reçois le meme message d’erreur :
LibMTDevInputDevice.cpp:41:19: error: mtdev.h: Aucun fichier ou dossier de ce type
LibMTDevInputDevice.cpp:42:27: error: mtdev-mapping.h: Aucun fichier ou dossier de ce type
LibMTDevInputDevice.cpp: In destructor ‘virtual avg::LibMTDevInputDevice::~LibMTDevInputDevice()’:
LibMTDevInputDevice.cpp:58: error: ‘mtdev_close’ was not declared in this scope
LibMTDevInputDevice.cpp:59: warning: possible problem detected in invocation of delete operator:
LibMTDevInputDevice.cpp:59: warning: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: warning: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:59: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
LibMTDevInputDevice.cpp: In member function ‘virtual void avg::LibMTDevInputDevice::start()’:
LibMTDevInputDevice.cpp:73: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:74: error: ‘mtdev_open’ was not declared in this scope
LibMTDevInputDevice.cpp:81: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:81: error: ‘MTDEV_POSITION_X’ was not declared in this scope
LibMTDevInputDevice.cpp:84: error: invalid use of incomplete type ‘struct mtdev’
LibMTDevInputDevice.h:35: error: forward declaration of ‘struct mtdev’
LibMTDevInputDevice.cpp:84: error: ‘MTDEV_POSITION_Y’ was not declared in this scope
LibMTDevInputDevice.cpp: In member function ‘virtual std::vectorboost::shared_ptr > avg::LibMTDevInputDevice::pollEvents()’:
LibMTDevInputDevice.cpp:98: error: ‘mtdev_get’ was not declared in this scope
LibMTDevInputDevice.cpp:103: error: ‘ABS_MT_SLOT’ was not declared in this scope
make[3]: *** [LibMTDevInputDevice.lo] Erreur 1