我正在尝试在 samba 安装目录中使用 qmake。这是我得到的
jj@deb32-6:~/smbShare$ qmake .
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
QFSFileEngine::currentPath: stat(".") failed
Cannot find file: ..
Run Code Online (Sandbox Code Playgroud)
qmake 适用于任何其他目录。我正在使用带有内核 2.6.32-5-686 的 debian 6.0.4 32 位。我的 qmake 来自从源代码构建的 Qt 4.7.4。
任何的想法 ?
好的,我找到了解决方案:使用 cifs 而不是 smbfs 挂载目录,它可以工作!我将以下行添加到 fstab :
//windows-computer/share /home/jj/smbShare cifs username=jj,password=***,perm,iocharset=utf8,uid=jj,gid=users,nounix,noserverino 0 0
Run Code Online (Sandbox Code Playgroud)
为避免将 Windows 密码放入 fstab 文件中,您可以使用凭证文件:http : //anothersysadmin.wordpress.com/2007/12/17/howto-mount-samba-shares-in-fstab-using-a-凭证文件/