自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sfe1012 Na~喊 -- 心系一处 睥睨群雄 Blog

专注嵌入式、机器人 静心 养性 戒骄 戒躁 stay hungry stay foolish

  • 博客(169)
  • 资源 (12)
  • 收藏
  • 关注

原创 terminate called after throwing an instance of ‘std::system_error‘ what(): bind: Address already

(并非所有进程都能被检测到,所有非本用户的进程信息将不会显示,如果想看到所有信息,则必须切换到 root 用户)激活Internet连接 (仅服务器)

2024-11-15 16:10:46 988

原创 多边形求并的简单算法

【代码】多边形求并的简单算法。

2023-05-16 13:46:37 1613

原创 vlc-bin : Depends: libvlc-bin (= 3.0.16-1+rpi1+rpt2) but 3.0.17.4-0+deb11u1+rpi1 is to be installed

pi@raspberrypi:/etc/apt/sources.list.d $ sudo apt-get upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done Some packages could not be installed. This may mean that you have req

2022-12-04 17:18:17 752

原创 VSCode 下载加速方法

https://az764295.vo.msecnd.net/stable/784b0177c56c607789f9638da7b6bf3230d47a8c/code_1.71.0-1662018389_amd64.deb改为:https://vscode.cdn.azure.cn/stable/784b0177c56c607789f9638da7b6bf3230d47a8c/code_1.71.0-1662018389_amd64.deb

2022-09-02 13:45:22 802

原创 /usr/bin/ld: error: cannot find -lceres

/usr/bin/ld: error: cannot find -lceres ../../../../src/Modules/Tools/src/pose_graph_2d_1.cpp:55: error: undefined reference to 'ceres::Problem::SetParameterization(double*, ceres::LocalParameterization*)' ../../../../src/Modules/Tools/src/pose_graph_2d_

2021-12-10 16:12:52 1129

原创 glibc 交叉编译

0、sudo -i  很重要否则make install 出错 export PATH=$PATH:/opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/ 1、libffi CC=arm-linux-gnueabihf-gcc ./configure+--prefix=/opt/GSRD/glib-2.45.1/ffi-3.2.1/ --host=arm-linux-gnueabihf make&make ..

2021-04-06 14:14:03 1035 1

原创 将多层目录下的文件GBK转成utf8 的脚本 记录下

#!/bin/sh files=`find . -name '*.h' | xargs enca -L zh | grep GB2312 | cut -d: -f1` for f in $files; do iconv -f GBK -t UTF-8 $f > $f.utf && mv -f $f.utf $f && echo "$f done" done files=`find . -name '*.cpp' | xargs enca -L zh | grep G

2021-01-11 15:46:19 206

原创 'pthread_getspecific@@GLIBC_2.4'

/opt/GSRD/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: AsyncTCPClient.o: undefined reference to symbol 'pt...

2020-02-10 14:11:23 1219

原创 ubuntu中安装Qt_ROS 调试程序

**ubuntu中安装Qt_ROS 调试程序** 1、下载网址 https://qtcreator-ros.datasys.swri.edu/downloads/installers/ 选择文件 Ubuntu 18.04.2 LTS (Bionic Beaver) Ubuntu 16.04.6 LTS (Xenial Xerus) Ubuntu 14.04.5 LTS (T...

2019-10-15 15:17:44 1487 1

原创 ubuntu16.04 下两大开发力器

https://www.howtoinstall.co/en/ubuntu/xenial/anjuta sudo apt-get update sudo apt-get install anjuta https://www.howtoinstall.co/en/ubuntu/xenial/kdevelop sudo apt-get update sudo apt-get install kde...

2018-04-12 10:13:52 468 1

原创 安装了g2o后,编译运行 运行 实例程序出现 No such file or directory

安装了g2o后,编译运行 运行 实例程序出现:/home/hong/slambook-master/slambook-master/ch6/g2o_curve_fitting/build/curve_fitting: error while loading shared libraries: libg2o_core.so: cannot open shared object file: No su...

2018-03-29 17:01:58 1237

原创 标签:make时钟错误 touch touch遍历

