Changes between Version 8 and Version 9 of CompilationGuide/RaspberryPi
- Timestamp:
- Jul 29, 2013, 10:02:12 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/RaspberryPi
v8 v9 21 21 22 22 === Building the crosstool-ng === 23 The following section is mostly inspired by the following Chris Boot's article: http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/23 The following section is mostly inspired by [http://www.bootc.net/archives/2012/05/26/how-to-build-a-cross-compiler-for-your-raspberry-pi/ How to build a cross compiler for your Raspberry Pi]. 24 24 25 First, download the crosstool-ng from [http://crosstool-ng.org/ their website], extract the archive and compile the source code. We recommend you to use something like this:25 First, [http://crosstool-ng.org/#download_and_usage download crosstool-ng], extract the archive and compile the source code. We recommend you to use something like this: 26 26 {{{ 27 27 ./configure --prefix=/opt/cross … … 143 143 cd alsa-lib-1.0.25/ 144 144 ./configure --host=arm-unknown-linux-gnueabi --prefix=/my/path/were/i/keep/built/arm/stuff 145 make 146 make install 145 147 }}} 146 148 … … 167 169 }}} 168 170 169 Also, if some libraries are dependent on pkgconfig, you'll most probably be able to solve it using PKG_CONFIG_PATH environment variable, like this:171 Also, if some libraries are dependent on `pkg-config`, you'll most probably be able to solve it using PKG_CONFIG_PATH environment variable, like this: 170 172 {{{ 171 173 PKG_CONFIG_PATH=/my/path/were/i/keep/built/arm/stuff/pkgconfig ./configure ... … … 173 175 174 176 = Conclusion = 175 After you've built your FFmpeg for RPi, copy ffmpeg, ffplay and ffserverbinaries from "/my/path/were/i/keep/built/arm/stuff/bin/" to your Raspberry Pi and try it to see how it works :)177 After you've built your FFmpeg for RPi, copy `ffmpeg`, `ffplay` and `ffserver` binaries from "/my/path/were/i/keep/built/arm/stuff/bin/" to your Raspberry Pi and try it to see how it works :) 176 178 177 179 One important note, that might save you days of headaches is that RPi is a very optimized hardware, which consumes very little power and also provides very little power to its USB ports, so if you plan to attach any external USB disks, cameras, wireless/audio/etc USB dongles, then keep in mind to connect all of these USB peripherals through a self-powered USB hub, which can provide enough power for devices to work properly, so your RPi won't be rebooting itself, due to sudden dramatic voltage fluctuations.
