Python build script for building OpenVPN on Windows

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
eeinfalt
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 30, 2011 8:05 pm

Python build script for building OpenVPN on Windows

Post by eeinfalt » Fri Dec 30, 2011 1:32 am

We wish to use TAP drivers named something other than "tap0901" and, as I understand things, this requires rebuilding OpenVPN with changes specified in comments found in the OemWin2k.inf file to have a build of OpenVPN that references the renamed TAP drivers. I have attempted to build OpenVPN (v2.2.1 and v2.2.2) for Windows (client) using the Python based build script and I get the following errors:

C:\openvpn-build\openvpn-2.2.2\win>python build_all.py --unsigned
Doing an unsigned build as requested
Traceback (most recent call last):
File "build_all.py", line 69, in <module>
main(config)
File "build_all.py", line 51, in main
config_all(config)
File "C:\openvpn-build\openvpn-2.2.2\win\config_all.py", line 8, in main
config_ti(config)
File "C:\openvpn-build\openvpn-2.2.2\win\config_ti.py", line 8, in main
shutil.copytree(src, dest)
File "C:\Python27\lib\shutil.py", line 174, in copytree
os.makedirs(dst)
File "C:\Python27\lib\os.py", line 157, in makedirs
mkdir(name, mode)[/code]
WindowsError: [Error 5] Access is denied: 'C:\\openvpn-build\\openvpn-2.2.2\\tapinstall'

If I execute the script again, it completes the build without this error but when our Windows client attempts to create a VPN connection, the connection process hangs at the get_config stage. However, our Windows client successfully connects when using the TAP0901 drivers extracted from the OpenVPN installer (using 7zip). What is happening? Are there special steps required when invoking the Windows DDK to build the TAP drivers in this case?

Post Reply