- 浏览: 297108 次
- 性别:
- 来自: 南京
文章分类
最新评论
-
ggwang:
谢谢分享!
如何释放Ubuntu多余的空间?如何给Ubuntu扩容(install inside windows)? -
allenshao:
只有放枪咯~~~~~
Google Group Android Developers 无法打开的问题 -
malong26:
也打不开~~~
Google Group Android Developers 无法打开的问题 -
songshuang:
一直喂它会一直吃是不?
用你的鼠标逗逗它 -
allenshao:
现在基本上用免费的VPN,缺点是限流量。
如何访问appspot网站?
How to make:
1.Setup ofxAndroid's Development Environment
Please refer to the following site:
ofxAndroid setup manual
http://www.openframeworks.cc/setup/android-eclipse
If you can read Japanese & want to setup it on Windows, you should refer to this site.
http://blog.goo.ne.jp/tuninghigh/e/637821f5b76b370876e3092e860ce7db
2.Merge ofxKinect to ofxAndroid
2-1.Download & Setup to Eclipse
Please download soruce code from the following site:
https://github.com/ofTheo/ofxKinect
Next, Copy [ofxKinect directory]/src/ofxKinect/ to [ofxAndroid directory]/addons/ .
Final, Add include path to Eclipse's "(ofxAndroid's)addons" project.
Please run Eclipse and add the folloing place & path:
Place: Properties -> C/C++ General -> Pths and Symbols -> Includes tab(GNU C++)
Path: [ofxAndroid directory]/addons/src/ofxKinect/src/
2-2.Fix compile error
If ofxAndroid doesn't have ofxThread::waitForThread(bool) function.
Please add the following source:
[ofxAndroid directory]/addons/ofxThread/src/ofxThread.h
void waitForThread(bool stop = true);
[ofxAndroid directory]/addons/ofxThread/src/ofxThread.c
void ofxThread::waitForThread(bool stop){
if (threadRunning){
// Reset the thread state
if(stop){
threadRunning = false;
if(verbose)printf("ofxThread: stopping thread\n");
}
if(verbose)printf("ofxThread: waiting for thread to stop\n");
// Wait for the thread to finish
#ifdef TARGET_WIN32
WaitForSingleObject(myThread, INFINITE);
CloseHandle(myThread);
#else
if(pthread_self()==myThread) printf("ofxThread: error, waitForThread should only be called from outside the thread");
pthread_join(myThread, NULL);
#endif
if(verbose)printf("ofxThread: thread stopped\n");
myThread = NULL;
}else{
if(verbose)printf("ofxThread: thread already stopped\n");
}
}
2-3.Do customize source code for Android
Please remove the following code in ofxKinect::threadedFunction() function:
ofSleepMillis(20);
Please add the following code in [ofxKinect directory]/libs/lubusb/io.c file:
#define TIMESPEC_TO_TIMEVAL(tv, ts) \
do { \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
} while (0)
2-4.Create your application project
Please choose sample programs from the following directory:
[ofxAndroid directory]/apps/androidExamples/
And copy it to the following directory:
[NDK directory]/apps/
Final, export this project on Eclipse.
2-5.Build project
You must build JNI at first.
You execute the following commands:
cd [NDK directory]/apps/[your app directory]
[NDK directory]/ndk-build -B
And, you build android application on Eclipse.
*If you don't know how to use ofxKinect framework, please refer to "[ofxKinect directory]/src/testApp.cpp".
3.Change Android's configuration
Please add the following line to init.rc:
mount usbfs none /proc/bus/usb -o devmode=0666
4.Upgrade Android's kernel
libusb MUST neet "USB FS". And Kinect MUST neet "High Speed USB(USB2.0)".
Therefore, you check the following kernel options:
.config
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_ARC_OTG_ALLOW_HS=y (only armadillo)
Appendix
If your device can not draw normal Z-camera image and RGB-camera image, you MUST need to build optimized kernel & userland.
I used the following optimization option for building kernel, userland & "OpenFrameworks x kinect x Android".
for armadillo
-O3 -march=armv6 -mtune=arm1136jf-s -mfpu=vfp -ffast-math -fno-math-errno -mfloat-abi=softfp -ftree-vectorize -fomit-frame-pointer -funroll-loops -fstrict-aliasing -funswitch-loops
for beagleboard
-O3 -ffast-math -fno-math-errno -march=armv7-a -mtune=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ftree-vectorize -fomit-frame-pointer -funroll-loops -fstrict-aliasing -funswitch-loops
*Download
Full "OpenFrameworks x kinect x Android" Development Environment for Armadillo
Full "OpenFrameworks x kinect x Android" Development Environment for beagleboard
Only source code "OpenFrameworks x kinect x Android
Full "OpenFrameworks x kinect x Android" Development Environment has:
Android NDK crystax version for Linux
Android SDK for Linux
C/C++ Eclipse for Linux
ofxKinect(Kinect for OpenFrameworks)'s source codes
ofxAndroid(Android for OpenFrameworks)'s source codes
"OpenFrameworks x kinect x Android" 's source codes
sample program Eclipse's workspace
OpenFrameworks + kinect + Android项目源码下载
原文链接:http://www.cnkinect.com/thread-2953-1-1.html
发表评论
-
AOSP source code build error: Virtual memory exhausted: Cannot allocate memory
2014-01-02 15:47 1337Sometimes compiling certain thi ... -
What is the purpose of different Android partitions
2014-01-02 09:57 703-- Boot partition stores the An ... -
Android Kitkat ART vs. Dalvik & Impacts for end-users
2013-12-08 19:00 799What's ART? ART is Google's 2- ... -
error: gnutls_handshake() falied when you sync chip code in ubuntu
2013-11-30 19:47 885gnutls package is broken, worka ... -
unix2dos dos2unix
2013-03-04 20:12 768sudo aptitude install tofrodos ... -
How to make resources added in frameworks/base/core/res/res
2013-02-23 10:19 10541) add the new id to your xml 2 ... -
JDK6 installed in Ubuntu
2012-11-10 15:23 812按照网上的方法apt-get并不成功,我这里采用的方法是手工安 ... -
Android source sync问题汇总(since 2012)
2012-11-04 16:00 18021. [repo init] fetch address is ... -
Android Partitions Explained: boot, system, recovery, data, cache & misc
2012-09-06 16:17 1077Unless you have been using your ... -
Android IPC AudioFlinger binder实例
2012-06-20 13:32 986一篇 android 的 IPC 机制 binder ... -
Eclipse Android project name有错误, source tree无红叉解决办法
2012-06-07 13:22 1285linux: Window -> Preference ... -
Android内核开发的几个常用命令
2012-02-23 15:29 986在android源码的根目录下执行: . build/env ... -
MTP (Media Transfer Protocol) Introduction
2012-02-07 14:46 2287微軟制訂了一套名 ... -
Why is Android laggy, while iOS, Windows Phone 7, QNX, and WebOS are fluid?
2011-12-12 17:55 1012The Root Cause It’s not GC p ... -
Writing Native Code for Android Systems
2011-09-26 17:53 782Writing Native Code for Android ... -
Android JNI 使用的数据结构JNINativeMethod详解
2011-09-13 10:26 858Andoird 中使用了一种不同传统Java JNI的方 ... -
Android property system
2011-08-25 15:11 1312属性系统是 android 的一个重 ... -
Android boot process stub
2011-07-20 10:08 0Android's boot up process is su ... -
Android boot process stub
2011-07-20 10:07 929Android's boot up process is su ... -
Android apk签名以及真机上gmap api key相关
2011-05-31 13:35 2240Apk签名首先要有一个keystore的签名用的文件。 ...
相关推荐
3D 布料物理粒子弹簧。 不完整!!! 依赖glm 库
基于openFrameworks的kinect V2开发
简单生活游戏,使用OpenFrameworks C ++编写 建议在阅读和/或修改openFrameworks和/或C ++中的初学者代码之前阅读以下内容: : 。 目前该项目尚未获得许可,您可以根据需要进行该项目的操作,如果您共享此仓库,请...
Make use of the next generation technologies and techniques in your projects involving OpenCV, Microsoft Kinect, and so on ☆ 出版信息:☆ [作者信息] Denis Perevalov [出版机构] Packt Publishing ...
Create stunning, interactive openFrameworks-based applications with this fast-paced guide About This Book Generate 2D and 3D graphics with openFrameworks Create a video synthesizer project and run it...
Android-openFrameworks.zip,OpenFrasWorkS是一个社区开发的跨平台工具包,用于C 中的创造性编码。,安卓系统是谷歌在2008年设计和制造的。操作系统主要写在爪哇,C和C 的核心组件。它是在linux内核之上构建的,具有...
使用 openFrameworks 运行的 Kinect v2 ## 如何使用 每个文件夹都是一个应用单元。 of_v0.8.4_vs_release \ apps \ myApps请复制到。 ##环境视窗 8.1 专业版Visual Studio 2013 Ultimate(编译器为 Visual Studio ...
学习openFrameworks的稀有经典数据。 学习openFrameworks必备。
Memo Atken的ofxCocoa库已针对openFrameworks 0072+进行了修复。 这与Memo在其令人惊叹的存储库中的ofxCocoa插件几乎100%相同,只是对OF的最新版本进行了一些较小的修复。 我会尝试在它们出现时添加更多示例,但是...
这是 在 Windows 8.1 上的 openFrameworks v0.8.4 中使用 Kinect for Windows SDK 2.0 基于sdk的官方样本 ColorSample-D2d
ofruby = openFrameworks + mruby。 openFrameworks 是一个用于创造性编码的开源 C++ 工具包。 mruby 是轻量级的 Ruby。 要开始,请查看 。截屏建造环境我的构建环境。 OSX 10.9.4(小牛队) Xcode 5.1.1 3.06 GHz ...
openframeworks书籍
openframeworks的CB附加包 添加后CB才能编译openframeworks
openFrameworks源码,是一个很不错的Android代码,有兴趣的伙伴们抽时间可以看一下把。
*灰尘= openFrameworks +均衡器 Stardust尝试通过使用将的优点和功能带入群集环境和分布式图形中。 从本质上讲,这意味着只要有足够的资源(感谢Equalizer并由其提供支持),就可以在任何规模的可视化集群中运行由...
Kinect和OpenCV实现简单的点云三角化,用最小二乘法计算法线,并实时显示获得的模型。建立在OpenFrameworks框架上,编译需要安装OpenFrameworks并放到myApps目录里,还需要Kinect SDK 1.7和OpenCV 2.4.3。
ofxLaser, 用于控制多个激光投影仪的openFrameworks插件 ofxLaser用于控制一个或者多个iLDA激光投影仪的openFrameworks插件,它在渲染图形方面特别出色。 目前,它使用Etherdream控制器,但将来增加更多的dac 。安全...
openFrameworks Essentials 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...
田所淳 所著的openframeworks入门书籍Beyond Interaction,已经开放PDF下载,日文的,不过代码很有参考价值,下载下来跟大家分享。代码对应下载地址:https://github.com/tado/BeyondInteraction。
openframeworks用来显示中文的字体文件-可以用该文件定义中文字体,并在界面上显示!-详情见说明!