同样的配置,在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: *** [sub-corelib-make_default-ordered] Error 2