主题 : 在linux挂载windows文件后,编译问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10043
精华: 0
发帖: 40
金钱: 205 两
威望: 41 点
综合积分: 80 分
注册时间: 2009-10-22
最后登录: 2016-02-11
楼主  发表于: 2010-08-19 10:14

 在linux挂载windows文件后,编译问题

大家好。有个问题请教大家。

在学习mini2440的u-boot时,均采用windows系统编辑程序,并用smb挂载windows程序到linux,然后在linux下编译,这样windows和linux文件就可以同步了。
步骤如下:[root@localhost ~]# smbclient -L //192.168.1.2 -U fujm         //此命令查看windows下有多少共享目录
Password: //输入密码
Domain=[FUJM-PC] OS=[Windows 7 Ultimate 7600] Server=[Windows 7 Ultimate 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      远程管理
        C$              Disk      默认共享
        D$              Disk      默认共享
        E$              Disk      默认共享
        F$              Disk      默认共享
        IPC$            IPC       远程 IPC
        u-boot-1.1.6    Disk      
        Users           Disk      
session request to 192.168.1.2 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available

//挂载文件
[root@localhost ~]# mount -t cifs -o username=××××,passwd='×××××' //192.168.1.2/u-boot-1.1.6 /mnt/windows

//查看挂载的文件
[root@localhost ~]# ls /mnt/windows                              //查看挂载目录文件

//进入目录编译
[root@localhost windows]# make open24x0_config
出现如下错误:Configuring for open24x0 board...
ln: 正在创建指向“asm-arm”的符号链接“asm”: 不支持的操作
make: *** [open24x0_config] 错误 1
[root@localhost windows]#

是不是因为是挂载了windows的文件,就不能在linux下编译了。我将程序拷贝到linux下,就可以编译。

请教各位大侠了。谢谢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-08-19 11:39
是的,Windows的NTFS/FAT文件系统均不支持符号链接.不要尝试在这种文件系统上编译uboot
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10043
精华: 0
发帖: 40
金钱: 205 两
威望: 41 点
综合积分: 80 分
注册时间: 2009-10-22
最后登录: 2016-02-11
2楼  发表于: 2010-08-19 15:36
好的。谢谢。