Author Archive

Setup GTest on Visual Studio 2010

Posted: November 21, 2012 in open source

Found this source from http://stackoverflow.com/questions/531941/how-to-setup-google-c-testing-framework-gtest-on-visual-studio-2005.

It was very useful to try.

Get Google C++ Testing Framework

  1. Download the latest gtest framework
  2. Unzip to C:\gtest

Build the Framework Libraries

  1. Open C:\gtest\msvc\gtest.sln in Visual Studio
  2. Set Configuration to “Debug”
  3. Build Solution

Create and Configure Your Test Project

  1. Create a new solution and choose the template Visual C++ > Win32 > Win32 Console Application
  2. Right click the newly created project and choose Properties
  3. Change Configuration to Debug.
  4. Configuration Properties > C/C++ > General > Additional Include Directories: AddC:\gtest\include
  5. Configuration Properties > C/C++ > Code Generation > Runtime Library: If your code links to a runtime DLL, choose Multi-threaded Debug DLL (/MDd). If not, choose Multi-threaded Debug (/MTd).
  6. Configuration Properties > Linker > General > Additional Library Directories: AddC:\gtest\msvc\gtest\Debug
  7. Configuration Properties > Linker > Input > Additional Dependencies: Add gtestd.lib

 

Am I on a right track?

Posted: October 29, 2012 in open source

When I chose to bug fix using c++ I thought it’s something sounds familiar and I can do well on that. But later I realized I have no idea, that where I have to start from, what I have to do..

Well one of my class mate is also doing same so I have asked him that what we can do about it…. Well seems like he knows at least where to start.

He suggested me to built the webkit first. So I cloned the webkit., yes it took more than 1 hour to download to my mac. Then built it without using “–debug” accidentally. So delete the work and started from scratch again. Took another 1:30 hours to download the webkit and tis time built it using debug mode. Got successful message.

I suppose to release R0.2 by today. But I have no idea… To be honest with you, I don’t even know what to ask from others to get help…. Hope someone can help me to put me on right track.