如何在Qt(MinGW)中使用bullseye?

发布于 2025-01-02 05:57:50 字数 533 浏览 0 评论 0原文

我在 Qt 中有一个项目,它由一组项目组成。项目是通过 MinGW 构建的,它不会创建任何 .cov 文件。 它仍然不会创建 *.con 文件,

C:\Program Files\BullseyeCoverage\bin;%PATH%

我安装了 bullseye 并启用了覆盖构建,但如果我尝试设置路径变量(例如构建不断失败),

gcc: CreateProcess: No such file or directory

我总是得到构建整个项目的文件如下:

    d:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\qmake.exe Simulator.pro -r -spec win32-g++ "CONFIG+=release"
PATH=D:\QtSDK\mingw\bin\;%PATH%
D:\QtSDK\mingw\bin\mingw32-make -f ./Makefile 

如何测量代码覆盖率?请帮忙。

I have a project in Qt which consists of the set of projects. Projects is building via MinGW and it does not create any .cov file.
I installed bullseye and enabled coverage build but it still does not create *.con file if I try to set path variable like

C:\Program Files\BullseyeCoverage\bin;%PATH%

the build is constantly failing I always get

gcc: CreateProcess: No such file or directory

The file to build whole project is following :

    d:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\qmake.exe Simulator.pro -r -spec win32-g++ "CONFIG+=release"
PATH=D:\QtSDK\mingw\bin\;%PATH%
D:\QtSDK\mingw\bin\mingw32-make -f ./Makefile 

How can I measure code coverage? Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

李白 2025-01-09 05:57:50

如果有人对这个问题感兴趣 - 我已经弄清楚了。
这是一个解决方案 -
要在 gcc 编译器之前设置牛眼拦截器,只需替换变量

QMAKE_CC = %Bullseye gcc path%
QMAKE_CXX = %Bullseye g++ path%

此变量应在 *.pro 文件或 gcc 配置文件中定义,该文件位于

%QTSDKPath%\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++\ // if you are using gcc from win32

您还需要设置环境变量:

BULLSEYE_PATH=%PATH TO REAL COMPILER%

If somebody interested in this question - I already figured it out.
Here is a solution -
To set bullseye interceptors before your gcc compiler just replace variables

QMAKE_CC = %Bullseye gcc path%
QMAKE_CXX = %Bullseye g++ path%

This variable should be defined in *.pro file or in gcc config file, which is located in

%QTSDKPath%\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++\ // if you are using gcc from win32

You also need to set environment variable:

BULLSEYE_PATH=%PATH TO REAL COMPILER%
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文