Page 2 of 3

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 24.09.2019, 19:01
by mac_srv
Hi MetaMetal,
An error occurred in 10.3.2 Rio.
Very strange warnings before a not so much descriptive error message. I don't have a virtual machine with C++Builder 10.3 yet, so it will have to wait a little more.

Just in case, how did you setup in C++Builder 10.3.2 the environment paths for ZeosDBO (ZEOSDBO and Path in "Tools > Options" menu)?
Win64 fails to build on both 10.2.3 Tokyo and 10.3.2 Rio.
Yeap, this was expected. See in this thread the response to Jan in 01.08.2018. I really tried hard to understand why this error happens just with Win64 and dynamic linking package ZParsesql with ZCore.
If you find any solution, please let me know. I'm thinking to recreate these packages from zero just to give a new try to solve this problem with WIn64 platform.
I may not be able to contribute anything, but I can test it.
Your tests help a lot. Thanks.

Regards,

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 25.09.2019, 19:12
by mac_srv
Hi MetaMetal,

No luck here with Win64 target yet, even with packages created from scratch.

But, finally, it seems is not my fault: https://forums.embarcadero.com/message. ... eID=651274

I'll just try this comment, that is different from what I've done until now:
Workaround was adding Win64 library file "Test1.a" to Test2.cbproj (Add file to project)
Plan B
Maybe this article would point out a Plan B: https://www.tmssoftware.com/site/comp32_64.asp
I'm considering that we do not have to install Delphi CE in order to compile ZeosDBO.

I've tested here, a pc just with C++Builder 10.2.3, and it seems to work with the original Delphi Packages, doing something like this:

Code: Select all

cd <path to ZeosLib\packages\DelphiXE10.2>
MSBUILD /p:platform=Win64 ZCore.DPROJ
MSBUILD /p:platform=Win64 ZPlain.DPROJ
MSBUILD /p:platform=Win64 ZParseSql.DPROJ
MSBUILD /p:platform=Win64 ZDbc.DPROJ
MSBUILD /p:platform=Win64 ZComponent.DPROJ
Problems with this Plan B:
  1. Delphi original packages are not configured to generate C++ files.
  2. Up to DelphiXE10.1 some *.dpk files has {IFDEF} macros that do not generate all HPP files. They change these *.dpk files in DelphiXE10.2 and up.
  3. Delphi original packages are not configured to use path automation, but we can collect all the generated files.
I think it would be factible to change *.dproj files in order to set C++ generation files and eliminate the {IFDEF} macros.

Regards,

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 25.09.2019, 21:21
by mac_srv
Success!!!

(I think!? :shock: )

With C++Builder 10.2.3 and Win34 platform, we need to add "Dynamic library import files (*.a)" in Package's Contains list !!!

IDE will include <LibFiles Include=something.a> nodes in cbproj files. It is like what we usually do with .lib files when got ilinker32 errors.

Now packages are working with Win64. Test App with Zeos also working as a 64bit application.

I'll continue here, make a cleanup, recheck every thing an try to share with you new packages soon.

Marcelo

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 27.09.2019, 15:06
by mac_srv
Hi Jan

Here is the new set of packages, tested with ZeosDBO version 7.2.6 (revision 5971):
  • Delphi2006 (generates CBuilder files)
  • CBuilder2009
  • CBuilderXE2
  • CBuilderXE10.2 (Win32 and Win64)
I've created manuals per IDE, since the general one was getting confused.

I hope this packages help other C++Builder developers.

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 29.09.2019, 14:57
by marsupilami
Hello Marcelo, I assume, the Delphi 2006 directory is really meant to be used with C++ Builder 2006?

Best regards,

Jan

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 30.09.2019, 13:35
by mac_srv
Hi Jan,

With BDS 2006, we can use Delphi2006 packages to install into Delphi or C++Builder personalities.

These are Delphi packages indeed, but I've configured them to generate C++Builder files.

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 01.10.2019, 17:08
by MetaMetal
Hello Marcelo,
Thank you for your reply.

