Build tests using "generic" buildsystem and Git "master"!
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>
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>
Quoted 44 lines
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 ./buildBuilding a Windows 64bit binary on Linux 64bit worked:
$ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 \ CBUILD=x86_64-pc-linux-gnu ./buildI 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 [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
2012/4/13 Samuli Seppänen <[email protected]...>:
Quoted 5 lines
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 don't understand what you mean... please explain what is "include"...?
Quoted 4 lines
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...
I updated the openvpn-gui to meet the build system... patch is pending.
Quoted 35 lines
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 ./buildBuilding a Windows 64bit binary on Linux 64bit worked:
$ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 \ CBUILD=x86_64-pc-linux-gnu ./buildI 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 [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Quoted 8 lines
2012/4/13 Samuli Seppänen <[email protected]...>:
Quoted 5 lines
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 don't understand what you mean... please explain what is "include"...?
Hi,
It means I could not find "build" or "build.vars" from official openvpn.git. Are those not needed for cross-compilation?
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock
2012/4/17 Samuli Seppänen <[email protected]...>:
Quoted 4 lines
Quoted 4 lines
2012/4/13 Samuli Seppänen <[email protected]...>:
Quoted 2 lines
Hi all,
Quoted 9 lines
Quoted 4 lines
Quoted 3 lines
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 don't understand what you mean... please explain what is "include"...?
Hi,
It means I could not find "build" or "build.vars" from official openvpn.git. Are those not needed for cross-compilation?
There is some confusion.... :)
We have two separate projects:
openvpn - standard open source project, autotool based build system, like any other project its build system only builds it-self.
openvpn-build - a separate project to build openvpn in various of configurations. This project is divided into the following components:
- generic - a generic build using cross compiler, included the complete dependencies.
- msvc - a MSVC build using Microsoft specific msbuild system, I hope this will die eventually.
- windows-nsis - the windows installer generator, it uses the generic component to build using mingw cross compiler, then package the output using nsis.
The separation between these project is healthy as a change in openssl version due to security issue at windows installer should not modify openvpn version, same for a change in windows installer, or tap version or any other change that is not directly related to openvpn code base.
It also allows a separate maintainer to maintain these various of build environments.
Does it answer your question?
Alon
Quoted 16 lines
2012/4/17 Samuli Seppänen <[email protected]...>:
Quoted 12 lines
Quoted 7 lines
2012/4/13 Samuli Seppänen <[email protected]...>:
Quoted 5 lines
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 don't understand what you mean... please explain what is "include"...?
Hi,
It means I could not find "build" or "build.vars" from official openvpn.git. Are those not needed for cross-compilation?
There is some confusion.... :)
Quoted 7 lines
We have two separate projects:
openvpn - standard open source project, autotool based build system, like any other project its build system only builds it-self.
openvpn-build - a separate project to build openvpn in various of configurations. This project is divided into the following components:
I thought this might be the case, was not sure where the line was drawn.
Quoted 5 lines
- generic - a generic build using cross compiler, included the complete dependencies.
- msvc - a MSVC build using Microsoft specific msbuild system, I hope this will die eventually.
Amen to that :).
Quoted 10 lines
- windows-nsis - the windows installer generator, it uses the generic component to build using mingw cross compiler, then package the output using nsis.
The separation between these project is healthy as a change in openssl version due to security issue at windows installer should not modify openvpn version, same for a change in windows installer, or tap version or any other change that is not directly related to openvpn code base.
Quoted 6 lines
It also allows a separate maintainer to maintain these various of build environments.
Does it answer your question?
Alon
Yes, thanks!
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock