
linux
鱼公子哟西
这个作者很懒,什么都没留下…
展开
-
pthread_cond_signal 和 pthread_mutex_unlock顺序问题
from:http://stackoverflow.com/questions/1640389/pthreads-pthread-cond-signal-from-within-critical-sectionQuestion1:I have the following piece of code in thread A, which blocks using pthread_co转载 2016-11-17 13:14:20 · 2252 阅读 · 0 评论 -
解决"/usr/include/opencv-3.1.0-dev/opencv"non-existent path问题
ros indigo版本需要手动安装opencv3sudo apt-get install ros-indigo-opencv3但在编译whycon时,出现错误CMake Error in whycon/CMakeLists.txt: Imported target "opencv_xphoto" includes non-existent path "/usr/inclu...转载 2018-12-26 17:56:49 · 1386 阅读 · 0 评论 -
c++11下 container_of编译不通过
gcc main.cpp -o main -std=c++11报错如下: 原因:需要支持gnu++11扩展gcc main.cpp -o main -std=gnu++11 编译通过原创 2018-10-26 17:42:08 · 1433 阅读 · 0 评论 -
Ubuntu 14.04 更换阿里云源
1 2 3 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份 sudo vim /etc/apt/sources.list #修改 sudo apt-get update #更新列表 阿里云源 1 2 3 4...转载 2018-10-09 17:17:10 · 398 阅读 · 0 评论 -
安装cmake3-qt-gui
sudo apt-get install cmake3-qt-gui原创 2018-10-15 14:04:42 · 1566 阅读 · 0 评论 -
ubuntu opencv 编译失败 relocation R_X86_64_32 against `.rodata.str1.1'
ubuntu14.04安装配置FFmpeg+opencv-3.1.0+python 调用opencv模块这次因为写python时候要调opencv的函数,在ubuntu14.04安装了opencv,中间出现一个安装错误:/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against ...转载 2018-10-08 15:24:42 · 4376 阅读 · 1 评论 -
在Ubuntu 16.04 中安装配置 Opencv 3.1 和 Python 2.7 / Python 3.5
本教程可以完全使用终端完成,简洁明了 第一步:安装OpenCV依赖文件1.升级安装包/库 $ sudo apt-get update $ sudo apt-get upgrade 2.安装一些开发者工具 $ sudo apt-get install build-essential cmake pkg-config 3.安装图像...转载 2018-10-08 15:03:12 · 964 阅读 · 0 评论 -
ubuntu 14.04 sudo apt-get 简单 安装 ffmpeg
一种方法是这样的sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next sudo apt-get update sudo apt-get install ffmpeg或者可以这样安装一、安装各种依赖包1、yasm(libx264需要依赖yasm) sudo apt-get install yasm2、l...转载 2018-10-08 15:01:40 · 2448 阅读 · 0 评论 -
top free命令真的能得到实际内存使用状况吗?
一.关于Virtual Memory 参考:http://serverfault.com/questions/138427/top-what-does-virtual-memory-size-mean-linux-ubuntu 虚拟内存往往是在线程在内存中映射了一个很大的文件,而这个文件存储在磁盘上,也需要占用一个很大的地址空间,交换区的问题撇开不谈。 而RES内存才是线程真正转载 2017-11-28 14:49:18 · 2349 阅读 · 0 评论