PDA

View Full Version : error while compiling on MAC



aj2903
3rd March 2010, 06:40
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'


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

yogeshgokul
3rd March 2010, 07:03
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'


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.