Cannot recompile Delphi package: Tee928.dpk

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ace
Newbie
Newbie
Posts: 5
Joined: Thu Oct 06, 2022 12:00 am

Cannot recompile Delphi package: Tee928.dpk

Post by Ace » Thu Oct 06, 2022 12:10 pm

Hello everyone,

I just registered as a new user of TeeChart. Before that, I have been using the version that comes with the IDE, so I don't know much about the installation of TeeChart.

I downloaded the latest source files and binaries, do I need to install both?

When I installed the source file program, it was prompted to compile, and it started to execute after I modified the path, but an error occurred:
===============================================
TeeChart Pro
Compilation started: 2022/10/6 18:39:16

Win32 v28 (Delphi 11 and C++Builder 11 Update 2) (C++) ERROR
Tee928
Compiling...
"C:\Program Files (x86)\Embarcadero\Studio\22.0\bin\dcc32.exe" -$D+ -$L+ -$W+ -$O- -$C- -$Y+ -$C+ -$R+ -$Q+ -GD -V -VT -VN -W^ -H -$A8 --no-config -u"C:\Program Files (x86)\Embarcadero\Studio\22.0\Lib\win32\Release" -u"C:\Program Files (x86)\Embarcadero\Studio\22.0\Lib\win32\Release\Indy10" -nsSystem;WinAPI;VCL;System.Win;VCL.Imaging;Data;BDE;Datasnap;XML;VCLTee -LN"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib" -E"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\bin" -N0"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib" -U"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib";"C:\Program Files (x86)\Embarcadero\Studio\22.0\Lib\win32\Debug";"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\VCL" -I"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\VCL" -R"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\VCL" -O"C:\Program Files (x86)\Embarcadero\Studio\22.0\Lib\win32\Debug" -M -DBCB --BCB -CG -JPHNE -JL -NO"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib\Obj" -NH"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Include" -NB"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib\Obj" -LN"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\Lib" "C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\VCL\Tee928.dpk" -LE"C:\Program Files (x86)\Steema Software\Steema TeeChart Pro VCL FMX Source Code 2022.36\Source\..\Compiled\Delphi28.win32\System"

Cannot recompile Delphi package: Tee928.dpk
Embarcadero Delphi for Win32 compiler version 35.0
Copyright (c) 1983,2022 Embarcadero Technologies, Inc.
VCLTee.TeeConst.pas(1014) Error: E1057 Implicit string cast from 'AnsiChar' to 'string'
Tee928.dpk(35) Fatal: F2063 Could not compile used unit 'VCLTee.TeeConst.pas'
EXCEPTION:
Compilation aborted.
--------------------------------------------

Does anyone know where the problem is?

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Yeray » Thu Oct 06, 2022 1:54 pm

Hello,

That's strange. It builds without issues for me:
TeeRecompile_2022-10-06_15-53-44.png
TeeRecompile_2022-10-06_15-53-44.png (49.87 KiB) Viewed 4968 times
Can you try downloading the installer again?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Ace
Newbie
Newbie
Posts: 5
Joined: Thu Oct 06, 2022 12:00 am

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Ace » Thu Oct 06, 2022 11:42 pm

Hi Yeray,

Thanks for the reply.

I still encountered the same error message after re-downloading and installing, my IDE version is RAD Studio 11.2 Patch 1 (28.0.46141.0937).
Attachments
1-2.png
1-2.png (249.96 KiB) Viewed 4958 times
1-1.png
1-1.png (501.72 KiB) Viewed 4958 times

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Yeray » Fri Oct 07, 2022 6:23 am

Hello,

Could you please check if the line 1014 in the "Source\TeeConst.pas" is as follows?

Code: Select all

  TeePolarDegreeSymbol        :='°';
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Ace
Newbie
Newbie
Posts: 5
Joined: Thu Oct 06, 2022 12:00 am

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Ace » Fri Oct 07, 2022 7:23 am

No, in notepad++ it looks like gibberish:
Attachments
TeeConst.png
TeeConst.pas
TeeConst.png (19.32 KiB) Viewed 4944 times
VCLTee.TeeConst.png
VCLTee.TeeConst.pas
VCLTee.TeeConst.png (19.44 KiB) Viewed 4944 times

Ace
Newbie
Newbie
Posts: 5
Joined: Thu Oct 06, 2022 12:00 am

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Ace » Fri Oct 07, 2022 10:29 am

Hi Yeray,

I need your help.

I tried to use hexadecimal characters to represent this gibberish-looking symbol, but I found two symbols in ASCII Code that are very similar to it, Should I choose #B0 or ​​#BA ?
Attachments
ASCII.png
ASCII.png (46.3 KiB) Viewed 4940 times

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Yeray » Fri Oct 07, 2022 1:52 pm

Hello,

It's the degree symbol/sign, B0
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Ace
Newbie
Newbie
Posts: 5
Joined: Thu Oct 06, 2022 12:00 am

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Ace » Fri Oct 07, 2022 4:58 pm

Hi Yeray,

I changed line 1014 to:

Code: Select all

TeePolar Degree Symbol :=#$B0;
Compile again, an error is reported on line 612, it seems that '©' is not correctly recognized.

So I replace it with #$A9:

Code: Select all

TeeMsg_Copyright          :={$IFDEF LCL}'(C)'{$ELSE}#$A9{$ENDIF}+' 1995-2022 by Steema Software';
continue to compile, this time it returns to line 1014 to report an error:

VCLTee.TeeConst.pas(1014) Error: E1057 Implicit string cast from 'AnsiChar' to 'string'.

I don't know where the problem is, so I had to copy and paste the code you showed above and continue compiling. This time it was the VCLTee.TeeFormatting.pas file, line 612, and I opened it and found that it seemed to have the same problem as the VCLTee.TeeConst.pas file, line 1014, which made I feel very sad, what's the problem?

This is my system information: Windows 11 enterprise, version 22H2 Build 22621.521, Simplified Chinese, is there something wrong with my operating system character set?

Would you give me a version that compiles fine?
Attachments
223.png
223.png (8.55 KiB) Viewed 4932 times
612.png
612.png (5.29 KiB) Viewed 4932 times

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Yeray » Mon Oct 10, 2022 7:58 am

Hello,

Indeed, we detected some unicode issues with Chinese machines. We'll revise that.
In the meanwhile, you should be able to correct the "Source\TeeConst.pas" is as follows and run TeeRecompile:
Line 612:

Code: Select all

TeeMsg_Copyright :={$IFDEF LCL}'(C)'{$ELSE}'©'{$ENDIF}+' 1995-2022 by Steema Software';
Line 1014:

Code: Select all

TeePolarDegreeSymbol        :='°';
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9509
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Cannot recompile Delphi package: Tee928.dpk

Post by Yeray » Thu Oct 13, 2022 1:50 pm

Hello,

An alternative is to change your system locale as follows:
ChangeSystemLocale.png
ChangeSystemLocale.png (137.87 KiB) Viewed 4847 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply