Compiler Errors using PTP2.0 and USB_Host_Shield_2.0 Lib

Hi,

for the last week i am trying to get these Libraries to compile (at least the examples in there)

and
GitHub - felis/PTP_2.0: Digital Camera Control support for USB Host Shield r.2.0.

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!

Thanks a lot!!!

In file included from NKRemote.pde:6:

pde files and 1.5.6 do not go together. Quit trying to use obsolete versions of libraries.

Hmm,

ok, that meight be the Problem. But i found out, that the problem is maybe completely related to qp:

i tried to only get qp to work with arduino 1.5 but also there i have no chance: what i did:

downloaded arduino 1.5.6-r2
downloaded qp_arduino_1.5.x.zip
downloaded qm_2.3.2-mac_osx.dmg

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()'

What does that mean?

Thanks a lot!!!

downloaded qp_arduino_1.5.x.zip

From WalMart?

nope, here in germany is no walmart i believe :wink:
i got it here:

I downloaded that library, and installed it correctly, on Win7 64 bit. I added loop() {} to your sketch, so it would compile. I got just one "error":

Binary sketch size: 466 bytes (of a 32,256 byte maximum)

as far as i understand it, loop gets handled by qp itself...

Pcace