2020年10月9日

error LNK1112错误: 模块计算机类型“x64”与目标计算机类型“X86”冲突

摘要: 平台:win10 VS2017 编译x64的过程中可能会出现LNK1112错误。此时注意3点: 项目=>属性=>配置,选择或新建x64平台 项目=>属性=>链接器=>高级=>目标计算机,选择MachineX64(/MACHINE:X64) 项目=>属性=>链接器=>命令行=>其它选项,里面如果有类似 阅读全文

posted @ 2020-10-09 10:19 asulove 阅读(2249) 评论(0) 推荐(0) 编辑

2020年9月30日

编译openMVG

摘要: 从网站 https://github.com/openMVG/openMVG 下载所需文件 下载并解压文件,如下图,有src,进入src看看, 有CMakeLists.txt,用Cmake建立项目试试, 生成检验时,就出错了 这种情况很难排查,根据经验,应该是文件下载不完整,在重新下载一个就行了,避 阅读全文

posted @ 2020-09-30 14:23 asulove 阅读(315) 评论(0) 推荐(0) 编辑

编译和配置boost库

摘要: 下载网址: https://www.boost.org/ 打开后,会看到现在(我下载的时候)boost的版本为Version 1.74.0 点击进入 下载Windows对应的版本 解压文件 本想用Cmake来生成项目,但看了半天,发现根本就没有合适的CMakeLists.txt 最后看到有一个脚本文 阅读全文

posted @ 2020-09-30 11:27 asulove 阅读(377) 评论(4) 推荐(0) 编辑

2016年11月29日

linux信号量的实现

摘要: 待续 阅读全文

posted @ 2016-11-29 17:52 asulove 阅读(184) 评论(0) 推荐(0) 编辑

2016年11月28日

设备号的获取与字符设备的注册

摘要: int major; static struct class *buttons_class;struct cdev *buttons_cdev;// = cdev_alloc();//buttons_cdev->ops = &buttons_fops; dev_t buttons_dev; stat 阅读全文

posted @ 2016-11-28 16:10 asulove 阅读(352) 评论(0) 推荐(0) 编辑

2016年11月11日

ubuntu下的vim与ctags

摘要: 先安装ctags #sudo apt-get install exuberant-ctags 在自己的用户目录下新建一个.vim的目录 将从下载好的taglist_46,解压到.vim下 http://www.cnblogs.com/zhangsf/archive/2013/06/13/313440 阅读全文

posted @ 2016-11-11 20:58 asulove 阅读(239) 评论(0) 推荐(0) 编辑

2016年11月9日

自动创建设备节点

摘要: 用linux-2.6.22时,调用了 class_create() class_device_create() 两个函数 而linux-2.6.32内核中已经没有class_device_create函数,而是 class_create() device_create() 这两个函数 阅读全文

posted @ 2016-11-09 17:53 asulove 阅读(159) 评论(0) 推荐(0) 编辑

2016年11月8日

卸载驱动出现:rmmod: can't change directory to '/lib/modules': No such file or directory

摘要: rmmod: can't change directory to '/lib/modules': No such file or directory 新建目录/lib/modules #mkdir -p /lib/modules 又出现 rmmod: can't change directory t 阅读全文

posted @ 2016-11-08 17:55 asulove 阅读(4646) 评论(0) 推荐(0) 编辑

用busybox制作文件系统

摘要: busybox1.25.1 arm-linux-gcc -v 3.4.5 先执行 #make menuconfig Location: -> Busybox Settings -> Build Options 添加交叉编译前缀arm-linux- #make 发现错误: make[1]: *** [ 阅读全文

posted @ 2016-11-08 15:23 asulove 阅读(739) 评论(0) 推荐(0) 编辑

2016年11月7日

ubuntu下安装配置nfs

摘要: sudo apt-get install nfs-kernel-server sudo /nfs_root vim /etc/exports 在这个文件末尾添加 /nfs_root *(rw,sync,no_root_squash) 保存退出 重启nfs服务 sudo /etc/init.d/rpc 阅读全文

posted @ 2016-11-07 18:03 asulove 阅读(174) 评论(0) 推荐(0) 编辑

导航