Compiling UrBackup Client for Windows
Prerequisites
- Microsoft Visual Studio C++ 2015 (An Express edition should do)
- wxWidgets (From http://www.wxwidgets.org/ - Needs to be compiled; Alternatively you can get it from the Git repository http://buildserver.urbackup.org/git/urbackup_deps)
- libcURL ( From http://curl.haxx.se/ - You can use a precompiled version)
- crypto++ ( From http://www.cryptopp.com/ - Needs to be compiled)
- NSIS Unicode ( From http://www.scratchpaper.com/ ). With plugins nsExec, SimpleSC, nsisFirewallW, KillProcDLL, startplugin (http://blog.urbackup.org/category/nsis)
- WiX (http://wixtoolset.org/), if you want to create MSI-Installers. Should be in your path
- Git should be in your path
Get the code
Get the code from the git repositories. First getĀ https://github.com/uroni/urbackup_backend , then putĀ https://github.com/uroni/urbackup_frontend_wx into a subdirectory named client. Alternatively you can run the batch script checkout_client.bat
Adjusting Include/Library paths
You have to manually adjust the include paths by changing environment variables if you put the files somewhere else. For example it expects the cURL include files in CurlIncludeDir.
The easier option is to checkout the git repository http://buildserver.urbackup.org/git/urbackup_deps into a deps folder. update_deps.bat does that for you.
Building
If you installed Visual Studio and NSIS into the default paths the build_client.bat script may work and build you a client installer. Otherwise you will have to adjust paths in this build script.