I'm trying to compile Qt program in MAC. i'm facing following error :
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/Users/gauranga/ajinkya/pcan'
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
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
Undefined symbols:
"_IOObjectRelease", referenced from:
_disconnectDevice in pcanusb.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [pcan.app/Contents/MacOS/pcan] Error 1
make: Leaving directory `/Users/gauranga/ajinkya/pcan'
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/Users/gauranga/ajinkya/pcan'
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
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
Undefined symbols:
"_IOObjectRelease", referenced from:
_disconnectDevice in pcanusb.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [pcan.app/Contents/MacOS/pcan] Error 1
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 ????
Bookmarks