yktoo / dklang

DKLang Localization Package
56 stars 14 forks source link

How to compile DKLang in CBuilder XE5? #10

Closed Blind-Cat closed 10 years ago

Blind-Cat commented 10 years ago

How i can compile DKLang v.5 in CBuilder XE5?

If i compile it in Delphi XE5, IDE not found it in CBuilder projects.

I have created 2 projects: -runtime (dklang_rtl) with files: DKLang.pas, DKLangStorage.pas, DKL_LanguageCodes.pas -designtime (dklang_dsn) with files: DKL_ResFile.pas, DKL_Expt.pas, DKL_ConstEditor.pas, DKLangReg.pas, DKL_StorageEditor.pas

Runtime package compiled properly, But designtime package report: [DCC Fatal Error] DKL_Expt.pas(34): F1026 File not found: 'ToolsAPI.dcu'

bjmillerpa commented 10 years ago

First make sure that the ToolsAPI folder is in your library path.

Bruce J. Miller 1-814-725-2312 voice 1-814-206-0362 fax

On Tue, Sep 16, 2014 at 11:25 AM, Blind-Cat notifications@github.com wrote:

How i can compile DKLang v.5 in CBuilder XE5?

If i compile it in Delphi XE5, IDE not found it in CBuilder projects.

I have created 2 projects: -runtime (dklang_rtl) with files: DKLang.pas, DKLangStorage.pas, DKL_LanguageCodes.pas -designtime (dklang_dsn) with files: DKL_ResFile.pas, DKL_Expt.pas, DKL_ConstEditor.pas, DKLangReg.pas, DKL_StorageEditor.pas

Runtime package compiled properly, But designtime package report: [DCC Fatal Error] DKL_Expt.pas(34): F1026 File not found: 'ToolsAPI.dcu'

Reply to this email directly or view it on GitHub https://github.com/yktoo/dklang/issues/10.

Blind-Cat commented 10 years ago

Yes, of course. This is the first thing I checked.

Blind-Cat commented 10 years ago

Solution:

  1. Open dklang.dpoj in IDE
  2. Change Project Options: Delphi Compiler | Output C/C++ | Output C/C++ file generation to "Generate all C++Builder files (including package libs)"
  3. Save Project. 4-6. Repeat steps 1-3 for dcldklang.dproj.
  4. Compile projects with "Packages\build_all.bat"

PS Please change this option In future releases. PPS To .BPL after compiling with "Packages\build_all.bat" Delphi XE5 adds suffix "190". And adds suffix "200" with described changes. Check "HCU\Software\Embarcadero\BDS\%BDSVersion%\Known Packages".