Page 1 of 1

Cannot recompile Delphi package: Tee928.dpk

Posted: Thu Oct 06, 2022 12:10 pm
by 16594532
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?

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Thu Oct 06, 2022 1:54 pm
by yeray
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 8210 times
Can you try downloading the installer again?

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Thu Oct 06, 2022 11:42 pm
by 16594532
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).

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Fri Oct 07, 2022 6:23 am
by yeray
Hello,

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

Code: Select all

  TeePolarDegreeSymbol        :='°';

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Fri Oct 07, 2022 7:23 am
by 16594532
No, in notepad++ it looks like gibberish:

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Fri Oct 07, 2022 10:29 am
by 16594532
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 ?

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Fri Oct 07, 2022 1:52 pm
by yeray
Hello,

It's the degree symbol/sign, B0

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Fri Oct 07, 2022 4:58 pm
by 16594532
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?

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Mon Oct 10, 2022 7:58 am
by yeray
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        :='°';

Re: Cannot recompile Delphi package: Tee928.dpk

Posted: Thu Oct 13, 2022 1:50 pm
by yeray
Hello,

An alternative is to change your system locale as follows:
ChangeSystemLocale.png
ChangeSystemLocale.png (137.87 KiB) Viewed 8089 times