Results 1 to 2 of 2

Thread: error while compiling on MAC

  1. #1
    Join Date
    Sep 2008
    Posts
    84
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default error while compiling on MAC

    I'm trying to compile Qt program in MAC. i'm facing following error :
    Qt Code:
    1. Configuration unchanged, skipping QMake step.
    2. Starting: /usr/bin/make -w
    3. make: Entering directory `/Users/gauranga/ajinkya/pcan'
    4. g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -I. -F/Library/Frameworks -o pcanusb.o pcanusb.cpp
    5. g++ -headerpad_max_install_names -o pcan.app/Contents/MacOS/pcan main.o widget.o pcanusb.o moc_widget.o -F/Library/Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon -framework AppKit -framework QtCore -lz -lm -framework ApplicationServices
    6. Undefined symbols:
    7. "_IOObjectRelease", referenced from:
    8. _disconnectDevice in pcanusb.o
    9. ld: symbol(s) not found
    10. collect2: ld returned 1 exit status
    11. make: *** [pcan.app/Contents/MacOS/pcan] Error 1
    12. make: Leaving directory `/Users/gauranga/ajinkya/pcan'
    To copy to clipboard, switch view to plain text mode 

    Can somebody tell me how can it be solve ????

  2. #2
    Join Date
    Dec 2007
    Posts
    627
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: error while compiling on MAC

    Quote Originally Posted by aj2903 View Post
    I'm trying to compile Qt program in MAC. i'm facing following error :
    Qt Code:
    1. Configuration unchanged, skipping QMake step.
    2. Starting: /usr/bin/make -w
    3. make: Entering directory `/Users/gauranga/ajinkya/pcan'
    4. g++ -c -pipe -g -gdwarf-2 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -I. -F/Library/Frameworks -o pcanusb.o pcanusb.cpp
    5. g++ -headerpad_max_install_names -o pcan.app/Contents/MacOS/pcan main.o widget.o pcanusb.o moc_widget.o -F/Library/Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon -framework AppKit -framework QtCore -lz -lm -framework ApplicationServices
    6. Undefined symbols:
    7. "_IOObjectRelease", referenced from:
    8. _disconnectDevice in pcanusb.o
    9. ld: symbol(s) not found
    10. collect2: ld returned 1 exit status
    11. make: *** [pcan.app/Contents/MacOS/pcan] Error 1
    12. make: Leaving directory `/Users/gauranga/ajinkya/pcan'
    To copy to clipboard, switch view to plain text mode 

    Can somebody tell me how can it be solve ????
    This is a general compilation error for undefined symbol.
    Kindly ask Qt related questions. Your project is a Qt project but this problem is general c++ only.

Similar Threads

  1. Error in compiling
    By Tarun in forum Qt-based Software
    Replies: 1
    Last Post: 3rd February 2010, 14:04
  2. Replies: 1
    Last Post: 25th October 2008, 19:18
  3. Compiling error
    By Foobar in forum Newbie
    Replies: 2
    Last Post: 17th March 2007, 23:02
  4. Error when compiling with x86-64
    By atm in forum Installation and Deployment
    Replies: 2
    Last Post: 28th July 2006, 16:41
  5. Compiling Error
    By KyrinComa in forum Qt Programming
    Replies: 2
    Last Post: 17th May 2006, 13:19

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.