cygwin

Make error while trying to build NDK app

不打扰是莪最后的温柔 提交于 2019-12-24 19:22:25
问题 I'm new to Android programming and NDK, so i've followed this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ to install and config cygwin and NDK. The problem appears when I try to execute ndk-build command. It displays the following error message: $ $NDK/ndk-build Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersion 3in ./AndroidManifest.xml Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver install: nie można

Cygwin安装教程

一笑奈何 提交于 2019-12-24 18:01:15
cygwin是一个在windows平台上运行的unix模拟环境,是cygnus solutions公司开发的自由软件。 它对于学习unix/linux操作环境,或者从unix到windows的应用程序移植,或者进行某些特殊的开发工作,尤其是使用gnu工具集在windows上进行嵌入式系统开发。 安装步骤如下: 1、首先,去官网下载最新版本的安装程序(我这里选择的是setup-x86.exe)    http://www.cygwin.com/ 2、点开安装程序 3、选择“install from Internet”,如果下载了安装包的,可以选择第三个选项。 4、选择安装位置 5、选择包(package)安放位置 6、选择Internet连接方式,分别是直连、代理、Ftp。我们这里选择直连 7、选择下载地址,这里我们用163的站点 User URL中,输入 http://tel.mirrors.163.com/cygwin/ , 点击ADD。然后去列表中选择刚添加进去的163站点,最后下一步即可。 PS:163站点可能存放目录会变化, 各位可以去mirrors.163.com/cygwin下找找 setup.ini 的存放位置。然后复制它的url,去掉版本号即可。 如: 我找到的setup.ini的路径为:http://tel.mirrors.163.com/cygwin/x86/

Does steady_clock have only 10ms resolution on windows/cygwin?

我们两清 提交于 2019-12-24 16:22:39
问题 I have suprising observation that steady_clock gives poor 10ms resolution when measuring durations. I compile for windows under cygwin. Is it sad true or am I doing sth wrong? auto start = std::chrono::steady_clock::now(); /*...*/ auto end = std::chrono::steady_clock::now(); std::cout << std::chrono::duration_cast<std::chrono::microseconds> (end - start).count(); Result is 10000,20000 etc. 回答1: The resolution of std::steady_clock is implementation dependent, and you shouldn't rely on a

WGET ignoring --content-disposition?

試著忘記壹切 提交于 2019-12-24 15:28:47
问题 I am trying to run a command to download 3000 files in parallel. I am using Cygwin + Windows. Downloading a single file via WGET in terminal : wget --no-check-certificate --content-disposition --load-cookies cookies.txt \ -p https://username:password@website.webpage.com/folder/document/download/1?type=file allows me to download the file with ID 1 singularly, in the correct format (as long as --content-disposition is in the command). I iterate over this REST API call to download the entire

make file compile error undefined symbol `strtoflt128' error

99封情书 提交于 2019-12-24 15:18:01
问题 I was compiling a make file on my PC. When I ran it, it generates the following error: R_X86_64_PC32 against undefined symbol `strtoflt128'. My PC is Windows 8.1 64 bit. I have cygwin64 installed with the following packages; gcc-core4.9.3, gcc-g++ 4.9.3, gcc-fortran 4.9.2-3. 回答1: This symbol is provided by libquadmath, so you will need to add -lquadmath to your link command. If it is already there, make sure it comes after all object files and static libraries. 来源: https://stackoverflow.com

Cygwin Bad Address

与世无争的帅哥 提交于 2019-12-24 13:52:58
问题 When I open a cygwin console I get the following message: hostname: : Bad address Furthermore when I try to ssh into a server I get this message: gethostname: Bad address Does anyone know what this might be about? I tried reinstalling ssh and reinstalling cygwin to no avail. 回答1: I believe this is a known problem affecting some 64-bit users with the latest version of Cygwin (1.7.29-2). See the thread here: http://cygwin.com/ml/cygwin/2014-04/msg00132.html I believe the only solution at this

Cygwin and tr settings

你说的曾经没有我的故事 提交于 2019-12-24 13:50:32
问题 I use a Unix utility tr via Cygwin. I want to replace the non-alphabetical characters for '\ n', but tr also recognize accented characters as non-alphabetic (ěščřžýáíé -> \ n). Can I change this setting? Thanks. 回答1: This should do it tr -c '[:cntrl:][:print:]' '\n' Depending on locale you might need to LANG= tr -c '[:cntrl:][:print:]' '\n' Or this tr -c $'\x01-\x7e' '\n' 来源: https://stackoverflow.com/questions/23471322/cygwin-and-tr-settings

Unable to auto-config arch from toolchain

☆樱花仙子☆ 提交于 2019-12-24 13:42:01
问题 I'm trying to configuration toolchain in Cygwin for Android NDK. I use of this tutorial. when I run the following command: ./make-standalone-toolchain.sh --platform=android-9 --install-dir=c:/android-toolchain --ndk-dir=c:/android-ndk-r10d/ It shows "Unable to auto-config arch from toolchain" How can I fix problem? 回答1: You have to specify which toolchain you want, add a toolchain flag, for instance for arm-linux-androidabi-4.6 toolchain: ./make-standalone-toolchain.sh --toolchain=arm-linux

Saving files with Windows programs makes Git in Cygwin track filemode changes

混江龙づ霸主 提交于 2019-12-24 12:44:00
问题 I am currently developing with Cygwin, Git in Cygwin and a Windows editor under Windows. It is quite annoying that saving files from native Windows programs makes a file executable in Cygwin. I want to track filemodes as we have Unix executables but updating files from Windows just shoudn't change the existing mode. I'd accept setting filemode once in Cygwin before committing the file the first time. I read https://cygwin.com/cygwin-ug-net/using-filemodes.html but I'm on NTFS and I don't know

How to effectively convert a POSIX path to Windows path with Python in Cygwin?

╄→гoц情女王★ 提交于 2019-12-24 11:14:31
问题 Problem Imagine you are writing a Python script which runs on cygwin and calls an external C# executable which requires as input a path. Assume you cannot change the C# executable in any way. As you send the path you want to the executable, it rejects all cygwin paths. So if you pass the path /cygdrive/c/location/of/file.html as a POSIX path, it will fail as the executable requires a Windows path like C:\location\of\file.html Example: Message location = os.path.dirname(os.path.realpath(__file