Howtos - Hack on Windows » History » Revision 92
Revision 91 (Greg Burri, 04/04/2020 09:16 AM) → Revision 92/102 (Greg Burri, 04/04/2020 09:19 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 ## Check the latest version of MinGW 64 bits during installation # Add paths to MinGW and Qt bin: @C:\Qt\Tools\mingw730_64\bin@ and @todo..@ 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).