条带文件格式在发布时无法与Qt创建者识别,但无法调试



在Qt创建者上使用qmake

我想将一些参数和数据文件添加到构建目录中,所以我将其添加到我的pro文件中

wordlists.path = $$OUT_PWD/WordLists
wordlists.files += $$PWD/WordLists/*
INSTALLS += 
wordlists

并且在构建步骤的末尾添加了CCD_ 2步骤。

在调试时,这非常有效,并且源文件夹中的WordLists文件夹被复制到构建文件夹中。

一旦发布,它也会起作用。但在编译时,对于要复制的文件夹中的每个文件,我都会收到4个警告Makefile:2124:install_wordlists] Error 1 (ignored)

编译器的输出显示

strip: /path/to/my/release/folder/WordLists/List1.xml: file format not recognized
make: [Makefile:2124: install_wordlists] Error 1 (ignored)
strip: /path/to/my/release/folder/WordLists/List2.xml: file format not recognized
make: [Makefile:2126: install_wordlists] Error 1 (ignored)
strip: /path/to/my/release/folder/WordLists/List3.xml: file format not recognized
make: [Makefile:2128: install_wordlists] Error 1 (ignored)
strip: /path/to/my/release/folder/WordLists/Parametres.xml: file format not recognized
make: [Makefile:2130: install_wordlists] Error 1 (ignored)

虽然这些信息显然没有干扰制作的良好行为,但我仍然对它们的含义以及为什么它只在发布时附加感到困惑。他们也可能意味着我做了根本错误的事情。。。

很快就找到了解决方案。。。

由于我的一个错误,WordLists中的文件是可执行的。我删除了+x标志,警告就消失了。

最新更新