<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to DevelopmentEnvironment</title><link>https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/</link><description>Recent changes to DevelopmentEnvironment</description><atom:link href="https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 14 Aug 2012 17:40:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage DevelopmentEnvironment modified by Christoph Schwarz</title><link>https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -37,6 +37,7 @@
     * add environment variable &lt;tt&gt;MINGW64_ROOT&lt;/tt&gt; pointing to that directory
     * add &lt;tt&gt;%MINGW64_ROOT%\\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;, before &lt;tt&gt;%MINGW_ROOT%\\bin&lt;/tt&gt;
     * with this tool chain you can create both 32 and 64 bit binaries, so you can build Valgrind in those two bitnesses from the same configuration
+
 or
 
 1. (obsolete) [MinGW64](http://mingw-w64.sourceforge.net/) -- download latest 64 bit tool chain from [Automated Builds](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/), e.g. &lt;tt&gt;mingw-w64-bin_i686-mingw_20110827.zip&lt;/tt&gt; (gcc 4.7.0)
@@ -56,7 +57,7 @@
 7. Pop up appears asking for installation of an SVN Connector. Install latest 1.3.x SVNKit (1.3.7) (Eclipse restarts)
 8. Uncheck "Project / Build Automatically"
 9. Open Perspective "SVN Repository Exploring"
-10. Add "New" / "Repository Location..." &lt;tt&gt;svn+ssh://svn.code.sf.net/p/valgrind4win/code/trunk&lt;/tt&gt;
+10. Add "New" / "Repository Location..." &lt;tt&gt;svn://svn.code.sf.net/p/valgrind4win/code&lt;/tt&gt; (or if you are a developer with write access: &lt;tt&gt;svn+ssh://svn.code.sf.net/p/valgrind4win/code&lt;/tt&gt;)
 11. Check out "trunk"
 12. Switch to "C/C++" perspective
 13. Select desired configuration under "Project" / "Build Configurations" / "Set Active"
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Schwarz</dc:creator><pubDate>Tue, 14 Aug 2012 17:40:10 -0000</pubDate><guid>https://sourceforge.net0aa02cacd19c663db87972fe1e867b43729d13b8</guid></item><item><title>WikiPage DevelopmentEnvironment modified by Christoph Schwarz</title><link>https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,3 @@
-
 ## How to set up the development environment ##
 
 Current development environment consists of:
@@ -6,6 +5,7 @@
 * Eclipse Juno
 * MinGW 20120426 (gcc 4.6.2)
 * TDM-GCC 4.6.1
+* Windows SDK for Windows 7 and .NET Framework 4
 
 ### Required ###
 Valgrind for Windows uses the MinGW build environment. You need to download and install MinGW and the Microsoft Debugging Tools for Windows.
@@ -16,12 +16,14 @@
     * MSYS Basic System
     * MinGW Developer Toolkit
     * add environment variable &lt;tt&gt;MINGW_ROOT&lt;/tt&gt; pointing to the directory where you installed MinGW
-    * add &lt;tt&gt;%MINGW_ROOT%\bin;%MINGW_ROOT%\msys\1.0\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;
-2. Debugging Tools for Windows from [The Windows SDK](http://msdn.microsoft.com/en-us/windows/hardware/gg463009) -- choose either:
+    * add &lt;tt&gt;%MINGW_ROOT%\\bin;%MINGW_ROOT%\\msys\\1.0\\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;
+2. Debugging Tools for Windows and MSVC from the [Windows SDK for Windows 7 and .NET Framework 4](http://msdn.microsoft.com/en-us/windows/hardware/gg463009) -- choose either:
     * [Net Installer](http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=8279)
     * [ISO Image](http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=8442)
-    * Install at least: &lt;tt&gt;Common Utilities / Debugging Tools For Windows&lt;/tt&gt;
-    * add environment variable &lt;tt&gt;DBGTOOLS_ROOT&lt;/tt&gt; pointing to the directory where you installed the debugging tools
+    * Install at least: &lt;tt&gt;Windows Native Code Development&lt;/tt&gt; and &lt;tt&gt;Common Utilities / Debugging Tools for Windows&lt;/tt&gt;
+    * add environment variable &lt;tt&gt;DBGTOOLS_ROOT&lt;/tt&gt; pointing to the directory where you installed the debugging tools (e.g. &lt;tt&gt;C:\\Program Files\\Debugging Tools for Windows (x64)&lt;/tt&gt;)
+    * add environment variable &lt;tt&gt;WINSDK_ROOT&lt;/tt&gt; pointing to the directory where you installed the Windows SDK (e.g. &lt;tt&gt;C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1&lt;/tt&gt;)
+    * add environment variable &lt;tt&gt;VC_ROOT&lt;/tt&gt; pointing to the directory where you installed the Visual C++ compilers (e.g. &lt;tt&gt;C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC&lt;/tt&gt;)
     * create directory &lt;tt&gt;%MINGW_ROOT%\\msys\\1.0\\opt\\windbg&lt;/tt&gt;
     * add debugging tools path in 8.3 format as &lt;tt&gt;/opt/windbg&lt;/tt&gt; in MinGW's fstab file &lt;tt&gt;%MINGW_ROOT%\\msys\\1.0\\etc\\fstab&lt;/tt&gt;
     * entry in fstab might look like this: &lt;tt&gt;C:\\PROGRA~1\\DEBUGG~1 /opt/windbg&lt;/tt&gt;
@@ -51,7 +53,7 @@
 4. Select: "Work with : &lt;tt&gt;&lt;Eclipse Version Name&gt;&lt;/tt&gt;"
 5. Install: "Collaboration / Subversive SVN Team Provider (Incubation)" (Eclipse restarts)
 6. Open Perspective "SVN Repository Exploring"
-7. Pop up appears asking for installation of an SVN Connector. Install latest SVNKit (1.7.x) (Eclipse restarts)
+7. Pop up appears asking for installation of an SVN Connector. Install latest 1.3.x SVNKit (1.3.7) (Eclipse restarts)
 8. Uncheck "Project / Build Automatically"
 9. Open Perspective "SVN Repository Exploring"
 10. Add "New" / "Repository Location..." &lt;tt&gt;svn+ssh://svn.code.sf.net/p/valgrind4win/code/trunk&lt;/tt&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Schwarz</dc:creator><pubDate>Tue, 31 Jul 2012 20:39:14 -0000</pubDate><guid>https://sourceforge.net32b9793865faaff5e59f97f31c3cf8ff2a8768da</guid></item><item><title>WikiPage DevelopmentEnvironment modified by Christoph Schwarz</title><link>https://sourceforge.net/p/valgrind4win/wiki/DevelopmentEnvironment/</link><description>
## How to set up the development environment ##

Current development environment consists of:

* Eclipse Juno
* MinGW 20120426 (gcc 4.6.2)
* TDM-GCC 4.6.1

### Required ###
Valgrind for Windows uses the MinGW build environment. You need to download and install MinGW and the Microsoft Debugging Tools for Windows.

1. [MinGW](http://www.mingw.org/) -- download the latest [Automated MinGW installer](http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/)
    * Install:
    * MinGW Compiler Suite / C Compiler (gcc 4.6.2)
    * MSYS Basic System
    * MinGW Developer Toolkit
    * add environment variable &lt;tt&gt;MINGW_ROOT&lt;/tt&gt; pointing to the directory where you installed MinGW
    * add &lt;tt&gt;%MINGW_ROOT%\bin;%MINGW_ROOT%\msys\1.0\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;
2. Debugging Tools for Windows from [The Windows SDK](http://msdn.microsoft.com/en-us/windows/hardware/gg463009) -- choose either:
    * [Net Installer](http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=8279)
    * [ISO Image](http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=8442)
    * Install at least: &lt;tt&gt;Common Utilities / Debugging Tools For Windows&lt;/tt&gt;
    * add environment variable &lt;tt&gt;DBGTOOLS_ROOT&lt;/tt&gt; pointing to the directory where you installed the debugging tools
    * create directory &lt;tt&gt;%MINGW_ROOT%\\msys\\1.0\\opt\\windbg&lt;/tt&gt;
    * add debugging tools path in 8.3 format as &lt;tt&gt;/opt/windbg&lt;/tt&gt; in MinGW's fstab file &lt;tt&gt;%MINGW_ROOT%\\msys\\1.0\\etc\\fstab&lt;/tt&gt;
    * entry in fstab might look like this: &lt;tt&gt;C:\\PROGRA~1\\DEBUGG~1 /opt/windbg&lt;/tt&gt;
    * recommended: add environment variable &lt;tt&gt;_NT_SYMBOL_PATH=SRV*%TEMP%\\SymbolCache\*\http://msdl.microsoft.com/download/symbols&lt;/tt&gt;

### Optional ###
If you want to build Valgrind for 64 bit Windows, download and install a 64 bit tool chain, either:

1. (recommended) [TDM-GCC](http://tdm-gcc.tdragon.net/) -- download tdm64-gcc-4.6.1 installer from [SourceForge](https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/), e.g. &lt;tt&gt;tdm64-gcc-4.6.1.exe&lt;/tt&gt; (gcc 4.6.1)
    * unpack to a directory of your choice, e.g. &lt;tt&gt;C:\\MinGW64&lt;/tt&gt;
    * add environment variable &lt;tt&gt;MINGW64_ROOT&lt;/tt&gt; pointing to that directory
    * add &lt;tt&gt;%MINGW64_ROOT%\\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;, before &lt;tt&gt;%MINGW_ROOT%\\bin&lt;/tt&gt;
    * with this tool chain you can create both 32 and 64 bit binaries, so you can build Valgrind in those two bitnesses from the same configuration
or

1. (obsolete) [MinGW64](http://mingw-w64.sourceforge.net/) -- download latest 64 bit tool chain from [Automated Builds](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/), e.g. &lt;tt&gt;mingw-w64-bin_i686-mingw_20110827.zip&lt;/tt&gt; (gcc 4.7.0)
    * unpack to a directory of your choice, e.g. &lt;tt&gt;C:\\MinGW64&lt;/tt&gt;
    * add environment variable &lt;tt&gt;MINGW64_ROOT&lt;/tt&gt; pointing to that directory
    * add &lt;tt&gt;%MINGW64_ROOT%\\bin&lt;/tt&gt; to the &lt;tt&gt;PATH&lt;/tt&gt;
    * with this tool chain you can only create 64 bit binaries, so you can either build 32 bit or 64 bit Valgrind (but not both), from the same configuration

The project comes with a Eclipse CDT project definition, so you can use the Eclipse IDE if you like. To do so:

1. optional: create environment variable &lt;tt&gt;VG4WIN_MAKEOPTS&lt;/tt&gt; containing additional options to make. If you have a multi-core machine you probably want to enable parallel builds, e.g. &lt;tt&gt;VG4WIN_MAKEOPTS=-j4&lt;/tt&gt;
2. Install [Eclipse IDE for C/C++ developers](http://www.eclipse.org/downloads/) (the version stated above)
3. Start Eclipse, open "Help / Install new Software"
4. Select: "Work with : &lt;tt&gt;&lt;Eclipse Version Name&gt;&lt;/tt&gt;"
5. Install: "Collaboration / Subversive SVN Team Provider (Incubation)" (Eclipse restarts)
6. Open Perspective "SVN Repository Exploring"
7. Pop up appears asking for installation of an SVN Connector. Install latest SVNKit (1.7.x) (Eclipse restarts)
8. Uncheck "Project / Build Automatically"
9. Open Perspective "SVN Repository Exploring"
10. Add "New" / "Repository Location..." &lt;tt&gt;svn+ssh://svn.code.sf.net/p/valgrind4win/code/trunk&lt;/tt&gt;
11. Check out "trunk"
12. Switch to "C/C++" perspective
13. Select desired configuration under "Project" / "Build Configurations" / "Set Active"
    * only 32 bit: "build32-all"
    * only 64 bit: "build64-all"
    * 32 and 64 bit: "build32+64-all" (TDM-GCC required)
14. Select "Project" / "Build Project"
    * Eclipse will build Valgrind for Windows by running &lt;tt&gt;./autogen.sh&lt;/tt&gt;, &lt;tt&gt;./configure&lt;/tt&gt; and &lt;tt&gt;make&lt;/tt&gt;

### How to build and run Valgrind for Windows from a command prompt ###
1. Check out the source code
2. Open a Windows command prompt (cmd.exe)
3. cd to the source code directory
4. run: &lt;tt&gt;sh ./autogen.sh&lt;/tt&gt;
5. configure either for the 32 bit or 64 bit version
    * only 32 bit: run: &lt;tt&gt;sh ./configure&lt;/tt&gt;
    * only 64 bit: run: &lt;tt&gt;sh ./configure --host x86_64-w64-mingw32 --enable-only64bit&lt;/tt&gt;
    * 32 and 64 bit: run: &lt;tt&gt;sh ./configure --host x86_64-w64-mingw32&lt;/tt&gt; (TDM-GCC required)
6. build the source by running: &lt;tt&gt;make&lt;/tt&gt;
7. build tests by running: &lt;tt&gt;make check&lt;/tt&gt;
8. run valgrind using: &lt;tt&gt;set VALGRIND_LIB=.in_place&lt;/tt&gt; and then: &lt;tt&gt;coregrind\valgrind.exe&lt;/tt&gt;
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Schwarz</dc:creator><pubDate>Thu, 12 Jul 2012 23:40:56 -0000</pubDate><guid>https://sourceforge.net7718a78dafca52f1cd06a60763272f156e13670f</guid></item></channel></rss>