>> . >> Build is here[1] >> >> BEST METHOD - Compile on Linux >> >> This is a generic method, it can cross compile OpenVPN using any >> toolchain to any environment. >> For Windows, make sure you have mingw-w64 toolchain. >> We are using nsis so we can also package files at Linux. >> >> $ cd generic >> $ IMAGEROOT=`pwd`/image-win32 CHOST=i686-w64-mingw32 >> CBUILD=x86_64-pc-linux-gnu ./build >> $ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32 >> CBUILD=x86_64-pc-linux-gnu ./build >>
I used this method to cross-compile for Windows (32-bit and 64-bit) on Ubuntu 11.10 amd64. I replaced the "bin" directory of an existing openvpn-2.3-alpha1 installation with the results on a 32-bit WinXP box and it seemed work ok. Anyways, there was a problem with permissions during build: --- snip --- Fixup libtool files Restore libtool files Copying documents Copying sources Cleaning empty directories x86_64-w64-mingw32-strip: unable to copy file '/home/samuli/opt/openvpn/generic/image -win64/openvpn/lib/engines/gmpeay32.dll'; reason: Permission denied x86_64-w64-mingw32-strip: unable to copy file '/home/samuli/opt/openvpn/generic/image-win64/openvpn/lib/engines/atallaeay32.dll'; reason: Permission denied --- snip --- The offending files had 555 permissions. Changing them manually to 755 and restarting the build from correct phase allowed the build to complete. -- Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock