delphiinstallationpackagec++builderzeos

BDS2006 and Zeos installation


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

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

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++.

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?

Thanks in advance and best regards


Solution

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

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

    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

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

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

    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.