cygwin

[原]android开发环境搭建-ndk

泪湿孤枕 提交于 2019-12-31 01:36:04
一.NDK是什么 NDK是一个工具集,可以编译出android下的原生程序。它包括一套编译工具,下面的库和头文件,文档,示例。 libc (C library) headers libm (math library) headers JNI interface headers libz (Zlib compression) headers liblog (Android logging) header OpenGL ES 1.1 and OpenGL ES 2.0 (3D graphics libraries) headers libjnigraphics (Pixel buffer access) header (for Android 2.2 and above). A Minimal set of headers for C++ support 二.NDK适合做什么 NDK适合独立的大运算量的操作,如信号处理,物理仿真等。 三.安装(windows系统下) 1.安装NDK,需要先安装SDK,请参考《 android开发环境搭建-sdk 》。 2.从 http://developer.android.com/sdk/ndk/index.html 下载最新的NDK。 3.解压。 4.NDK已经安装完了,但为了能编译,还需要安装cygwin。在这里下载 http://www

Eclipse NDK 配置,无需安装Cygwin

吃可爱长大的小学妹 提交于 2019-12-31 01:34:37
Eclipse NDK 配置,不用安装Cygwin 文章转自 http://www.cnblogs.com/chenjiajin/archive/2012/04/12/2444188.html 一、关于NDK: NDK全称:Native Development Kit。 1、NDK是一系列工具的集合。 NDK提供了一系列的工具,帮助开发者快速开发C(或C++)的动态库,并能自动将so和java应用一起打包成apk。这些工具对开发者的帮助是巨大的。 NDK集成了交叉编译器,并提供了相应的mk文件隔离CPU、平台、ABI等差异,开发人员只需要简单修改mk文件(指出“哪些文件需要编译”、“编译特性要求”等),就可以创建出so。 NDK可以自动地将so和Java应用一起打包,极大地减轻了开发人员的打包工作。 2、NDK提供了一份稳定、功能有限的API头文件声明。 Google明确声明该API是稳定的,在后续所有版本中都稳定支持当前发布的API。从该版本的NDK中看出,这些API支持的功能非常有限,包含有:C标准库(libc)、标准数学库(libm)、压缩库(libz)、Log库(liblog)。 二、NDK实例的实现: 对于Windows环境下NDK的开发,如果使用的NDK是r7之前的版本,必须要安装Cygwin才能使用NDK,所以为Eclipse需要配置的builder

Thrift官方安装手冊(译)

╄→尐↘猪︶ㄣ 提交于 2019-12-30 23:56:30
本篇是Thrift官网安装文档的翻译,原地址 点击这里 。Thrift之前是不支持Windows的。可是似乎0.9版本号以后已经支持Window了。介绍了Thrift安装的环境要求以及在centos,Debian/Ubuntu,OS X和Windows下的安装过程。并提出了一些安装过程中可能遇到的问题和解决的方法。适用于thrift0.9版本号。 1 Thrift的环境要求 Apache的Thrift的编译器为支持可移植由C++语言编写而成。但在安装到某些系统中时要求有一定的环境要求。在以下的指南中选择你要安装的系统開始吧。 Centos 6.5 Install Debian/Ubuntu install OS X Install Windows Install 1.1 基本环境要求 一个相对posix兼容* NIX系统 Windows下可用的Cywin或者MinGW g++ 4.2 boost 1.53.0 生成编译器时还须要支持lex和yacc的执行时库 1.2 编译源代码的环境要求 GNU的编译工具: autoconf 2.65 automake 1.9 libtool 1.5.24 pkg-config autoconf macros (pkg.m4) lex and yacc (开发主要使用flex和bison) libssl-dev 1.3 语言要求

eclipse配置c开发环境

倖福魔咒の 提交于 2019-12-30 21:25:37
/*--> */ /*--> */ eclipse配置c开发环境 1. eclipse配置c开发环境 1.1. 缘起 1.2. cygwin 1.3. eclipse 1.4. 配置 1 eclipse配置c开发环境 1.1 缘起 公司同事需要开发c语言,想要配置一个开发环境,考虑使用eclipse+cygwin gcc开发,因 此帮着配置了开发环境。机器配置:win10,4G。 首先,Windows下用eclipse玩c用到一下三个东西: cygwin(Windows平台的unix模拟程序,包含了gcc和g++) eclipse 1.2 cygwin cygwin搜索官方网站下载安装程序,选择64位的,打开安装程序setup-x86_64.exe,然后选 install from internet,接着选择存放位置,打开翻_墙(不翻_墙下载会很慢),进入下载列 表,这个列表就是要求你下载什么程序的列表,请务必安装以下程序,务必安装: gcc-core,gcc-g++,make,gdb,binutils;可以参考: http://www.linuxidc.com/Linux/2011-06/37588.htm 。 将cygwin安装目录\bin加入到环境变量PATH中。好了,开个cmd命令行窗口,分别试一下gcc -v, make -v,gdb -v命令。 $ gcc -v

