首页 > 慧问 > 频道

交叉编译qt-4.8.5出现fork未定义问题

发表于2019-05-10 回复:0 查看:4132  |  
同样的配置,在4.8.2里面就没有问题,在同事的机子里面也能过去,就是在我这里就不可以了。在4.8.2里面只是个警告,曾经编译其它版本也没有出现过这种情况。重新配置,清理、重新解压一天了,还是这个样子。 出错信息如下: <pre class='brush: csharp'>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</pre>
0个回答

打破零回复...

回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP