Skip to contentSkip to conversation

Help: build openvpn from source on windows

Openvpn-devel Juping Jin 2 participants 3 messages Jan 11, 2010 – Jan 12, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): mailman.291693.1263182482.5856.openvpn-devel@lists.sourceforge.net

Juping Jin

author
#1 lore raw

I tried to build openvpn on Windows from its source code and encountered a few problems:

1. Incorrect defines at autodefs/defs.h, line 51-52:
#define PRODUCT_TAP_DEVICE_DESCRIPTION TAP-Win32 Adapter V9 #define PRODUCT_TAP_PROVIDER TAP-Win32 Provider V9

They are supposed to be:

#define PRODUCT_TAP_DEVICE_DESCRIPTION "TAP-Win32 Adapter V9" #define PRODUCT_TAP_PROVIDER "TAP-Win32 Provider V9"

How is defs.h created at the first place?

2. I could not find tapinstall source code in the source achieve. Where can I download it?

3. install-win32/maketap: line 42 doesn't work. The line is:

cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd perl install-win32/dosname.pl $t && build -cef"

it's supposed to issue "build -cef" command in tap-win32 folder after setting environment. However, the cd command doesn't work (I could not get it work even with hard-coded value). As a result, build -cef will compile all source code under DDK/src folder, not the tap driver. Manually build the driver works (ie. Run setenv and then do build -cef).

Thanks for your help!

Juping

#2 lore raw

I use my own build to build this [1].

The OpenVPN project should have long ago separate between a some components for ease of use:

1. OpenVPN
2. OpenVPN Windows Service Wrapper
3. OpenVPN TAP driver
4. OpenVPN Windows Installer
5. Easy-RSA

This would have enable users to build specific component without the other, or changing the installer without releasing a new version of core product.

[1] http://www.opensc-project.org/build

Quoted 45 lines · Juping Jin

I tried to build openvpn on Windows from its source code and encountered a few problems:

1. Incorrect defines at autodefs/defs.h, line 51-52:
#define PRODUCT_TAP_DEVICE_DESCRIPTION TAP-Win32 Adapter V9 #define PRODUCT_TAP_PROVIDER TAP-Win32 Provider V9

They are supposed to be:

#define PRODUCT_TAP_DEVICE_DESCRIPTION "TAP-Win32 Adapter V9" #define PRODUCT_TAP_PROVIDER "TAP-Win32 Provider V9"

How is defs.h created at the first place?

2. I could not find tapinstall source code in the source achieve. Where can I download it?

3. install-win32/maketap: line 42 doesn't work. The line is:

cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd perl install-win32/dosname.pl $t && build -cef"

it's supposed to issue "build -cef" command in tap-win32 folder after setting environment. However, the cd command doesn't work (I could not get it work even with hard-coded value). As a result, build -cef will compile all source code under DDK/src folder, not the tap driver. Manually build the driver works (ie. Run setenv and then do build -cef).

Thanks for your help!

Juping

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

author
#3 lore raw

I just realized where the problem is for issue #3 in my original email:

The following command has no effect if openvpn source code is not on the same drive as where WDK is installed (which is my case):

cd perl install-win32/dosname.pl $t

On window's world, it needs to switch to particular drive first (E: in my case), and then change to the specified folder.

One possible solution is to have another perl script to return drive letter (say, dosdrive.pl):

perl install-win32/dosdrive.pl $t && cd perl install-win32/dosname.pl $t

The rest of the command line will be the same.

I will have not found tapinstall source code. Could someone point me to right place?
Thanks.

Juping

-----Original Message-----
From: Alon Bar-Lev [mailto:[email protected]...]
Sent: Monday, January 11, 2010 1:06 PM
To: Juping Jin
Cc: [email protected]
Subject: Re: [Openvpn-devel] Help: build openvpn from source on windows

I use my own build to build this [1].

The OpenVPN project should have long ago separate between a some components for ease of use:

1. OpenVPN
2. OpenVPN Windows Service Wrapper
3. OpenVPN TAP driver
4. OpenVPN Windows Installer
5. Easy-RSA

This would have enable users to build specific component without the other, or changing the installer without releasing a new version of core product.

[1] http://www.opensc-project.org/build

Quoted 8 lines · Juping Jin

I tried to build openvpn on Windows from its source code and encountered a few problems:

1. Incorrect defines at autodefs/defs.h, line 51-52:
#define PRODUCT_TAP_DEVICE_DESCRIPTION TAP-Win32 Adapter V9 #define PRODUCT_TAP_PROVIDER TAP-Win32 Provider V9

Quoted 8 lines

They are supposed to be:

#define PRODUCT_TAP_DEVICE_DESCRIPTION "TAP-Win32 Adapter V9" #define PRODUCT_TAP_PROVIDER "TAP-Win32 Provider V9"

How is defs.h created at the first place?

2. I could not find tapinstall source code in the source achieve. Where

can

Quoted 11 lines

I download it?

3. install-win32/maketap: line 42 doesn't work. The line is:

cmd //c "C:\\WINDDK\\$DDKVER\\bin\\setenv.bat C:\\WINDDK\\$DDKVER $mode && cd perl install-win32/dosname.pl $t && build -cef"

it's supposed to issue "build -cef" command in tap-win32 folder after setting environment. However, the cd command doesn't work (I could not get it work even with hard-coded value). As a result, build -cef will compile all source code under DDK/src folder, not the tap driver. Manually build

the

Quoted 8 lines

driver works (ie. Run setenv and then do build -cef).

Thanks for your help!

Juping

----------------------------------------------------------------------------
--

Quoted 3 lines

This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and

easy

Quoted 7 lines

Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel