Actions
  Howtos - Hack on Windows » History » Revision 96
      « Previous |
    Revision 96/102
      (diff)
      | Next »
    
    Greg Burri, 04/04/2020 10:09 AM 
    
    
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. 
 - Do not install in "Program files" or in a path which contains spaces. We recommend to install in 
 - 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 bin: C:\Qt\Tools\mingw730_64\bin to your path environment variable.
 
 - Install proto buff library source
	
- Download AutoMake, un-compress and add the bin directory to your path.
 - 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/protobufthen type :export MAKE=mingw32-make./configure CXXFLAGS=-O2 --enable-shared=nomingw32-make
 - Add to your path these directories : 
C:\protobuf\src\;C:\protobuf\src\.libsto 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_cppto generate the .h and .cc files in the directory Protos. 
 - Set up Qt Creator
	
- Launch Qt Creator
 - Open the projects 
d-lan/application/GUI.proandd-lan/application/Core.pro - For both projects:
	
- Uncheck Shadow build in the Build Settings tab.
 - Add the argument 
debug -f Makefile-Coreto Make for the build configuration Debug andrelease -f Makefile-Corefor the build configuration Release. Replace 'Core' by 'GUI' for the GUI project. 
 - Add 
-eas an argument and check1Run in terminalin the Run Settings tab of the Core project. - You can now compile and run the two projects.
 
 
1 Without this option the Core cannot be launched in debug mode (stderr cannot be used).
Updated by Greg Burri over 5 years ago · 102 revisions