[IGSTK-Developers] gcov with Cygwin
Patrick Cheng
cheng at isis.georgetown.edu
Tue Sep 13 16:13:45 EDT 2005
Yea, I have those flags.
Luis Ibanez wrote:
>
> Hi Patrick
>
> Did you added the following compilation flags ?
>
>
> CMAKE_CXX_FLAGS:STRING=-Wall -g -O0 -fprofile-arcs -ftest-coverage
> CMAKE_C_FLAGS:STRING=-Wall -g -O0 -fprofile-arcs -ftest-coverage
>
>
> gcov can only analyze code that has been compiled
> with this options.
>
>
>
> Luis
>
>
> ----------------------------
> Patrick Cheng wrote:
>
>> Hi everyone,
>>
>> I found that under Cygwin system, the DartConfiguration.tcl genarated
>> by the ctest program does not have the "CoverageCommand:
>> /usr/bin/gcov" line compare to that of the linux system, even if you
>> have set the
>> COVERAGE_COMMAND:INTERNAL=/usr/bin/gcov
>> in the build script.
>>
>> I guess that's why the Cygwin machine is submitting the coverage
>> results to the dashboard.
>>
>> Anyone knows how to solve this?
>>
>> Patrick
>>
>>
>> ==========segment from linux====================
>> ConfigureCommand: "/usr/bin/cmake"
>> "/cygdrive/c/Patrick/Sandbox/Sandbox-Cygwin"
>> CMakeCommand: /usr/bin/cmake
>> MakeCommand: /usr/bin/make -i
>> CVSCommand: /usr/bin/cvs.exe
>> TclshCommand: /usr/bin/tclsh
>> JavaCommand: JAVACOMMAND-NOTFOUND
>> ScpCommand: /usr/bin/scp
>> PurifyCommand:
>> ValgrindCommand:
>> ValgrindCommandOptions:
>> # Compression commands
>> GunzipCommand: /usr/bin/gunzip
>> CompressionCommand: /usr/bin/gzip
>> CompressionType: /usr/bin/gzip
>>
>> ==========segment from cygwin====================
>> ConfigureCommand: "/usr/local/bin/cmake" "/home/patrick/Sandbox/Sandbox"
>> CMakeCommand: /usr/local/bin/cmake
>> MakeCommand: /usr/bin/make -i
>> CVSCommand: /usr/bin/cvs
>> ScpCommand: /usr/bin/scp
>> PurifyCommand:
>> ValgrindCommand:
>> ValgrindCommandOptions:
>> CoverageCommand: /usr/bin/gcov <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> # Compression commands
>> GunzipCommand: /usr/bin/gunzip
>> CompressionCommand: /usr/bin/gzip
>> CompressionType: /usr/bin/gzip
>>
>>
>
>
>
--
Peng (Patrick) Cheng
Research Engineer
cheng at isis.georgetown.edu
Imaging Science and Information Systems (ISIS) Center
Department of Radiology, Georgetown University Medical Center
2115 Wisconsin Avenue, Suite 603
Washington, DC, 20007
Work phone: 202-687-2902
Work fax: 202-784-3479
Cell phone: 202-674-5626
More information about the IGSTK-Developers
mailing list