Windows building error
I'm trying to build openvpn on windows with mingw but having trouble. I tried building both openvpn 2.1.4 and 2.2.2 from source without changing configuration, just executing domake-win and it builds the exe perfectly. But when i change configurations in makeopenvpn file i cause me the error.
I use the following configuration to guild without crypto and ssl. just lzo.
--enable-strict \ --prefix=$H/windest \ MAN2HTML=true \ --disable-crypto \ --disable-ssl \ --enable-password-save \ --with-lzo-headers=$H/$LZO_DIR/include \ --with-lzo-lib=$H/$LZO_DIR \ --with-pkcs11-helper-headers=$H/$PKCS11_HELPER_DIR/usr/local/include \ --with-pkcs11-helper-lib=$H/$PKCS11_HELPER_DIR/usr/local/lib
but it produce the following error both 2.1.4 and 2.2.2.
LZO headers were not found
LZO libraby available from http:\\'' etc.....etc...
configure: error: Or try ./configure --disable-lzo //I don't wan to disable lzo install-win32/makeopenvpn: line 24:
--with-lzo-headers=/c/mingw/msys/1.0/home/administrator/openvpn-2.1.4/../lzo-2.02/inlcude:
No such file or directory
i have the lzo libs in the directory and was able to complete it without disabling crypto and ssl. But when i disable SSL and crypto it doesn't seem to find the lzo libs.
then i tried disabling lzo in openvpn 2.2.2 and it created the exe file without cryto and ssl but not what i want since i need lzo. Problem with openvpn 2.1.4 is even with lzo features disabled it still gives me error
options.c: In fuction 'parse_http_proxy_fallback':
options.c:1474:33: error: dereferencing pointer to incomplete type options.c:1477:4: error: dereferencing pointer to incomplete type options.c:1478:4: error: dereferencing pointer to incomplete type
I don't even know what parse_http_proxy_fallback got to do with SSL and CRYTO. any one knows what i'm doing wrong except from the fact that i disabled ssl?
Hi,
Quoted 5 lines · jay alco
I'm trying to build openvpn on windows with mingw but having trouble. I tried building both openvpn 2.1.4 and 2.2.2 from source without changing configuration, just executing domake-win and it builds the exe perfectly. But when i change configurations in makeopenvpn file i cause me the error.
2.3_alpha2 contains a completely rewritten build system, which eases building windows binary enormously (cross-build on linux using mingw64).
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...A message that is not in the archive (sent off-list or not yet received): [email protected]...
Hi,
Quoted 3 lines · jay alco
As much as i like to try 2.3_alpha2 i have no idea how to build it on windowns using mingw since i'm just starting with unix commands. how do i build it using mingw both for linux server and windows client?
You build on Linux.
Building on Windows is the way to insanity.
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...A message that is not in the archive (sent off-list or not yet received): [email protected]...
Hi,
Quoted 2 lines · jay alco
XD.. My work station is windows. Anyway. Is there any refference i can use to cross build 2.3alpha2?
Samuli has instructions on http://community.openvpn.net/
(Incidentially there are also instructions how to build older versions, but you *really* do not want that)
gert
Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]...
fax: +49-89-35655025 [email protected]...Hi Jay,
Quoted 19 lines
I'm trying to build openvpn on windows with mingw but having trouble. I tried building both openvpn 2.1.4 and 2.2.2 from source without changing configuration, just executing domake-win and it builds the exe perfectly. But when i change configurations in makeopenvpn file i cause me the error.
I use the following configuration to guild without crypto and ssl. just lzo.
--enable-strict \ --prefix=$H/windest \ MAN2HTML=true \ --disable-crypto \ --disable-ssl \ --enable-password-save \ --with-lzo-headers=$H/$LZO_DIR/include \ --with-lzo-lib=$H/$LZO_DIR \ --with-pkcs11-helper-headers=$H/$PKCS11_HELPER_DIR/usr/local/include \ --with-pkcs11-helper-lib=$H/$PKCS11_HELPER_DIR/usr/local/lib
Quoted 1 line
but it produce the following error both 2.1.4 and 2.2.2.
Trust me, trying to build 2.1.4 for Windows is (as Gert said) a way to insanity. If you really have to use a s.c. "stable" version of OpenVPN, I suggest 2.2.2 which at least has a more or less complete Python-based buildsystem which is documented here:
<https://community.openvpn.net/openvpn/wiki/BuildingOnWindows>
However, I'd recommend taking the just released openvpn-2.3-alpha3 and using the new "openvpn-build" buildsystem to build it:
<https://github.com/OpenVPN/openvpn-build>
<https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem>
If you want to try building on a Windows using Microsoft Visual Studio 2010 or later, "openvpn-build" has a separate "msvc" buildsystem for that purpose. The "generic" buildsystem, which is a cross-compile buildsystem for *NIX environments, is more well tested, and works very nicely. Ubuntu 12.04 64-bit is a good build platform, provided you install backported mingw-w64 packages:
<https://community.openvpn.net/openvpn/wiki/InstallingMingwW64>
Hope this helps,
Signature · 5 lines
Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock