Building for Arm was easier than I assumed. On Ubuntu 11.10 amd64:

$ apt-get install gcc-4.6-arm-linux-gnueabi
$ IMAGEROOT=`pwd`/image-arm CHOST=arm-linux-gnueabi
CBUILD=x86_64-pc-linux-gnu ./build

seemed to produce binaries as expected.

Samuli

PS. Updated the documentation:

<https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem>

> Hi all,
>
> I also ran some build tests with the "generic" buildsystem[1], OpenVPN
> Git "master"[2] and an Ubuntu 11.10 amd64 workstation. As the Git
> "master" does not yet seem to include the "generic" buildsystem, I
> downloaded it separately[3] and pointed it to a tarball[4] assembled
> from latest Git "master" code. Building the obsolete OpenVPN-GUI 1.0.3
> for Windows seemed to fail, so I disabled it by editing the build script
> (generic/build). Anyways, here are the results of the tests...
>
> Building a native binary worked:
>
> $ IMAGEROOT=`pwd`/image-native ./build)
>
> Building a Windows 32bit binary on Linux 64bit worked:
>
> $ IMAGEROOT=`pwd`/image-win32 CHOST=i686-w64-mingw32
> \ CBUILD=x86_64-pc-linux-gnu ./build
>
> Building a Windows 64bit binary on Linux 64bit worked:
>
> $ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32
> \ CBUILD=x86_64-pc-linux-gnu ./build
>
> I could not test building for Arm, as the my workstation was missing the
> required tools.
>
> Samuli
>
> [1]
> <https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem#Genericbuildmethod>
> [2] <git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn.git>
> [3] <https://github.com/alonbl/openvpn-build.git>
> [4] <http://build.openvpn.net/downloads/snapshots/openvpn-2.3_alpha1.tar.gz>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel



Reply via email to