标签:make时钟错误 touch touch遍历make编译的时候,出现"make: 警告:检测到时钟错误。您的创建可能是不完整的"错误。解决方法:           touch *发现make依然出时钟告警,由于目录下面还有文件夹,没有遍历touch解决方法::find ./ -type f |xargs touch...

2018-03-12 16:31:35 686

原创 G2O

https://github.com/RainerKuemmerle/g2o1、sudo apt-get install libeigen3-dev  libsuitesparse-dev qtdeclarative5-dev qt5-qmake  libqglviewer-dev2、mkdir build & cd build & cmake ../ & make -j4...

2018-03-08 22:37:51 446

原创 Boost 库的移植 与 Qt下的应用方法

1、下载boost源码(boost_1_66_0  2018.01.17 时最新):地址:https://sourceforge.net/projects/boost/files/boost/2、解压进入目录  boost_1_66_0    查看当前版本支持的库 如下:命令:./bootstrap.sh --show-librariesBuilding Boost.Build engine wi

2018-01-17 21:57:00 1060

原创 socket can error write: No buffer space available

1、查看 root@socfpga:/sys/class/net/can0# cat tx_queue_len 10 2、root@socfpga:/sys/class/net/can0# echo 4096 > tx_queue_len 3、root@socfpga:/sys/class/net/can0# cat tx_queue_len 4096

2017-09-15 16:40:20 5645 2

原创 Linux 开发环境构建

1、安装32位兼容库     sudo apt-get install libc6:i386       sudo apt-get install lib32stdc++6       sudo apt-get install lib32z1   2、将GSRD.tar.bz2  和 gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-2012

2017-09-15 16:38:11 408

原创 ubuntu eclipse-nios2 intelFPGA_lite 当无法连接JTAG的时候 步骤

1、查看 Bus 003 Device 010: ID 09fb:6010 Altera sfe1012@sfe1012-thinkpad-e540:/dev/bus/usb/003$ lsusb Bus 002 Device 002: ID 8087:8000 Intel Corp. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2

2017-09-13 14:17:50 583

原创 移植Qt5.7在开发板上运行Qt程序提示This application failed to start because it could not find or load the Qt platfo

./LinuxAGV This application failed to start because it could not find or load the Qt platform plugin "linux #eglfs" in "". Available platform plugins are: linuxfb, minimal, offscreen. Reinsta

2017-08-30 09:41:04 6782 1

转载 “mkimage” command not found – U-Boot images will not be built

ubuntu 14.04 64位系统编译linux kernel时提示: “mkimage” command not found – U-Boot images will not be built 按照以往经验,我们需要安装依赖包: sudo apt-get install uboot-mkimage 但却提示”现在没有可用的软件包 uboot-mkimage,但是它被其它

2017-08-25 15:06:03 689

原创 socfpga-3.12 编译方法

https://wenku.baidu.com/view/e282bed333687e21ae45a964.html 1、下载内核源代码,解压:https://github.com/altera-opensource/linux-socfpga/tree/socfpga-3.12 2、配置顶部的makefile   ARCH        = arm CROSS_COMPILE

2017-08-07 11:52:33 803

原创 编译内核驱动模块的时候错误解决方案

makefile: ifeq ($(KERNELRELEASE),) KERNELDIR ?= /home/sfe1012/GSRD/linux-socfpga-socfpga-3.12/ PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules modules_install: $(MAKE) -C

2017-08-07 11:15:38 4314

原创 下载一个新内核想编译一个内核驱动之前工作

https://www.kernel.org/pub/linux/kernel/ 1.下载完成之后,把它放在/usr/src 下 2.解压 3. 正常情况下, 在/lib/modules/{uname -v}下,我的版本是/lib/modules/3.8.8-030808-generic, 其目录下有一个build文件夹, build是一个link,lin

2017-07-28 15:18:44 430

转载 幻数使用说明

幻数使用说明 在驱动程序中实现的ioctl函数体内,实际上是有一个switch{case}结构,每一个case对应一个命令码,做出一些相应的操作。怎么实现这些操作,这是每一个程序员自己的事情。 因为设备都是特定的,这里也没法说。关键在于怎样组织命令码,因为在ioctl中命令码是唯一联系用户程序命令和驱动程序支持的途径 。 命令码的组织是有一些讲究的,因为我们一定要做到命令和设备是一一对应的,利

