Actions
  Howtos - Hack on Windows » History » Revision 48
      « Previous |
    Revision 48/102
      (diff)
      | Next »
    
    Greg Burri, 01/26/2011 02:54 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\binto your path environment variable. - Install proto buff library source
	
- Download the source zip here (2.4) : http://code.google.com/p/protobuf/downloads/list and unzip in 
C:\protobuf - Edit 
<Qt dir>\mingw\lib\gcc\mingw32\4.4.0\libstdc++.laand replacelibrary_names='libstdc++.dll.a'bylibrary_names='libstdc++.a' - Launch "Git Bash" and go to 
/c/protobufthen type :export MAKE=mingw32-make./configure CXXFLAGS=-O2 --enable-shared=nomingw32-make
 - Add to your path this directory : 
C:\protobuf\src\.libsto reach executable protoc and dll libprotobuf-7.dll. 
 - Download the source zip here (2.4) : http://code.google.com/p/protobuf/downloads/list and unzip in 
 - Git clone the repository : 
	
- git://dev.aybabtu.org/aybabtu.git if you just want clone the repository.
 - ssh://git@dev.aybabtu.org/aybabtu.git if you have a full access (read+write).
 
 - Generate the sources for the .proto files
	
- Launch "Git bash" and go to 
aybabtu/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
	
- TODO
 
 
Generate the documentation¶
The code documentation is generated with Doxygen. You must also install Graphviz to enable the diagram generation.
A daily generated documentation can be found here : http://doc.aybabtu.org (errors).
To locally build the documentation you just have to install Doxygen and Graphviz. The configuration file is located here : source:/doc/doxygen/Doxyfile it can be opened by the graphic utility Doxywizard or by the command line doygen Doxyfile. The documentation will be generated in /doc/doxygen/html.
Profiling¶
Windows¶
- Open a "Git Bash" command line (should be in the start menu).
 - Go in 
aybabtu/application - Type 
./2.compile_all_components.sh --prof --clean, 'clean' is only necessary if the previous release compilation wasn't with the option '--prof'. - Go in 
aybabtu/application/Core/output/releasefor the Core oraybabtu/application/GUI/output/releasefor the GUI. - Launch the Core 
AybabtuCore.exe -e - Do the operations you want to measure.
 - Type 'quit' to stop the Core. A file called 'gmon.out' should be created in the current folder.
 - Type 
gprof AybabtuCore.exe > prof.txt. To generate a readable file. The file name can be anything you want, choose it wisely. - Open 'prof.txt' with a text editor.
 
Updated by Greg Burri almost 15 years ago · 102 revisions