Actions
Howtos - Hack on Windows » History » Revision 98
« Previous |
Revision 98/102
(diff)
| Next »
Greg Burri, 04/04/2020 01:36 PM
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 protobuf 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.
- Download and uncompress the latest release from : https://github.com/protocolbuffers/protobuf/releases (for example:
- 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
andd-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 andrelease -f Makefile-Core
for the build configuration Release. Replace 'Core' by 'GUI' for the GUI project.
- Add
-e
as an argument and check1Run in terminal
in 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 4 years ago · 98 revisions