Skip to contentSkip to conversation

MSVC build tests on Git "master"

Openvpn-devel Samuli Seppänen 2 participants 6 messages Apr 13, 2012 – Apr 19, 2012

lore
Share & tools
lore
#0 lore raw

Hi all,

I did a number of MSVC build tests using Visual Studio 2010 Express. I tried both Git "master"[1] and Alon's openvpn-build repo[2].

I encountered a number of issues with [1]. First, unlike in [2], dependency fetching is not automatic - not sure if that's intentional, but it is/was a really nice feature. Due to this, "master"[1] did not build at all[3] without copying the build dependencies to a directory manually, and adding a "msvc-build-env-local.bat" to point the build to those:

set OPENVPN_DEPROOT=c:\Users\Samuli\openvpn-build\build-deps-alon set OPENSSL_HOME=%OPENVPN_DEPROOT%\openssl-1.0.0g
set LZO_HOME=%OPENVPN_DEPROOT%\lzo-2.06
set PKCS11H_HOME=%OPENVPN_DEPROOT%\pkcs11-helper-1.10 set TAP_WINDOWS_HOME=%OPENVPN_DEPROOT%\tap-windows-9.9

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

Samuli

[1] <git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn.git>
[2] <https://github.com/alonbl/openvpn-build.git>
[3] <http://pastie.org/3780063>
[4] <http://pastie.org/3780024>

#1 lore raw

Hello Samuli,

I was out, reducing my backlog.

2012/4/13 Samuli Seppänen <[email protected]...>

Quoted 8 lines

Hi all,

I did a number of MSVC build tests using Visual Studio 2010 Express. I tried both Git "master"[1] and Alon's openvpn-build repo[2].

I encountered a number of issues with [1]. First, unlike in [2], dependency fetching is not automatic - not sure if that's intentional,

Sure, this is intentional.
The openvpn repository builds openvpn using autotools or vc, there is no difference between the two, both do not build dependencies.

Quoted 4 lines

but it is/was a really nice feature. Due to this, "master"[1] did not build at all[3] without copying the build dependencies to a directory manually, and adding a "msvc-build-env-local.bat" to point the build to those:

Master can be built using correct environment... use first the openvpn-build/msvc to build dependencies only using set DO_ONLY_DEPS=1

Quoted 1 line

set OPENVPN_DEPROOT=c:\Users\Samuli\openvpn-build\build-deps-alon

This should be sufficient... the default location of the dependencies would be:
c:\Users\Samuli\openvpn-build\image

Quoted 4 lines

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

I don't quite understand who you tried to build this... manually or using the openvpn-build/msvc.
If you try to build manually, please send me the exact commands you used.

Quoted 7 lines

Samuli

[1]  <git://openvpn.git.sourceforge.net/gitroot/openvpn/openvpn.git>
[2] <https://github.com/alonbl/openvpn-build.git>
[3] <http://pastie.org/3780063>
[4] <http://pastie.org/3780024>

Thanks!
Alon.

#2 lore raw

Hi Alon,

Quoted 8 lines
Quoted 5 lines

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

I don't quite understand who you tried to build this... manually or using the openvpn-build/msvc.
If you try to build manually, please send me the exact commands you used.

I used the "msvc-build.bat" (renamed "build.bat" from Git "master") with no parameters.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#3 lore raw

2012/4/17 Samuli Seppänen <[email protected]...>

Quoted 7 lines

Hi Alon,

Quoted 5 lines
Quoted 5 lines

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

Quoted 6 lines
Quoted 4 lines

I don't quite understand who you tried to build this... manually or using the openvpn-build/msvc.
If you try to build manually, please send me the exact commands you used.

I used the "msvc-build.bat" (renamed "build.bat" from Git "master") with no parameters.

Hmmm.... I still don't follow, sorry.

What is renamed? I see that in git master we have msvc-build.bat.... Or you mean you used this one, which is OK.
But then probably the dependencies setup are wrong.

Please first try to complete build from the openvpn-build project[1].

Use:

Quoted 2 lines

cd msvc
build

If that's working, then it will be easy to trace problems in your environment. If that's not working, it will be easy to trace differences from my environment.

Thanks!

[1] https://github.com/alonbl/openvpn-build

#4 lore raw

2012/4/17 Alon Bar-Lev <[email protected]...>:

Quoted 27 lines

2012/4/17 Samuli Seppänen <[email protected]...>

Quoted 7 lines

Hi Alon,

Quoted 5 lines
Quoted 5 lines

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

Quoted 6 lines
Quoted 4 lines

I don't quite understand who you tried to build this... manually or using the openvpn-build/msvc.
If you try to build manually, please send me the exact commands you used.

I used the "msvc-build.bat" (renamed "build.bat" from Git "master") with no parameters.

Hmmm.... I still don't follow, sorry.

What is renamed? I see that in git master we have msvc-build.bat.... Or you mean you used this one, which is OK.
But then probably the dependencies setup are wrong.

Please first try to complete build from the openvpn-build project[1].

Use:

Quoted 2 lines

cd msvc
build

Quoted 6 lines

If that's working, then it will be easy to trace problems in your environment. If that's not working, it will be easy to trace differences from my environment.

Thanks!

[1] https://github.com/alonbl/openvpn-build

Just tried that again in my VM, and it builds successfully using the openvpn-build/msvc.
So once you have results for this, I will try to figure out how to help.

Alon.

#5 lore raw
Quoted 28 lines

2012/4/17 Alon Bar-Lev <[email protected]...>:

Quoted 26 lines

2012/4/17 Samuli Seppänen <[email protected]...>

Quoted 11 lines

Hi Alon,

Quoted 8 lines
Quoted 4 lines

This allowed the build to proceed, but then I got tons of errors. Those seem to be caused by Visual Studio 2010 peculiarities; see [4] for a partial log. The full error log is 1396k in size - If you need it just let me know.

I don't quite understand who you tried to build this... manually or using the openvpn-build/msvc.
If you try to build manually, please send me the exact commands you used.

I used the "msvc-build.bat" (renamed "build.bat" from Git "master") with no parameters.

Hmmm.... I still don't follow, sorry.

What is renamed? I see that in git master we have msvc-build.bat.... Or you mean you used this one, which is OK.
But then probably the dependencies setup are wrong.

Please first try to complete build from the openvpn-build project[1].

Use:

Quoted 2 lines

cd msvc
build

If that's working, then it will be easy to trace problems in your environment. If that's not working, it will be easy to trace differences from my environment.

Quoted 8 lines
Quoted 3 lines

Thanks!

[1] https://github.com/alonbl/openvpn-build

Just tried that again in my VM, and it builds successfully using the openvpn-build/msvc.
So once you have results for this, I will try to figure out how to help.

Alon.

I'll look into this again later, maybe during the weekend.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock