标题:交叉编译qt-4.8.5出现fork未定义问题
作者:thewon
日期:2014-11-26 16:30
内容:
同样的配置,在4.8.2里面就没有问题,在同事的机子里面也能过去,就是在我这里就不可以了。在4.8.2里面只是个警告,曾经编译其它版本也没有出现过这种情况。重新配置,清理、重新解压一天了,还是这个样子。
出错信息如下:
compiling io/qfilesystemengine_unix.cpp
moc io/qprocess_unix.cpp
compiling io/qprocess_unix.cpp
io/qprocess_unix.cpp: In member function ‘void QProcessPrivate::startProcess()’:
io/qprocess_unix.cpp:661: error: ‘fork’ was not declared in this scope
io/qprocess_unix.cpp: In static member function ‘static bool QProcessPrivate::startDetached(const QString&, const QStringList&, const QString&, qint64*)’:
io/qprocess_unix.cpp:1358: error: ‘fork’ was not declared in this scope
gmake[1]: *** [.obj/release-shared-emb-bfin/qprocess_unix.o] Error 1
gmake[1]: Leaving directory `/opt/qt-everywhere-opensource-src-4.8.5/src/corelib'
gmake: *** Error 2
#1 [thewon 12-01 08:27]
这是我什么时候发的帖子,已经过去很久了,问题原因可能是编译器版本不兼容,结贴。