How to compile ffmpeg-2.2.2 on windows with cygwin and android ndk r9c

Start with Roman’s tutorial. Following changes apply to Windows: you should use the NDK make.exe, not the one from cygwin. So, I simply wrote d:/dev/Android/ndk/prebuilt/windows-x86_64/bin/make.exe in my build_android.sh. For some weird reason, I could not run make clean – but I simply chose to ignore this problem for now. Following the tutorial, don’t forget to … Read more

Executable file generated using GCC under cygwin

Despite widespread rumours, Cygwin is not a Linux emulator, i.e. it doesn’t produce or run Linux executables. For that you’ll need a virtual machine or coLinux. Instead, Cygwin is a compatibility layer, which aims to implement as much as possible of the POSIX and Linux APIs within Windows. This means that programs have to be … Read more

How do I limit the running time of a BASH script

See the http://www.pixelbeat.org/scripts/timeout script the functionality of which has been integrated into newer coreutils: #!/bin/sh # Execute a command with a timeout # License: LGPLv2 # Author: # http://www.pixelbeat.org/ # Notes: # Note there is a timeout command packaged with coreutils since v7.0 # If the timeout occurs the exit status is 124. # There … Read more

How to make a symbolic link with Cygwin in Windows 7

In short, define the following environment variable: CYGWIN=winsymlinks:nativestrict According to Cygwin documentation: If set to winsymlinks:native or winsymlinks:nativestrict, Cygwin creates symlinks as native Windows symlinks on filesystems and OS versions supporting them. The difference between winsymlinks:native and winsymlinks:nativestrict is this: If the filesystem supports native symlinks and Cygwin fails to create a native symlink for … Read more

cygwin sets file permission to 000

Have a read through the answers at this link: http://cygwin.1069669.n5.nabble.com/vim-and-file-permissions-on-Windows-7-td61390.html The solution there worked for me also: Edit /etc/fstab and add this line at the end of the file: none /cygdrive cygdrive binary,noacl,posix=0,user 0 0 Then close all Cygwin processes, open a new terminal and ls -l on your files again. Explanation: By default, Cygwin … Read more

printf not printing to screen

Like @thejh said your stream seems to be buffered. Data is not yet written to the controlled sequence. Instead of fiddling with the buffer setting you could call fflush after each write to profit from the buffer and still enforce the desired behavior/display explicitly. printf( “Enter first integer\n” ); fflush( stdout ); scanf( “%d”, &i1 … Read more