CLion配置Cygwin环境

梦想与她 提交于 2019-12-30 21:25:15
CLion "download" 跳转到 https://cygwin.com/install.html 下载64位安装程序并安装 国内添加网易镜像 http://mirrors.163.com/cygwin/ 接下来选择安装的模块,skip是选择安装的版本的按钮,所要选择的安装模块都在devel下 如果是 c/c++ 的环境。 可以直接搜索gcc-core、gcc-g++、make、gdb、binutils,cmake 这几个是必须要下载的。 注意还需要将你的cgwin的安装目录中的bin导入到path中,具体的步骤,我的电脑然后属性->高级系统设置->环境变量 然后编辑系统变量中的path 然后新建,然后输入你cygwin的路径就可以 例如E:\cygwin64\bin 安装好了以后,就需要在clion中选择这个cygwin编译器 环境的配置: 这个选择左上角的file 然后选择setting 选择cygwin home dir 为 C:/cygwin64 来源: https://www.cnblogs.com/ZeroTensor/p/11185351.html

Linux cross-compiler for Cygwin — not able to find the Linux Cygwin compiler tool chain online

爷,独闯天下 提交于 2019-12-30 18:25:09
问题 I have installed Cygwin and followed the necessary steps to install the right packages to allow for Linux cross-compilation on Windows. More info on procedure here Compiling Linux binaries (x86/x86-64) under Windows However, I am not able to obtain the actual Linux compiler tools from the source above, or anywhere online (after hours of searching). The download to the Linux cross-compiler for Cygwin points to Metamod-P, I wonder what Metamod-P is. How or where can I get the required Linux

reading in from stdin from a command executed with xargs

久未见 提交于 2019-12-30 18:00:11
问题 Using xargs did something I didn't quite expect, though I guess it sort of makes sense. This is not what I did, but this is an example which should show what happened. fn.sh #!/usr/bin/bash index=1 for arg in "$@"; do echo "Arg #$index = '$arg'"; let ++index; done read -p "type something followed by enter: " a echo "You typed '$a'." Now here is the command: echo boo hoo | xargs ./fn.sh Now what I want is that fn.sh can read from stdin to allow user interaction, but that's been usurped by

Launching CYGWIN-built executable from Java on Windows 7 fails with “error while loading shared libraries: ?: No such file or directory”

懵懂的女人 提交于 2019-12-30 11:24:28
问题 The code in question has worked in more or less the exact same configuration on earlier releases of Windows, however, it is not known to have run on Windows 7 YET! That's what I need to solve now. Briefly, some C code performs some configuration and security checks before launching a java program, passing some data that would be neigh-into-impossible to do easily in Java. The Java in turn, at the appropriate time launches the same C code which then itself launches a different Java program.

Launching CYGWIN-built executable from Java on Windows 7 fails with “error while loading shared libraries: ?: No such file or directory”

回眸只為那壹抹淺笑 提交于 2019-12-30 11:24:03
问题 The code in question has worked in more or less the exact same configuration on earlier releases of Windows, however, it is not known to have run on Windows 7 YET! That's what I need to solve now. Briefly, some C code performs some configuration and security checks before launching a java program, passing some data that would be neigh-into-impossible to do easily in Java. The Java in turn, at the appropriate time launches the same C code which then itself launches a different Java program.

Cygwin sees a file that windows can't--I want to access this file from python

泪湿孤枕 提交于 2019-12-30 10:47:06
问题 I have a device connected to my USB that creates a logfile called Tpolling.log. I can see it through Cygwin but I can't see it through Windows (with hidden files set to be always shown). I can't access it from python either. I want to be able to read it in python but python doesn't find it. The cygwin path that works is /cygdrive/c/Program Files (x86)/TDA An ls shows that there's a file called Tpolling.log $ cygpath -w "/cygdrive/c/Program Files (x86)/TDA" C:\Program Files (x86)\TDA However,