我安装qt 4.8
在我的Osx Snow Leopard
,我已经克隆QtSerialPort
, git://gitorious.org/qt/qtserialport.git
然后我尝试在QtCreator
.
当我尝试构建库时,我收到以下错误:/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:62:34: error: private/qcore_unix_p.h: No such file或目录/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数'bool QSerialPortPrivate::open(QFlags)'中:/Users/warcomeb/Projects/External/qserial/qtserialport/ src/serialport/qserialport_unix.cpp:218: 错误: 'qt_safe_open' 没有在这个范围内声明/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp: 在成员函数'void QSerialPortPrivate::关闭()':/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:309:错误:'qt_safe_close'未在此范围内声明 /Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数“qint64 QSerialPortPrivate::readFromPort(char*, qint64)”中:/Users/warcomeb/Projects /External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:1081:错误:在此范围内未声明“qt_safe_read”/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数“qint64 QSerialPortPrivate::writeToPort(const char*, qint64)”:/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:1097:错误:“qt_safe_write”未在此声明范围/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数'qint64 QSerialPortPrivate::writePerChar(const char*, qint64)': /Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:1134: 错误: 'qt_safe_write' 未在此范围内声明 /Users /warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数“qint64 QSerialPortPrivate::readPerChar(char*, qint64)”中:/Users/warcomeb/Projects/External/qserial/qtserialport/src /serialport/qserialport_unix.cpp:1160: 错误: 'qt_safe_read' 未在此范围内声明 make[2]:未在此范围内声明/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数“qint64 QSerialPortPrivate::readPerChar(char*, qint64)”中:/Users/warcomeb/Projects /External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:1160: 错误: 'qt_safe_read' 未在此范围内声明 make[2]:未在此范围内声明/Users/warcomeb/Projects/External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:在成员函数“qint64 QSerialPortPrivate::readPerChar(char*, qint64)”中:/Users/warcomeb/Projects /External/qserial/qtserialport/src/serialport/qserialport_unix.cpp:1160: 错误: 'qt_safe_read' 未在此范围内声明 make[2]:* [qserialport_unix.o] 错误 1 make[1]: * [sub-serialport-make_default] 错误 2 make: * [sub-src-make_default-ordered] 错误 2 14:45:11: 进程 "/usr/bin /make" 以代码 2 退出。构建/部署项目 qtserialport (kit: Desktop) 时出错
你能帮我解决这个问题吗?