Copyright 2021 Simon Quantrill, All Rights Reserved

Cross compiling aprx for 32bit from 64bit host

Mon 13 October 2014

I run aprx I-Gate for RF feed to to support the local area network.

I develop on a 64 bit version of debian (Testing) but run the node on a 32bit version of stable. Here is my setup and package requirement

On the stable system you need to add the testing repo to the sources list

deb testing main contrib non-free deb-src testing main root@pa2sq:~/workspace/aprs/aprs-pa2sq-5#

apt-get -t testing install libc6-dev

And install glib for the version on testing. This is to allow the cross compiled version to run without updating the host node to testing

On the 64 bit machine you need to supply 32bit compile flag to the autoconf tool

simon@ham$ (git::master) ./configure —build=i586-pc-linux-gnu “CFLAGS=-m32” “CXXFLAGS=-m32” “LDFLAGS=-m32”

then its just a case of copying over the compiled binary to the host

scp aprx root@pa2sq:/usr/sbin/aprx

restart the node and you now have the running version without the need to compile on a machine with low resources.

on the top