上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 34 下一页
摘要: I try to build my program without jni ndk-build , but by a standalne arm-kind cross compliers way . However ,after I write a simple sample , using STL and thread function with my own Makefile , and I do make command,I encount all kind of weird program . error 0: in a dynamic library way [den... 阅读全文
posted @ 2012-09-26 17:40 邓维 阅读(1675) 评论(0) 推荐(0)
摘要: first : download arm cross compliers next : modify env [dengwei@localhost ~]$ vi ~/.bashrc export PATH="/home/dengwei/arm-marvell-linux-gnueabi/bin:$PATH" third: code here #include<stdio.h> #include<stdlib.h> #include<string.h> intmain(in... 阅读全文
posted @ 2012-09-24 20:15 邓维 阅读(923) 评论(0) 推荐(0)
摘要: where this article from First, two big things--the main function and how to compile it, followed by lots of little differences.main functionC++// free-floating function int main( int argc, char* argv[]) { printf( "Hello, world" ); } Java// every function must be part of a class; the main f 阅读全文
posted @ 2012-09-24 09:59 邓维 阅读(376) 评论(0) 推荐(0)
摘要: There are example about how Android platform call c code via NDK , which are inandroid-ndk-r8(version) dirctory :/home/dengwei/android-NDK/samples[dengwei@localhost samples]$ lsbitmap-plasma hello-jni hello-neon native-activity native-media san-angeles two-libshello-gl2 module-exports nativ... 阅读全文
posted @ 2012-09-24 09:22 邓维 阅读(2742) 评论(0) 推荐(0)
摘要: 1、安装CDT 单独安装 CDT, 下载了个cdt-master-8.1.0.zip , 结果发现是 eclipse Juno version 的, 我使用的是Eclipse Helios Version: 3.6.2 , 应该下载 cdt-master-7.0.2.zip 加载cdt-master-7.0.2.zip 后,报错: Cannotcompletetheinstallbecauseoneormorerequireditemscouldnotbefound. Softwarebeinginstalled:C/C++... 阅读全文
posted @ 2012-09-20 16:37 邓维 阅读(449) 评论(0) 推荐(0)
摘要: chat_server.cppchat_server.cpp#include"chat.h"externintsock_server_init(int&listenfd,uint16_tserver_port);voiderr_quit(constchar*error_string){printf("%s\n",error_string);exit(1);}voiderr_sys(constchar*error_string){printf("%s\n",error_string);}externssize_tp_read_f 阅读全文
posted @ 2012-09-20 14:58 邓维 阅读(396) 评论(0) 推荐(1)
摘要: some of the codes are the same with previous article. I just list the different code here .chat_server.cppView Code#include"chat.h"externintsock_server_init(int&listenfd,uint16_tserver_port);voiderr_quit(constchar*error_string){printf("%s\n",error_string);exit(1);}voiderr_sys 阅读全文
posted @ 2012-09-11 18:46 邓维 阅读(648) 评论(0) 推荐(0)
摘要: we'll create a concurrent server program with some kind of message handling functions.But first, let's look at some easy example. Then step by step , we create more and more complex programs. chat.h#ifndef__CHAT_H#define__CHAT_H#include<stdlib.h>#include<unistd.h>#include<neti 阅读全文
posted @ 2012-09-07 15:29 邓维 阅读(336) 评论(0) 推荐(0)
摘要: #include<sys/types.h>/*basicsystemdatatypes*/#include<sys/socket.h>/*basicsocketdefinitions*/#ifTIME_WITH_SYS_TIME#include<sys/time.h>/*timeval{}forselect()*/#include<time.h>/*timespec{}forpselect()*/#else#ifHAVE_SYS_TIME_H#include<sys/time.h>/*includes<time.h>uns 阅读全文
posted @ 2012-09-01 16:08 邓维 阅读(666) 评论(0) 推荐(0)
摘要: Makefile first: g++ t2.cpp -o t2 -I/usr/include/python2.7 -lpython2.7 t2.cpp code #include<python2.7/Python.h> #include<iostream> #include<string> voidprintDict(PyObject*obj) { if(!PyDict_Check(obj)) return; PyObject*k... 阅读全文
posted @ 2012-08-22 22:06 邓维 阅读(7307) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 34 下一页