I am trying to compile qextserialport on a Mac OSX 10.6 and I keep getting the following errors. Any ideas on what I need to do to fix this? I use this code on Windows with no problems, but the mac version is killing me.

Thanks in advance,

Ken


The code that it does not seem to like is

Qt Code:
  1. /*
  2.   A device has been discovered via IOKit.
  3.   Create a QextPortInfo if possible, and emit the signal indicating that we've found it.
  4. */
  5. void QextSerialEnumeratorPrivate::onDeviceDiscoveredOSX( io_object_t service )
  6. {
  7. Q_Q(QextSerialEnumeratorPrivate);
  8. QextPortInfo info;
  9. info.vendorID = 0;
  10. info.productID = 0;
  11. if( getServiceDetailsOSX( service, &info ) )
  12. Q_EMIT q->deviceDiscovered( info );
  13. }
To copy to clipboard, switch view to plain text mode 




Qt Code:
  1. F/Users/ken/QtSDK/Desktop/Qt/474/gcc/lib -o debug/qextserialenumerator_osx.o ../../qextserialport_12/src/qextserialenumerator_osx.cpp
  2. ../../qextserialport_12/src/qextserialenumerator_osx.cpp: In member function 'void QextSerialEnumeratorPrivate::onDeviceDiscoveredOSX(io_object_t)':
  3. ../../qextserialport_12/src/qextserialenumerator_osx.cpp:199: error: cannot convert 'QextSerialEnumerator*' to 'QextSerialEnumeratorPrivate* const' in initialization
  4. ../../qextserialport_12/src/qextserialenumerator_osx.cpp:204: error: 'class QextSerialEnumeratorPrivate' has no member named 'deviceDiscovered'
  5. ../../qextserialport_12/src/qextserialenumerator_osx.cpp: In member function 'void QextSerialEnumeratorPrivate::onDeviceTerminatedOSX(io_object_t)':
  6. ../../qextserialport_12/src/qextserialenumerator_osx.cpp:213: error: cannot convert 'QextSerialEnumerator*' to 'QextSerialEnumeratorPrivate* const' in initialization
  7. ../../qextserialport_12/src/qextserialenumerator_osx.cpp:218: error: 'class QextSerialEnumeratorPrivate' has no member named 'deviceRemoved'
  8. ../../qextserialport_12/src/qextserialenumerator_osx.cpp: At global scope:
  9. ../../qextserialport_12/src/qextserialenumerator_osx.cpp:227: warning: unused parameter 'setup'
  10. make[2]: *** [debug/qextserialenumerator_osx.o] Error 1
  11. make[2]: Leaving directory `/Users/ken/Documents/qextserialport-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug/buildlib'
  12. make[1]: *** [debug-all] Error 2
  13. make: *** [sub-buildlib-make_default-ordered] Error 2
  14. make[1]: Leaving directory `/Users/ken/Documents/qextserialport-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug/buildlib'
  15. make: Leaving directory `/Users/ken/Documents/qextserialport-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Debug'
  16. The process "/usr/bin/make" exited with code 2.
To copy to clipboard, switch view to plain text mode