[英]strip - file format not recognized with Qt creator on Release but not Debug
Using qmake on Qt creator在 Qt 创建者上使用 qmake
I want to add some parameters and data files to the build directory, so I added this to my pro
file我想将一些参数和数据文件添加到构建目录中,所以我将其添加到我的
pro
文件中
wordlists.path = $$OUT_PWD/WordLists
wordlists.files += $$PWD/WordLists/*
INSTALLS += \
wordlists
and added a make install
step at the end of the build steps.并在构建步骤的末尾添加了一个
make install
步骤。
On debug, this works perfectly and the WordLists
folder, which is in the source folder, is copied to the build folder.在调试时,这可以完美运行,并且源文件夹中的
WordLists
文件夹被复制到构建文件夹中。
On release, it also works.在发布时,它也有效。 But when compiling, I get 4 warning
Makefile:2124:install_wordlists] Error 1 (ignored)
, on for each files in the folder to be copied.但是在编译时,对于要复制的文件夹中的每个文件,我收到 4 个警告
Makefile:2124:install_wordlists] Error 1 (ignored)
。
The output of the compiler shows编译器的 output 显示
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)
While these message apparently don't disturb the good behavior of the make, I am still puzzled by their meaning and why it only appends on release.虽然这些信息显然不会影响品牌的良好行为,但我仍然对它们的含义以及为什么它只在发布时附加感到困惑。 They could also mean that I do thing fundamentally wrong...
他们也可能意味着我做的事情根本上是错误的......
Solution found rather quickly...很快就找到了解决方案...
Due to an error of mine, the files in WordLists
where executable.由于我的错误,
WordLists
中的文件是可执行的。 I removed the +x
flag and the warning is gone.我删除了
+x
标志,警告消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.