linux
haha074
这个作者很懒,什么都没留下…
展开
-
TX1/2 linux 设置交换空间 记录
TX1等当内存不足时会出现 internal compile error设置交换空间free -m //查看内存sudo mkdir /swapcd /swapsudo dd if=/dev/zero of=swap bs=1M count=8k //size=bs*countsudo mkswap swapsudo swapon swapwatch -n 1 free -msudo swapoff swap //关闭交换空间 ...原创 2020-05-26 21:36:20 · 232 阅读 · 0 评论 -
Too many levels of symbolic links
ln 时出现错误:Too many levels of symbolic links 原因:使用了相对路劲解决:全部使用绝对路径原创 2018-12-11 15:53:30 · 1338 阅读 · 0 评论 -
readlink 读取当前路径 linux
使用readlink读取当前程序执行路径 linux中 符号链接 /proc/self/exe 为当前执行路径的值 #include"unistd.h"#include"string.h"using namespace std;int main(int argc,char **argv){ char buf[512]; int length =readlink("/...原创 2018-12-13 10:34:32 · 638 阅读 · 0 评论 -
.cmake 文件编写示例
from http://people.csail.mit.edu/kaess/isam/ ################################################################################ Find iSAM## This sets the following variables:# ISAM_FOUND - Tru...原创 2018-12-13 08:29:22 · 3006 阅读 · 0 评论 -
libpoint_cloud_odometry.so:undefined reference to pclsearch::KdTree<pclPointXYZ>
编译blam遇到这个错误:/blam-master/internal/devel/lib/libpoint_cloud_odometry.so: undefined reference to `pcl::search::KdTree<pcl::PointXYZ>::nearestKSearch(pcl::PointXYZ const&, int, std...原创 2018-11-06 14:13:24 · 706 阅读 · 1 评论 -
libCVD make error
configure: error: cannot guess build type; you must specify one ac_build_alias=aarch64-unknown-linux-gnu原创 2018-09-20 19:58:40 · 295 阅读 · 0 评论 -
error: undefined reference to symbol '_ZN5boost6system15system_categoryEv
使用boost时遇到下面error: cmake version : 3.5.1/usr/bin/ld: CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'/usr/lib/x86_64-linux-gnu/lib...原创 2018-09-20 13:51:49 · 5322 阅读 · 2 评论 -
Argus camera API
1、 JETPACK CAMERA API: LIBARGUSAdvantage:Open StandardCross PlatformLow-level control of camera subsystemFrame-based capture controlMetadata output for frame statisticsMulti-stream, multi-cam...原创 2018-09-19 13:42:06 · 1683 阅读 · 1 评论 -
grub 命令
启动linuxset prefix=(hd0,msdos1)/grubset root=(hd0,msdos1)insmod normalnormal启动windowsinsmod part_msdosinsmod ntfsset root=(hd0,msdos4)chainloader +1boot参考:https://blog.csdn.net/bensnak...原创 2018-09-18 19:38:46 · 1993 阅读 · 1 评论 -
git 常用命令 github
1、本地创建ssh key ssh-keygen -t rsa -C "[email protected]"默认保存到 /home/username/.ssh/id_rsa 验证是否成功ssh -T [email protected]、配置用户信息,直接设成全局,下次就不用再设置git config --global user.name "your name"git con...原创 2018-09-06 10:11:56 · 119 阅读 · 0 评论 -
linux 安装后无法启动 修复引导grub
1、查看磁盘信息,确认系统安装在那个磁盘上 sudo df -lh or sudo fdisk -l2、挂载sudo mkdir /mnt/ubuntu #建立挂载点sudo mount /dev/sda2 /mnt/ubuntu #挂载#如果引导安装在单独磁盘上 挂载引导sudo mount /dev/sda6 /mnt/ubuntu/boot 3、安装gr...原创 2018-09-06 08:36:32 · 9166 阅读 · 1 评论 -
raspberry pi 树莓派安装 tensorflow
下载whl https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releaseswget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v1.1.0/tensorflow-1.1.0-cp27-none-linu...原创 2018-09-04 13:29:32 · 688 阅读 · 1 评论 -
linux 下串口通信
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include &am原创 2018-08-24 11:00:46 · 349 阅读 · 0 评论 -
linux v4l 读取相机原始数据
v4l 读原始数据libjpeg 保存/* * capturing from UVC cam * requires: libjpeg-dev * build: gcc -std=c99 capture.c -ljpeg -o capture */#include <stdint.h>#include <stdlib.h>#include <s...原创 2018-08-24 10:57:53 · 985 阅读 · 0 评论 -
linux 时间获取
char * getnamefromtime(){ time_t t; time(&t); char *str=(char*)malloc(30*sizeof(char)); struct tm *gt=localtime(&t); struct timeval us; gettimeofday(&us,NULL); sprintf(str,...原创 2018-08-24 10:54:14 · 637 阅读 · 0 评论 -
CUDA编程
CUDA 编程demo 1、函数申明__global__: specifier __global__ to the function, which tells the CUDA C++ compiler that this is a function that runs on the GPU and can be called from CPU code. 2、内...原创 2018-08-31 09:53:36 · 362 阅读 · 0 评论 -
linusb 源码编译安装
安装seabreeze时依赖libusb,无法二进制libusb,故源码安装,遇到几个问题,记录一下 libusb下载:https://sourceforge.net/projects/libusb/?source=typ_redirect./configure -> make -> make install 可能遇到错误:configure: error: ...原创 2018-07-24 09:12:59 · 447 阅读 · 0 评论 -
Ubuntu 系统配置
1、更新软件源 使用ustc mirror 参考:https://mirrors.ustc.edu.cn/help/ubuntu.html 先备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 再更新 (sources.list从ustc mirrors 上下载) ...原创 2018-07-02 13:10:06 · 391 阅读 · 0 评论 -
apt-get update error
oatrc:~/Desktop$ sudo apt-get update Ign file: InReleaseIgn file: InReleaseErr http://ppa.launchpad.net trusty InRelease Err http://ppa.launchpad.net trusty InRelease Err http://ppa.launchp...原创 2018-07-09 10:45:52 · 305 阅读 · 0 评论