
我正在嘗試在 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: ..
qmake 可在任何其他目錄中運作。我使用的是 debian 6.0.4 32 位,核心為 2.6.32-5-686。我的 qmake 來自 Qt 4.7.4,從原始碼建置。
任何想法 ?
答案1
好的,我找到了解決方案:使用 cifs 而不是 smbfs 掛載目錄,而且它有效!我將以下行新增到 fstab :
//windows-computer/share /home/jj/smbShare cifs username=jj,password=***,perm,iocharset=utf8,uid=jj,gid=users,nounix,noserverino 0 0
為了避免將 Windows 密碼放入 fstab 檔案中,您可以使用憑證檔案:http://anothersysadmin.wordpress.com/2007/12/17/howto-mount-samba-shares-in-fstab-using-a-credential-file/