Step 8: Cross compile, test, and run ARM file from the command line Cross compile: aarch64-linux-gnu-gcc helloworld.
Copy and paste the following into the ake file code # this one is important SET(cmake_system_name Linux) #this one not so much SET(cmake_system_version 1) # specify the cross compiler SET(cmake_C_compiler SET(cmake_CXX_compiler /usr/bin/aarch64-linux-gnu-g) # where is the target environment SET(cmake_find_root_path /usr/aarch64-linux-gnu) # search for programs.Conclusion Generally speaking, most of the time its pretty easy to cross compile libraries that use autotools or cmake build systems.Development/Languages lua51-libs.1.4-2 lua.1.x libraries Development/Languages/Perl perl-Math-BigInt.89-1 New versions of Math:BigInt and Math:BigFloat tokyo mew mew game english Perl modules perl-Math-BigRat.24-1 Math:BigRat - arbitrarily big rationales perl-base.12.1-2 Base Perl components for a minimal installation perl-bignum.23-1 bignum - Transparent BigNumber support for Perl [email protected] Common.C -o compile_m -lsoc Test: file compile_m Print out should show an aarch64 ARM file Run (On 96Boards Copy file to 96Boards and run.Update: Change directory (cd) to your mraa source and make sure you have the latest code.PLD Linux Download srpms Copyright (C) 2011 by Arkadiusz Patyk areqapld-linuxorg.X86 Test: file helloworld.A few useful commands will help us make sure everything on the board is current: apt-get update: Downloads package lists from online repositories and updates them to get information on the newest versions of packages and their dependencies.
Applications/Sound cdrtools-cdda2wav t WAV files gym class heroes patches from the quilt from digital audio cd's.
It is critical that your cross compiling station and your 96Boards stay in sync in terms of software so if you update your laptop update your 96boards, if you dont bad and unexpected things can and will happen.
What is this all about?Please remember, if you get stuck, there are resources to help you through the installation.Currnet beta release kernel.8.2 rpm.4.10 with db5.2, old stable release notes.02.C Copy and paste the following into your helloworld.C file code #include #include int main(void) puts(!Hello World!You only need to install the toolchain that is the correct size for your board.With autotools the host command tells autotools that you are cross compiling and where the toolchain.If you upgrade one and not the other bad things are likely to happen.It should run and say!Hello World!Test and query tool iozone.315-1 IO Zone Benchmark Program ipmitool.8.11-2 Simple command-line interface to systems that support the jfsutils.1.14-1 IBM JFS utility programs john.7.4-1 Password cracker kexec-tools.0.1-1 Tool for starting new kernel without reboot ldconfig.12-4 Create shared library cache.C -o m Test: file m you should see its an aarch64 ARM file Run (On 96Boards Copy file to 96Boards and run.
Applications/Editors.4-1 GNU Line Editor hexedit.2.12-1 Binary file editor based on ncurses joe.7-2 Easy to use editor.