Results 1 to 2 of 2

Thread: Bullseye Code Coverage for Qt

  1. #1
    Join Date
    Oct 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Exclamation Bullseye Code Coverage for Qt

    Hey I am facing an issue regarding bullseye code coverage with Qt. In my .pro file I am adding the following:

    QMAKE_CC = "\"C:/Program Files (x86)/BullseyeCoverage/bin/cl"\"
    QMAKE_CXX = $$QMAKE_CC
    QMAKE_LINK = "\"C:/Program Files (x86)/BullseyeCoverage/bin/link"\"
    Then Performing below commands: Build Run Run qmake Rebuild

    It is not generating test.cov(coverage) file anywhere in the system.I have added Bullseye path in the system environment path variable. Also, in Bullseye application,I have enabled the option for GNU C/C++ and also clicked on the Coverage Build option in tools.Please help.

  2. #2
    Join Date
    Oct 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Bullseye Code Coverage for Qt

    Issue Solved:

    Instead of adding changes in the .pro file to override the variables in qmake.config(internal QT file), Just make direct changes in Qt file itself.

    QMAKE_CC = "\"C:/Program Files (x86)/BullseyeCoverage/bin/gcc"\"
    QMAKE_LINK_C = $$QMAKE_CC
    QMAKE_CXX = "\"C:/Program Files (x86)/BullseyeCoverage/bin/g++"\"
    QMAKE_LINK = $$QMAKE_CXX

    There are high chances of facing some linking issues if you dont add the above code in the config file of Qt.
    NOTE: This was Qt cross-compilation issue which is now fixed by adding the above code.

Similar Threads

  1. Replies: 0
    Last Post: 16th June 2015, 17:12
  2. Replies: 0
    Last Post: 18th February 2015, 04:39
  3. Replies: 0
    Last Post: 19th August 2014, 17:43
  4. Replies: 0
    Last Post: 17th July 2014, 22:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.