2017-07-25 17:29:03 1161

原创 warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

在编写驱动的时候,在函数中,变量的声明必须在执行语句之前,也就是变量的生命需要放在函数的最前面。

2017-07-25 08:53:53 1198

原创 设置开发板的IP

2、设置IP  /etc/network/interfaces auto eth0 #iface eth0 inet dhcp #iface eth1 inet dhcp iface eth0 inet static address 192.168.1.101 gateway 192.168.1.1 netmask 255.255.255.0

2017-07-19 16:32:10 814

原创 QT远程调试配置

GDB 查看qt说明:Supported GDB Versions Starting with version 3.1, Qt Creator requires the Python scripting extension. GDB builds without python scripting are not supported anymore and will not

2017-07-19 16:06:41 1261

原创 error: ‘__u32 __fswab32(__u32)’ cannot appear in a constant-expression

/home/sfe1012/MrcMoveProject/tools/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin/../arm-linux-gnueabihf/libc/usr/include/./linux/tcp.h:72:17: error: ‘__u32 __fswab32(__u32)’ cannot app

2017-07-19 11:47:43 1370

原创 linux 开发板设置 root登录 和 登录后启动自定义应用程序

1、自动登录root    (1)、首先编译一个自动登录的小程序 源码如下:      /*      * autologin.cpp      *      *  Created on: 2017-7-19      *      Author: sfe1012      */     #include     int main() {         execlp("lo

2017-07-19 10:29:53 1697

原创 一个开发板如何查看其GCC应用的版本

~$ cat /proc/version

2017-07-18 12:10:56 1277

原创 比较新的 sshd登录失败

sfe1012@sfe1012-thinkpad-e540:~$ ssh root@192.168.1.103 root@192.168.1.103's password: Permission denied, please try again. root@192.168.1.103's password: Connection to 192.168.1.103 closed by r

2017-07-18 11:36:37 368

原创 arm-linux-gnueabihf-g++: error while loading shared libraries: libstdc++.so.6 no such file and ....

有一些老版本的arm-gcc 编译程序时经常报错arm-linux-gnueabihf-g++: error while loading shared libraries: libstdc++.so.6  no such file and ....... 解决办法: apt-get install lib32z1 lib32ncurses5 apt-get install lib

2017-07-11 16:10:36 7932

原创 Socket 崩溃

1、问题 linux 下socket 发送,当接收端关闭的时候,程序异常崩溃。 The inferior stopped because it received a signal from the operating system. Signal name : SIGPIPE Signal meaning : Broken pipe 解决方案为:     只要在main

2017-04-18 16:10:43 1586

转载 移植openssh服务器到ARM处理器上

移植opensshd到友善之臂ARM开发板上(CPU是s3c2440) 1. 环境  硬件环境:  Host:X86PC          Target:友善之臂mini2440开发板   软件环境:  Host:VMware虚拟机下的redhat linux 9.0(完全安装) Target:arm-linux                kernel:linux-2.6.13  Crosst

2017-04-01 16:52:36 1192

原创 QT 5.8 Raspbian 移植

零、配置Arm-gcc 在http://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabihf/ 下  gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf.tar.xz 解压后 在/home/sfe1012/.bashrc文件的最后面添加

2017-03-24 10:45:43 2306

原创 任意两不同坐标系的相互转换

注意: 应该用施工坐标系向测量坐标系旋转的夹角为a。这个公式的用在机器人的本身坐标系同机器人传感器坐标系之间的互相转换。尤其是激光雷达传感器同机器人之间相互转化。

2017-01-16 11:03:06 8188 1

转载 Ubuntu不显示grub怎么办?

显示grub菜单 Ubuntu不显示grub怎么办? 默认情况下,如果系统只有一个版本的ubuntu,grub菜单是不显示的。 打算显示grub菜单。 步骤如下: 首先备份/etc/default/grub文件 打开/etc/default/grub文件,找到 GRUB_HIDDEN_TIMEOUT=0 这行,使用#注释掉,变成 #GRUB_HIDDEN_TIMEOUT=0

2016-11-10 10:36:03 10614

原创 Xmanage 登录 ubuntu 16.04

