Never-build package 'a' requires always-build package 'b'

简介: Delphi 出现Never-build package 'a' requires always-build package 'b'错误的解决方法:1、原理:两个BPL包,如果A包requires B包,那么A包与B包的Build Control 必须一致,或者A包为Rebuild as needed(Always-build),B包为Explicit rebuild(Never-build)。

Delphi 出现Never-build package 'a' requires always-build package 'b'错误的解决方法:

1、原理:

两个BPL包,如果A包requires B包,那么A包与B包的Build Control 必须一致,或者A包为Rebuild as needed(Always-build),B包为Explicit rebuild(Never-build)。原因是:如果A包为Explicit rebuild,B包为Rebuild as needed,就是说A包是很稳定的,不需要编译,但A包requires的B包却是常变的,要经常编译的。那么,当B包改变的时候,理应要更新,而A包是Explicit rebuild,所以A包还是不编译,那么造成A包的内容是旧的,最终造成包的更新失败,如果,当应用程序调用A包的时候,就出错了。所以在A包requires B包的情况下,不允许出现“A包为Explicit rebuild,B包为Rebuild as needed”这种组合。Delphi就提示Never-build package 'a' requires always-build package 'b'这个Error了。

2、解决方法:

要把两个包的 Project-> Option 里的 Description 面板里的 Build Control设在一致,一般情况下是 Rebuild as needed

相关文章
|
8月前
[cmake] --- find_package
[cmake] --- find_package
167 0
No package ‘libpeas-1.0‘ found/No package ‘libpeas-gtk-1.0‘
No package ‘libpeas-1.0‘ found/No package ‘libpeas-gtk-1.0‘
67 0
No package ‘glib-2.0‘ found/No package ‘gobject-2.0‘ found
No package ‘glib-2.0‘ found/No package ‘gobject-2.0‘ found
222 0
libcanberra development package not found
libcanberra development package not found
77 0
No package ‘gobject-introspection-1.0‘ found
No package ‘gobject-introspection-1.0‘ found
295 0
No package ‘dconf‘ found
No package ‘dconf‘ found
123 0
No package ‘vte-2.91‘ found
No package ‘vte-2.91‘ found
88 0
No package ‘libmatekbd‘ found
No package ‘libmatekbd‘ found
75 0
No package ‘polkit-gobject-1‘ found
No package ‘polkit-gobject-1‘ found
116 0
Package ffnvcodec was not found in the pkg-config search path
Package ffnvcodec was not found in the pkg-config search path
181 0

热门文章

最新文章

下一篇
开通oss服务