Qt在Linux下的常见错误


可能很多人都有类似的错误,就是当你在虚拟机和Linux之间实现共享时,利用在window下便于修改编辑代码的特点,把编辑的代码加载到共享文件夹下面,然后再linux中相应的代码目录中运行qmake -project时常常出现以下错误,这是因为文件放的地方不对,没有放在Linux自身的区域下。

root@www.bkjia.com-desktop:/share/video# qmake -project
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed

使用cp指令把修改的代码复制到tmp或者其他地方,在使用qmake -project时就没有这个错误了。

相关内容