1、sudo ufw disable 2、sudo apt-get install xubuntu-desktop 3、Configure the /etc/lightdm/lightdm.conf file as follows. If the file does not exist, create it. [XDMCPServer] enabled=true [Seat:*] au

2016-09-13 19:13:01 3677

原创 wchar_t <-> char

/* Convert a multibyte string to a wide char string.  */ extern size_t mbstowcs (wchar_t *__restrict  __pwcs,             const char *__restrict __s, size_t __n) __THROW; /* Convert a wide ch

2016-08-17 10:50:16 391

原创 linux 高精度定时器 hrtimer 用户空间的应用 man timer_create

TIMER_CREATE(2) Linux Programmer's Manual TIMER_CREATE(2) NAME timer_create - create a POSIX per-process timer SYNOPSIS #include #include int time

2016-08-16 11:15:42 3652

原创 ubuntu 终端log 打印 保存

#script screen.log #exit

2016-07-10 15:41:11 789

ARM平台下基于SIM908车载定位监控系统研究

随着人民生活水平的不断提高,私家车越来越多的走进了平常百姓家的生活。这样就引发了一个严重的社会问题,车辆的安全防盗越来越引起人们的关注,在这个趋势下车辆定位防盗监控系统越来越值得广大车主的应用和关注。ARM平台下基于SIM908车载定位监控系统时时刻刻的保护着我们的车辆财产安全。这种车辆安防系统将会是广大的4S汽车销售商店、汽车厂商保护车主财产安全的解决方案。 ARM平台下基于SIM908车载定位监控系统有共有两个主要模块。第一个就是车载端,第二个就是监控终端。 车载端由ARM控制板和SIM908开发板构成,主要涉及的技术有GPS定位技术、GPRS网络传输。车载工作过程如下,ARM主控板开启控制SIM908开发板的GPS功能,获取GPS地位数据数据。将所获得的数据通过SIM908开发板的GPRS功能将数据每个10秒发送到监控终端。 远程监控终端工作原理,首先监控终建立在一个基于外网IP地址的服务器,然后监听连接请求,获得请求后建立TCP连接。接收数据,将数据进行解析后将车辆定位信息在google和baidu在线地图上进行标记。 关键词:SIM908; AMR; GPRS; GPS;GSM;嵌入式;监控;车载;

2014-03-13

linux 下应用SDL1.2和V4L2 获取双目摄像头数据并一起显示

linux 下应用SDL1.2和V4L2 获取双目摄像头数据并一起显示

2015-01-26

Playjoy游戏手柄开发

linux下北通阿修罗 手柄 数据获取与解析

2015-04-24

基于ALSA的网络电话

Linux下面应用ALSA框架编写的局域网内的网络电话

2014-03-13

仿真贝塞尔曲线

应用matlab对贝塞尔曲线进行仿真,并且求出贝塞尔曲线的曲率、切线角

2015-09-15

Beaglebone Black PWM驱动

Beaglebone Black PWM驱动,包括驱动源码、方法、应用程序等

2015-04-26

SIM908 linux 下开发应用

SIM908 linux 下开发应用,主要包括命令控制,GPS 数据等问题

2015-04-24

Visual Assist 扩展

Visual Assist 具有强大的编辑特色,提高了生产效率,可以完全集成到您的Microsoft开发环境中,升级了您的IDE,在不改变编程习惯的同时就可以感受到Visual Assist X为您带来的好处。 Visual Assist 是一款非常好的Microsoft Visual Studio 2005和Visual Studio .NET插件,支持C/C++,C#,ASP,Visual Basic,Java和HTML等语言,能自动识别各种关键字、系统函数、成员变量、自动给出输入提示、自动更正大小写错误、自动标示错误等,有助于提高开发过程的自动化和开发效率。 添加步骤

2014-07-25

QT_Music_Player

QT 开发的,音频文件播放的代码,可以播放各种音频文件 mp3等。

2013-06-02

sim908芯片 的stm32程序样例

在stm32开发环境下,对sim908的代码样例

2013-05-29

严蔚敏数据结构实现源码

数据结构实现源码 严蔚敏 的数据结构 包含了C语言和C++语言的实现

2014-08-12

QT_Mediaplayer

本程序是在QT下 运行的 音视频播放器代码。

2013-06-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除