ffmpeg for a android (using tutorial: “ffmpeg and Android.mk”)

After looking around the net. The only working solution I found is supplied by Bambuser which ported ffmpeg to use in their android application. Code is here: http://bambuser.com/opensource Basically you copy the .so files to your jni/lib directory, along with any .h files you might need, create a JNI wrapper through javah, and it works. … Read more

How to build an OCaml cross compiler

The question has answered itself… in a rather weird way. What it was really asking for (in 2012) was a cross-compiler targeting (an unspecified version of) iOS for version 4.x of Ocaml. And the code dump in the question was trying to use Jeffrey Scofield’s cross-compiling instructions and script (ocamlxarm/3.1) for Ocaml 3.1.x, which didn’t … Read more

Can anyone explain the gcc cross-compiler naming convention?

The naming comes down to this: arch-vendor-(os-)abi So for example: x86_64-w64-mingw32 = x86_64 architecture (=AMD64), w64 (=mingw-w64 as “vendor”), mingw32 (=win32 API as seen by GCC) i686-pc-msys = 32-bit (pc=generic name) msys binary i686-unknown-linux-gnu = 32-bit GNU/linux And your example specifically: arm-none-linux-gnueabi = ARM architecture, no vendor, linux OS, and the gnueabi ABI. The arm-eabi … Read more

How to compile dts Linux device tree source files to dtb?

Device trees do not need to be compiled with “architecture-aware” tools. The dtc compiler on your ubuntu machine is probably current enough to compile your device tree. Or you can download the latest source and compile it yourself. The dtc compiler can be found here: https://git.kernel.org/pub/scm/utils/dtc/dtc.git There are some good documents in that package that … Read more

cmake : Set environment variables from a script

Reading through the cmake quick start, you can specify variable on a command line: cmake -DVARIABLE1=value1 -DVARIABLE2=value2 … Otherwise, set command in the cmake script is probably what you want, see the reference manual. To set the environment variable PATH, do: set(ENV{PATH} “/home/martink”) To set normal variable, do: set(variable “value”) Not sure which ones you … Read more

C++ cross-compiler from Windows to Linux [closed]

crosstool-ng supports building cross-compilers with cygwin host. Overview: Install cygwin, with development packages Download crosstool-ng Extract the tarball (tar xvjf crosstool-ng*) Run ./configure When configure complains about a missing tool, go back to cygwin setup and install the corresponding package (e.g. flex, libtool, ncurses-devel) You’ll need at least the following: Devel/gperf Devel/bison Devel/byacc Devel/wget Devel/patch … Read more

cross compiler ldd

This is a bit of a kluge, but it’s the best solution I could find, and it really works quite well for basic use – just save this script as “arm-none-linux-gnueabi-ldd” with your other cross tools. #!/bin/sh arm-none-linux-gnueabi-readelf -a $1 | grep “Shared library:”

How to write code in Java 11, but target Java 8 and above?

While conversion of classes compiled for JDK 11 to JDK 8 would be theoretically possible with a sophisticated tool, it’s not trivial. There are significant changes on the binary level. First, JDK 11 introduced nest types, which eliminates the need to generate synthetic accessor methods when accessing private members of inner/outer classes. Of course, such access would … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)