Skip to content

Instantly share code, notes, and snippets.

@alexandernst
Last active December 15, 2015 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandernst/5233668 to your computer and use it in GitHub Desktop.
Save alexandernst/5233668 to your computer and use it in GitHub Desktop.
Cross-compiling applications for ARM
$ pwd
/home/alexandernst/tmp_arm_build
$ cd deps/zlib-1.2.7/
$ export PKG_CONFIG_PATH=/home/alexandernst/tmp_arm_build/libs/lib/pkgconfig/
$ sb2 ./configure --prefix=/home/alexandernst/tmp_arm_build/libs/ &> /dev/null
$ sb2 make &> /dev/null
$ sb2 make install &> /dev/null
$ cd ../..
$ pwd
/home/alexandernst/tmp_arm_build
$ tree -L 2
.
├── deps
│   ├── glib-2.35.9
│   ├── gst-plugins-base-0.10.36
│   ├── gstreamer-0.10.36
│   ├── libffi-3.0.13
│   ├── orc-0.4.17
│   └── zlib-1.2.7
├── gst_hello_world
├── gst_hello_world.c
└── libs
├── include
├── lib
└── share
8 directories, 2 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment