> 2012/2/24 Samuli Seppänen <sam...@openvpn.net>:
>> Hi Alon,
>>
>> I tried building OpenVPN using the "Visual Studio Complete Batch" method:
>>
>> $ cd msvc
>> $ build
>>
>> All went fine until OpenVPN build itself. The error message is here:
>>
>> <http://pastebin.com/2uJM4n3y>
> Oh... you used the tarball and I forgot to distribute the compat.vcproj.
> Now it should be OK.
Hi Alon,

Actually, I cloned the "openvpn-build" Git repository and copied the
directories from there on top OpenVPN sources (yours and official). That
said, I tried the tarball, too:

<https://github.com/downloads/alonbl/openvpn/openvpn-2.3-alpha1.tar.gz>

I documented the basic process (compile from tarball) here:

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

I had some issues getting it to find openssl, lzo and pkcs11-helper
include files. As a stop-gap solution I modified msvc-env.bat's last
lines to look like this:

set OPENVPN_DEPROOT=C:\Users\Samuli\openvpn-build
set OPENSSL_HOME="%OPENVPN_DEPROOT%\openssl"
set LZO_HOME="%OPENVPN_DEPROOT%\lzo"
set PKCS11H_HOME="%OPENVPN_DEPROOT%\pkcs11-helper"

That layout is the same I used for the Python-based buildsystem. After
this change OpenVPN built just fine, but it eventually failed due to not
finding pkcs11-helper libs. That's fixable, I just didn't have time to
do it right now. I'll continue tests later today or on Monday.

Personally I won't miss any MSVC builds (pick your flavour) if we decide
to get rid of them ;).

Samuli

Reply via email to