Actions
Howtos - Hack on Windows » History » Revision 61
« Previous |
Revision 61/102
(diff)
| Next »
Greg Burri, 04/18/2011 06:11 PM
Howtos - Hack on Windows Seven¶
You need to:
- Install Tortoise Git : http://code.google.com/p/tortoisegit/.
- Kind of SSH Client : TortoisePLink
- Install msysgit (needed by Tortoise Git) : http://code.google.com/p/msysgit/.
- Use Unix style end line.
- Do not install in "Program files" or in a path which contains spaces. We recommend to install in
C:\git
.
- If you want an access to the master repository : generate a RSA 2048 bit with Puttygen (come with tortoisegit) and send it to a project manager.
- Install Qt SDK (Qt creator is included) : http://get.qt.nokia.com/qtsdk/qt-sdk-win-opensource-2010.02.1.exe .
- Add
C:\Qt\2010.02.1\mingw\bin;C:\Qt\2010.02.1\qt\bin
to your path environment variable. - Install proto buff library source
- Download the source zip here (2.4.0a) : http://code.google.com/p/protobuf/downloads/list and unzip in
C:\protobuf
- Edit
<Qt dir>\mingw\lib\gcc\mingw32\4.4.0\libstdc++.la
and replacelibrary_names='libstdc++.dll.a'
bylibrary_names='libstdc++.a'
- 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 dll libprotobuf-7.dll.
- Download the source zip here (2.4.0a) : http://code.google.com/p/protobuf/downloads/list and unzip in
- 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 sources for the .proto files
- Launch "Git bash" and go to
d-lan/application
- Type
./1.generate_proto_cpp.sh
(each time you modify the .proto files you have to run this script)
- Launch "Git bash" and go to
- 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 in the Run Settings tab of the Core project. - You can now compile and run the two projects.
Updated by Greg Burri over 13 years ago · 61 revisions