Howtos - Hack on Windows » History » Revision 94
Revision 93 (Greg Burri, 04/04/2020 09:48 AM) → Revision 94/102 (Greg Burri, 04/04/2020 09:58 AM)
h1. Howtos - Hack on Windows 7, 8 and 10 You need to: # Install _Git for Windows_ (needed by _Tortoise Git_) : https://gitforwindows.org/. ## Do not install in "Program files" or in a path which contains spaces. We recommend to install in @C:\git@. # Install _Tortoise Git_ : http://code.google.com/p/tortoisegit/. # Install _Qt_ and _Qt Creator_ from https://www.qt.io/download-qt-installer # Install Win-Builds MinGW from @http://win-builds.org/doku.php/download_and_installation_from_windows@ : @https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/@ ## Check: _Native Windows_ Mark for installation _mingw32-gcc-g++_ and _x86_64_ _msys-base-bin_ ## # Add path paths to MinGW bin: @C:\<winbuilds>\bin@ @C:\MinGW\bin@ to your _path_ environment variable. # Install proto buff library source ## Download and uncompress the latest release from : https://github.com/protocolbuffers/protobuf/releases (for example: @protobuf-cpp-3.11.4.zip@) ## Rename the directory to @protobuf@ ## Launch "Git Bash" and go to @/c/protobuf@ then type : ### @export MAKE=mingw32-make@ ### @./configure CXXFLAGS=-O2 --enable-shared=no@ ### @mingw32-make@ ## Add to your path these directories : @C:\protobuf\src\;C:\protobuf\src\.libs@ to reach executable _protoc_ and library _libprotobuf.a_. # Git clone the repository : ## _git://github.com/Ummon/D-LAN.git_ if you just want clone the repository (read-only). ## _git@github.com:Ummon/D-LAN.git_ if you have a full access (read+write). # Generate the C++ code from the Protocol Buffer files (only for version 1.1) ## Open a Bash command line, you can use the shortcut "Git Bash" installed with git ## Go to the directory "D-LAN/application" ## Run the shell script file @1.generate_protos_cpp@ to generate the _.h_ and _.cc_ files in the directory _Protos_. # Set up _Qt Creator_ ## Launch _Qt Creator_ ## Open the projects @d-lan/application/GUI.pro@ and @d-lan/application/Core.pro@ ## For both projects: ### Uncheck _Shadow build_ in the _Build Settings_ tab. ### Add the argument @debug -f Makefile-Core@ to _Make_ for the build configuration _Debug_ and @release -f Makefile-Core@ for the build configuration _Release_. Replace _'Core'_ by _'GUI'_ for the _GUI_ project. ## Add @-e@ as an argument and check[1] @Run in terminal@ in the _Run Settings_ tab of the _Core_ project. ## You can now compile and run the two projects. fn1. Without this option the Core cannot be launched in debug mode (stderr cannot be used).