Results 1 to 2 of 2

Thread: Unable to Compile qextserialport on max os 10.6

  1. #1
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Unable to Compile qextserialport on max os 10.6

    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 

  2. #2
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Unable to Compile qextserialport on max os 10.6

    Didn't see anything in the change log but the current code is different: link

Similar Threads

  1. Jom/nmake is unable to compile
    By Tvt204 in forum Installation and Deployment
    Replies: 2
    Last Post: 1st August 2011, 12:27
  2. Unable to compile an Example
    By learner in forum Newbie
    Replies: 11
    Last Post: 15th November 2010, 15:27
  3. Unable to compile QT 4.6.2 on 64 bit Centos 5.4
    By Dave Augustus in forum Installation and Deployment
    Replies: 1
    Last Post: 7th March 2010, 14:25
  4. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 12:55
  5. fftw unable to compile
    By superutsav in forum General Programming
    Replies: 7
    Last Post: 24th January 2006, 14:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.