BDS2006和Zeos安装 [英] BDS2006 and Zeos installation

查看:144
本文介绍了BDS2006和Zeos安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在BDS2006上针对Delphi和C ++角色安装了Zeos 6.6稳定版.

I recently installed Zeos 6.6 stable on BDS2006 for both the Delphi and C++ personalities.

为此,由于Zeos是用Delphi编写的,因此我在构建软件包时选中了"生成所有C ++ Builder文件".

In order to do so, and since Zeos is written in Delp I checked the "Generate all C++ Builder files" when building the packages.

我发现的问题是,并非所有必需的.DCU 都是在构建不同软件包的过程中生成的.最后,我首先通过仅为Delphi构建(完美运行),然后为Delphi和C ++进行重构来解决此问题.

The problem I found was that, somehow, not all necessary .DCUs were generated during the building of the different packages. I finally worked around it by first building only for Delphi (which worked flawlessly) and then rebuilding for both Delphi and C++.

现在,我不确定这是否是一个bug(在 Quality Central 或Google),也只会影响BDS2006或其他IDE.所以,问题是:谁能告诉我什么可能会导致编译不会,以建立所有.DCU当生成所有C ++ Builder的文件"被选中,但这样做的时候不是

Now, I am not sure if this is a bug at all (did not find anything similar in Quality Central or Google) or it affects only BDS2006 or other IDEs too. So, question is: anyone can tell me what could cause the compiler not to build all the .DCU when "Generate all C++ Builder files" is checked, but do it when not?

提前致以最诚挚的问候

推荐答案

这是我在 Zeos中撰写的文章的摘录论坛有关我如何解决此问题的信息.希望对别人有帮助.

This is an extract of an article I wrote in the Zeos forums regarding how I solved this problem. Hope it helps someone else.

  • 注意:这可能适用于BDS2005,RAD2007和其他IDE版本.我没有安装它,所以无法测试.

  • NOTE: this may apply or not for BDS2005, RAD2007 and other IDE versions. I can not test it since I have none installed.

免责声明:这些步骤可能不是最准确或最有效的步骤.请随时评论您发现的任何错误或问题,我将更新该帖子.

DISCLAIMER: these steps may not be the most accurate or efficient ones. Please feel free to comment any error or problem you can find and I will update the post.

通过以下步骤,我成功为Delphi和C ++角色安装了Zeos:

With the following steps I managed to install Zeos for both Delphi and C++ personalities:

  1. 摆脱以前的Zeos安装.其中包括您可以找到的任何Zeos .BPL,.DCU和.LIB.
  2. 将Zeos提取到您的选举目录中.
  3. 打开BDS2006,选择Delphi10的软件包并编译所有软件包.这样,我们将拥有所有.DCU.由于某些原因,并非所有的人都能在步骤6中正确创建(请参见下文).
  4. 关闭BDS2006.在步骤5之前执行此操作非常重要.
  5. 按照 Delphi中的指示删除注册表项程序包未在C ++中出现
  6. 打开BDS2006.再次打开Delphi10的软件包组.对于所有软件包,请转至选项"->链接器",然后选择生成所有C ++ Builder文件".再次编译它们.如果它抱怨{$ ENDIF;},则将其删除.如果在编译Component.bpl或ComponentDesign.bpl时,编译器抱怨某些.DCU,则应通过添加来解决 Build目录(所有软件包都内置于其中)到软件包的Search路径.
  7. 安装componentDesign.bpl
  8. 针对C ++和Delphi角色,在Tools-Option中为BDS添加必要的路径:
    • packages \ delphi10//一些标头在这里
    • packages \ delphi10 \ build//一些.dcu
    • src \ component
    • src \ core
    • src \ dbc
    • src \ parsesql
    • src \ plain
  1. Get rid of any prior Zeos installations. That includes any Zeos .BPL, .DCU and .LIB you can find.
  2. Extract Zeos to the directory of your election.
  3. Open BDS2006, select the package for Delphi10 and compile all packages. This way we will have all .DCUs. For some reason not all of them get created correctly in step 6 (see below).
  4. Close BDS2006. It is very important to do this before step 5.
  5. Delete the registry keys as indicated in Delphi packages not appearing in C++
  6. Open BDS2006. Open again the package group for Delphi10. For all the packages go to Options->Linker and select "Generate all C++ Builder Files". Compile them all again. If it complains regarding an {$ENDIF;} just delete it. If when compiling Component.bpl or ComponentDesign.bpl, the compiler complains about some .DCU it should be solved by adding the Build directory (where all packages get built into) to the Search path of the package.
  7. Install componentDesign.bpl
  8. Add the necessary paths to BDS in Tools-Option, both for C++ and Delphi personalities:
    • packages\delphi10 // some headers here
    • packages\delphi10\build // some .dcu
    • src\component
    • src\core
    • src\dbc
    • src\parsesql
    • src\plain

仅需提供信息,您在第5步中需要的键如下:

Just for info the keys you need in step 5 are following:

  • 键:HKEY_CURRENT_USER \ Software \ Borland \ BDS \ 5.0 \ Known Packages.使用[path] \ MyPackage.bpl查找条目并将其删除.
  • 键:HKEY_CURRENT_USER \ Software \ Borland \ BDS \ 5.0 \ Package Cache. 查找名为MyPackage.bpl的密钥,然后删除整个子密钥.
  • 键:HKEY_CURRENT_USER \ Software \ Borland \ BDS \ 5.0 \ Palette \ Cache.查找名为MyPackage.bpl的项,然后删除整个子项. BDS中存在一个错误,该错误会在编译时影响程序包.有关更多信息,请参见提到的博客.
  • Key: HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known Packages. Look for the entry with [path]\MyPackage.bpl and remove it.
  • Key: HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Package Cache. Look for the key called MyPackage.bpl and remove the entire sub-key.
  • Key: HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Palette\Cache. Look for the key called MyPackage.bpl and remove the entire sub-key. There is a bug in the BDS that affects packages when compiled. See the mentioned blog for more info.

您应该已经安装了Zeos并可以同时使用Delphi和C ++.

You should have Zeos installed and working for both Delphi and C++ now.

注意:在C ++中进行编译时,可能会出现错误,因为它找不到某些.h.通常,可以通过将#include更改为.hpp来解决此问题.

NOTE: when compiling in C++ it may give you an error because it can not find some .h. Usually this gets solved by changing the #include to .hpp.

这篇关于BDS2006和Zeos安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