Actions
Howtos - Hack on Windows » History » Revision 80
« Previous |
Revision 80/102
(diff)
| Next »
Greg Burri, 05/25/2012 12:19 AM
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/.
- 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
- 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 4.8.x from http://qt.nokia.com/downloads/windows-cpp
- Install Qt Creator from http://qt.nokia.com/downloads/qt-creator-binary-for-windows
- Install the latest version of MinGW from http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/. GCC version 4.6.x or superior is required.
- Add
<path to mingw>\mingw\bin;<path to qt>\bin
to your path environment variable. - Optional: It's now possible to recompile all Qt, see the section Custom Qt compilation below.
- Install proto buff library source
- Download the source zip here (2.4.x) : http://code.google.com/p/protobuf/downloads/list and unzip in
C:\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 the source zip here (2.4.x) : 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 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).
Custom Qt compilation¶
Goals¶
- Add the support of C++11, it can improve a bit the performances, see http://labs.qt.nokia.com/2011/05/26/cpp0x-in-qt/ for more information.
- Recompile Qt with a more recent version of GCC. Qt binaries are released compiled with GCC 4.4.
- Remove unused components and reduce the size of DLL files.
Steps¶
- Add
QMAKE_CXXFLAGS += -std=gnu++0x
at the end of the filemkspecs/win32-g++-4.6/qmake.conf
- Configure Qt with the following command
./configure.exe -ltcg -opensource -debug-and-release -platform win32-g++-4.6 -nomake demos -nomake examples -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-qt3support -no-opengl -no-accessibility -no-native-gestures
- The compile with the command
mingw32-make
Updated by Greg Burri over 12 years ago · 80 revisions