简体   繁体   English

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

[英]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.

相关问题 QT Creator:无法添加OpenCV dll lib(“文件格式无法识别”) - QT Creator: OpenCV dll lib can not be added (“File format not recognized”) 使用qmake / Qt Creator链接调试/发布库 - Linking with a debug/release lib with qmake/Qt Creator 在 Qt Creator 中构建错误,但在调试中没有 - Build error in Qt Creator in release but not in debug Qt Creator - 无法使用调试器:program.exe不是可执行格式:文件格式无法识别 - Qt Creator - Can't use debugger: program.exe not in executable format: File format not recognized 如何检测Qt Creator的目标(调试/发布)(Visual Studio) - How to detect Qt Creator's target (debug/release) (Visual Studio) Qt Creator:在调试和发布模式下类模板的不同行为 - Qt Creator: different behavior of class template in Debug and Release modes Qt Creator:单元测试:是否有可能有四种构建代码的方法(调试,发布,调试|发布和测试) - Qt Creator: unit-test: is it possible to have four ways of building a code (debug, release, debug|release and Test) QT Creator:程序在调试模式下崩溃,但在发布模式和调试模式下工作,带有基于QThread的程序的断点 - QT Creator : Program crashes in debug mode but working in Release mode and in DEBUG Mode with breakpoints for QThread based program Qt Creator在指定的调试文件夹中创建调试和释放文件夹 - Qt Creator creates both a debug and a release folder inside the designated debug folder Qt Creator。 为什么在编译发行版本时出现关于glut的错误,但没有调试? - Qt Creator. Why do I get an error about glut when compiling release version, but not debug?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM