The Big problem is not the USB_Host_Shield lib, but the PTP_20 Lib.
So what i have done so far: I Installed a new OSX and a Win 7 in a VM + Arduino 1.0.5 AND in an other VM Arduino 1.5
I installed the Libraries, and whenever i want to compile an example wich is somehow qp related, i get the following error:
In file included from NKRemote.pde:6:
/Users/hannes/Documents/Arduino/libraries/PTP_20/qp_port.h:3505: error: section attribute not allowed for 'file'
NKRemote:15: error: section attribute not allowed for 'file'
NKRemote:63: error: section attribute not allowed for 'file'
NKRemote.pde: In function 'void Q_onAssert(const char*, int)':
NKRemote:66: error: 'QF_INT_DISABLE' was not declared in this scope
The Problem is, that i only can find the QP version for Arduino 1.5 every other version disappeared from all the FTP servers.
Is this an error where someone knows a fix?
it would be awesome to find help fot that Problem!
moved Arduino.app to /Applications
moved qm.app to /Applications
copied all the files in the zip to the Arduino1.5.app in /Applications/ -->
cp -r /Users/me/Downloads/qp_arduino_1.5.x/* /Applications/Arduino1.5.app/Contents/Resources/Java/
and then i tried to import qp_port.h into a simple sketch, but i get lots of errors....:
this is the sketch:
#include <qp_port.h>
void setup() {
}
and this is the error:
QP/qp.cpp.o: In function `QP::QMPool::put(void*)':
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:1765: undefined reference to `Q_onAssert'
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:1766: undefined reference to `Q_onAssert'
QP/qp.cpp.o: In function `QP::QF::gc(QP::QEvt const*)':
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:1197: undefined reference to `Q_onAssert'
QP/qp.cpp.o: In function `QP::QActive::get_()':
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:720: undefined reference to `Q_onAssert'
QP/qp.cpp.o: In function `QP::QHsm::dispatch(QP::QEvt const*)':
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:201: undefined reference to `Q_onAssert'
QP/qp.cpp.o:/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:293: more undefined references to `Q_onAssert' follow
QP/qp.cpp.o: In function `QP::QF::run()':
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:2294: undefined reference to `QP::QF::onStartup()'
/Applications/Arduino1.5.app/Contents/Resources/Java/hardware/arduino/avr/libraries/QP/qp.cpp:2309: undefined reference to `QP::QF::onIdle()'