I tried to build with a combination of 7.2.4-stable and ZeosDBO-CBuilder-NewPackages.zip.
On 10.3.2 Rio

Both Win32 and Win64 were successfully built!!
(Windows32bit and Windows64bit are properly displayed in the component)

I tested it with a simple project.

Win32
No problem.
There was no problem with setting "Link using runtime package" to true or false.

Win64
There was a problem.

Code: Select all

[bcc64 fatal error] ZDataset.hpp(19): 'ZAbstractTable.hpp' file not found
When checked, AbstractTable.hpp and ZDataset.hpp are not present on Win64.

When copying from Win32 (there may be a problem), A link error occurs because ZAbstractTable.o and ZDataset.o do not exist.


I think it ’s pretty good.
Please do your best as it is a little more! :loveit:
I appreciate it very much.

Thanks.

MetaMetal

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 01.10.2019, 19:15
by mac_srv
Hi MetaMetal,

Here these HPP files exist when testing Win64 with Zeos 7.2.4 (from SourceForge download) and 7.2.6 (from SVN, revision 5971).

I think your path to "\Include" directory might be wrong under 64 bit Windows options.

Could you check them using the Manual instructions (step 2.e for 64 bit Windows)?

Also,
Both Win32 and Win64 were successfully built!!
(Windows32bit and Windows64bit are properly displayed in the component)
Remember that you just compile ZComponentDesign for Win32 platform and, therefore, install it once, since the IDE is a Win32 application.

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 03.10.2019, 20:36
by mac_srv
Hi Jan,

I've made a fix for CBuilder2009 packages. The new ones are attached (just CBuilder2009 folder).

Sorry about any rework.

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 16.10.2019, 10:59
by MetaMetal
Hello Marcelo,
Sorry for the late reply.

The environment of C++ Builder 10.3.2 has crashed.
Now rebuild and test.

Thanks.

MetaMetal

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 16.10.2019, 14:48
by MetaMetal
Win64 support does not work.
I'm building according to the manual, but Windows64bit doesn't appear on the supported platforms.
(Building is no problem)
It seems to be a lie that was made before.

The package\CBuilderXE10.2\Win64\Release\Include folder is empty.
(If i are building, there are hpp files properly or empty)

Do you have any tips?
I used 7.2.6 from SVN.

Thanks.

MetaMetal

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 17.10.2019, 13:01
by marsupilami
Hello MetaMetal,

The 7.2.6 branch from the SVN doesn't (yet) come with the new packages from Marcelo. You will have to download them separately.

Best regards,

Jan

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 21.10.2019, 17:03
by marsupilami
Hello Marcelo,

I am in the process of integrating your packages. In the Delphi 2006 Package there once was a "PostBuildCleanup.bat" and now there is a "MyPostBuildCleanup.bat" and also a "MyMoveSrcHppToInclude.bat". Can I rename these files to remove the My-Prefix or does that involve other changes too?

Best regards,

Jan

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 21.10.2019, 19:22
by mac_srv
Hi Jan,

Sure, rename them with better names. They are used offline (IDE), so the Delphi2006 packages will not complain.

The "MyXXX" convention was not intentional. :D

Best,

Marcelo.

Re: Packages for C++Builder 10.2 Tokyo and beyond

Posted: 21.10.2019, 20:13
by mac_srv
Hi MetaMetal,
Win64 support does not work.
I'm building according to the manual, but Windows64bit doesn't appear on the supported platforms.
Could you share an image about this? Maybe 64bits platform was not reinstalled (just guessing).

The package\CBuilderXE10.2\Win64\Release\Include folder is empty.
(If i are building, there are hpp files properly or empty)
Please, into CBuilder 10.3, with ZCore package, share an image of your "Delphi Compiler > Output C/C++" options.

Here is mine as example (CBuilder 10.2.3):

Image

Regards,

Marcelo.