ubuntu14.04 安装openNI2
来源:互联网 发布:淘宝店铺托管找哪家 编辑:程序博客网 时间:2024/06/10 00:19
1.安装 OpenNI2依赖项
- $sudo apt-get install -y g++ python libusb-1.0-0-dev freeglut3-dev doxygen graphviz
- $sudo apt-get install libudev-dev
2.从github将openni2源码clone下来
- $git clone https://github.com/occipital/OpenNI2.git
- $cd OpenNI2
3.修改两处配置Platform.Arm和CommonCppMakefile,适用于arm设备
- $gedit ThirdParty/PSCommon/BuildSystem/Platform.Arm
Change:
CFLAGS+= -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp#-mcpu=cortex-a8
to:
CFLAGS+= -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard
- $gedit ThirdParty/PSCommon/BuildSystem/CommonCppMakefile
---OpenNI2-2.2.0.30/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile.old2014-03-28 19:09:11.572263107 -0700
+++OpenNI2-2.2.0.30/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile 2014-03-2819:09:55.600261937 -0700
@@-95,6 +95,9 @@
OUTPUT_NAME= $(EXE_NAME)
# Wewant the executables to look for the .so's locally first:
LDFLAGS+= -Wl,-rpath ./
+ifneq ("$(OSTYPE)","Darwin")
+LDFLAGS += -lpthread
+endif
OUTPUT_COMMAND= $(CXX) -o $(OUTPUT_FILE) $(OBJ_FILES) $(LDFLAGS)
endif
ifneq "$(SLIB_NAME)" ""4.修改makefile,增加sample,即在makefile文件末尾添加:
- core_samples: $(CORE_SAMPLES)
- tools: $(ALL_TOOLS)
5.编译
- $make
- $make core_samples # this probably isn't necessary, they should already be built
- $GLUT_SUPPORTED=1 make tools#GLUT_SUPPORTED tells the make to compile NiViewer for OpenGL
0 0
- ubuntu14.04 安装openNI2
- ubuntu14.04 PCL1.8 OPENNI2.0 OPENCV3.0安装小结
- opencv +openni2+pcl在ubuntu14.04下的安装
- ubuntu14.04安装OpenNI2+驱动XTion PRO Live
- Ubuntu14.04下openni2以及nite2的配置-kinectv1篇
- ubuntu14.04+openni2.2.0.33+primesense carmine1.09
- ubuntu14.04 使用openni2 提示找不到xtion设备的问题
- OpenNI2的安装教程
- Windows 安装OpenNI2
- 安装openni2驱动xtion
- OPENNI2+VS2015安装(win10)
- Ubuntu14.04安装JDK
- ubuntu14.04安装fcitx
- ubuntu14.04 安装LNMP
- Ubuntu14.04安装成功
- ubuntu14.04安装MySQL
- ubuntu14.04安装eclipse
- Ubuntu14.04 安装CodeBlocks
- IDEA 添加classPath
- 多播测试
- 排序算法-冒泡排序
- iOS - 裁剪图片方法CGImageCreateWithImageInRect
- linux安装配置和使用svn服务器
- ubuntu14.04 安装openNI2
- Android camera拍照分辨率
- AndroidStudio 多个第三方so文件重复引用导致 java.lang.UnsatisfiedLinkError 问题
- nyoj 图像有用区域(BFS)
- 如何更好地学习dubbo源代码(转)
- 使用MD5对用户密码加密与解密
- 优化 SQL SELECT 语句性能的 6 个简单技巧
- 摸爬滚打DirectX11_day04——顶点缓存介绍
- 关于 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock的问题