Компиляция платформы Гедымин (Delphi 7)

Материал из GedeminWiki
(Различия между версиями)
Перейти к: навигация, поиск
 
(не показана 21 промежуточная версия 1 участника)
Строка 3: Строка 3:
 
Устанавливаем Firebird 32-bit:
 
Устанавливаем Firebird 32-bit:
  
1. Каталог для установки можно оставить тот, который предложил инсталлятор.
+
# Каталог для установки можно оставить тот, который предложил инсталлятор.
2. После установки в дополнительных параметрах системы в переменной среды PATH добавляем “путь установки\bin”.
+
# После установки в дополнительных параметрах системы в переменной среды PATH добавляем “путь установки\bin”.
  
 
= Шаг 2 =
 
= Шаг 2 =
 +
 
Устанавливаем и настраиваем компилятор Borland Delphi 7:
 
Устанавливаем и настраиваем компилятор Borland Delphi 7:
Устанавливаем Delphi 7. Каталог для установки выбираем C:\Borland\Delphi7. При указании параметров установки НЕ СТАВИМ Use VisiBroker и Borland Interbase.
 
Устанавливаем патч d7_ent_upd1_1-1.exe.
 
Открываем меню Component и выбираем команду Install packages...
 
В списке Design packages отыскиваем позиции Interbase Data Access Components, Internet Direct (Indy) for D7 Property and Component Editors и снимаем галочки напротив них, либо удаляем. Если не удалять, не лишним будет при открытии каждого проекта группы в свойствах проекта (Project->Options) на закладке Packages убедиться, что галочки сняты.
 
Из каталога c:\Borland\Delphi7\Source\Vcl удаляем все файлы по маске IB*.* (IB*.dfm, IB*.pas), из c:\Borland\Delphi7\Source каталог Indy.
 
Шаг 3
 
Создаем папку для размещения исходников: C:\golden.
 
Клонируем ветку Delphi7 из репозитория git. Для этого в командной строке последовательно выполняем команды:
 
git cd c:\golden
 
git clone --branch delphi7 https://github.com/GoldenSoftwareLtd/gedemin-private.git
 
Шаг 4
 
Cоздаем папки BPL, DCU в каталоге C:\golden\gedemin-private\Gedemin.
 
В среде Delphi7 открываем проект (файл gedemin7.bpg). В появившемся окне Project Manager появится список всех проектов, входящих в группу Gedemin7:
 
 
Поочередно открываем каждый проект, проверяем его свойства (меню Project->Options…):
 
SynEdit_D7.bpl
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Search path:
 
” ..\Source;..\..\..\dcu;..\..\..\bpl;$(DELPHI)\Source\Property Editors;..\Source\Toolsapi;$(DELPHI)\Source\Toolsapi”
 
DCP output directory: “..\..\..\bpl”
 
 
 
Выбираем из выпадающего меню проекта сначала пункт Build (главное меню Project->Build), после этого пункт Install.
 
 
 
tb2k_d7.bpl
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Search path: “..\Source”
 
DCP output directory: “..\..\..\bpl”
 
 
 
Build, Install.
 
 
 
tb2kdsgn_d7.bpl
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Search path: “..\Source”
 
DCP output directory: “..\..\..\bpl”
 
 
 
Build, Install.
 
 
 
fr7.bpl
 
Directories/Conditionals
 
Output directory:”..\..\bpl”
 
Unit output directory:”..\..\dcu”
 
Search path: “..\Source”
 
DCP output directory: “..\..\bpl”
 
  
 +
# Устанавливаем Delphi 7.
 +
# Каталог для установки выбираем c:\delphi7 (если будет выбран другой каталог для установки, то надо будет изменить пути в файлах *.cfg, *.dof как описано ниже).
 +
# В процессе установки НЕ СТАВИМ VisiBroker и Borland Interbase.
 +
# Устанавливаем патч d7_ent_upd1_1-1.exe.
  
Build, Install.
+
= Шаг 3 =
  
 +
# Запускаем Delphi 7.
 +
# Открываем меню Component и выбираем команду Install packages...
 +
# В списке Design packages ищем и удаляем позиции:
 +
## Interbase Data Access Components,
 +
## Internet Direct (Indy) for D7 Property
 +
## Component Editors.
 +
# Из папки Delphi7\Source\Vcl удаляем все файлы по маске IB*.* -- IB*.dfm, IB*.pas.
 +
# Из папки Delphi7\Source удаляем папку Indy.
  
greference7.bpl
+
= Шаг 4 =
Перед компиляцией запускаем файл prepare_sources.bat из каталога C:\golden\gedemin-private\Gedemin.
+
  
 +
# Создаем папку для размещения исходников: C:\golden.
 +
# Клонируем ветку Delphi7 из репозитория git. Для этого в командной строке последовательно выполняем команды:
  
Directories/Conditionals
+
    git cd c:\golden
Output directory:”..\bpl”
+
    git clone --branch delphi7 https://github.com/GoldenSoftwareLtd/gedemin-private.git
Unit output directory:..\dcu”
+
Search path: “$(DELPHI)\Lib\Debug;..\ibx;$(DELPHI)\Source\Toolsapi;$(DELPHI)\Imports;$(DELPHI)\Lib;$(DELPHI)\Source\Rtl\Sys;$(DELPHI)\Source\Vcl;..\gedemin;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\component;..\component\indy;..\attr;..\storage;..\common;..\bank;..\newtransaction;..\realization;..\component\repository;..\gudf;..\cattle;..\Component\SynEdit\Source;..\inventory;..\const;..\component\repository\gd;..\component\gdc;..\zlib;..\report;..\jcl\Source;..\Component\tb2k\Source;..\transaction;..\property;..\document;..\designer;..\component\gdc;..\setup;..\wage;..\jcl\packages;..\images;..\tax;$(DELPHI)\Ocx\Servers;..\property\functionwizard;..\modem;..\gdcFile;..\component\textdiff;..\imports;..\component\textdiff;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\common\tdbf;..\..\comp5\xstorm;..\..\comp5;..\..\comp5\async4\source;..\ToolsAPI;..\FastReport 4\Source;..\FastReport\source;..\dcu”
+
DCP output directory: “..\bpl”
+
  
 +
= Шаг 5 =
  
 +
# Запускаем файл prepare_sources.bat из папки Comp5.
 +
# Запускаем файл prepare_sources.bat из папки Gedemin.
 +
# Во всех файлах *.cfg, *.dof меняем все папки Delphi5 на папку, куда было установлено Delphi7.
 +
# В среде Delphi7 открываем проект (файл gedemin7.bpg).
 +
# В появившемся окне Project Manager появится список всех проектов, входящих в группу Gedemin7.
  
 +
Поочередно открываем каждый проект и выполняем следующее:
  
ОБЯЗАТЕЛЬНО!
+
# Сверяем свойства (меню Project->Options…) на соответствие указанным ниже.
Conditional defines: “DELPHI7”
+
# Выполняем команду Build.
 +
# Для пакетов компонент выполняем команду Install.
  
 +
== SynEdit_D7.bpl==
  
Build, Install.
+
      Directories/Conditionals
 +
        Output directory:” ..\..\..\bpl”
 +
        Unit output directory:” ..\..\..\dcu”
 +
        Search path: ” ..\Source;..\..\..\dcu;..\..\..\bpl;$(DELPHI)\Source\Property Editors;..\Source\Toolsapi;$(DELPHI)\Source\Toolsapi”
 +
        DCP output directory: “..\..\..\bpl”
  
 +
== tb2k_d7.bpl ==
  
При появлении диалога с предложением изменить greference7
+
      Directories/Conditionals
 +
        Output directory:” ..\..\..\bpl”
 +
        Unit output directory:” ..\..\..\dcu”
 +
        Search path: “..\Source”
 +
        DCP output directory: “..\..\..\bpl”
  
нажать Cancel.
+
== tb2kdsgn_d7.bpl ==
  
 +
      Directories/Conditionals
 +
      Output directory:” ..\..\..\bpl”
 +
      Unit output directory:” ..\..\..\dcu”
 +
      Search path: “..\Source”
 +
      DCP output directory: “..\..\..\bpl”
  
gedemin.exe
+
== fr7.bpl ==
Directories/Conditionals
+
Output directory:”..\exe”
+
Unit output directory:”..\dcu”
+
Search path:
+
“$(DELPHI)\Lib\Debug;c:\borland\delphi7\Lib\Debug;..\jcl\Source;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\jcl\packages;..\ibx;..\..\comp5\xstorm;..\..\comp5;..\FastReport 4\Source;..\FastReport 4\FastScript;..\FastReport 4\Source\ExportPack;..\FastReport 4\Source\ADO;..\FastReport 4\FastQB;..\FastReport 4\Source\IBX;..\FastReport 4\LibD5;..\setup;..\imports;..\component;..\component\diff;..\component\textdiff;..\component\gdc;..\component\repository;..\Component\tb2k\Source;..\Component\SynEdit\Source;..\common;c:\borland\delphi7\Source\Vcl;c:\borland\delphi7\Source\Toolsapi;c:\borland\delphi7\Ocx\Servers;c:\borland\delphi7\lib;..\designer;..\property;..\transaction;..\property\functionwizard;..\document;..\gdcFile;..\FastReport\source;..\report;..\zlib;..\..\comp5\async4\source;..\const;..\inventory;..\wage;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\attr;..\storage;..\bank;..\newtransaction;..\common\tdbf;..\gudf;..\protect;..\gedemin;..\images;..\tax;..\backup;c:\borland\delphi7\Imports;..\component\repository\gd;..\component\indy;..\test\dunit\src;..\test\GedeminTest;..\dcu;..\ToolsAPI”
+
BPL output directory: “..\bpl”
+
DCP output directory: “..\bpl”
+
Conditional defines: “SPLASH;MESSAGE;SYNEDIT;GEDEMIN;GED_LOC_RUS;WITH_INDY;DEBUG;DELPHI7;FR4”
+
Compiler
+
Пункт Assignable typed constants должен быть отмечен “галкой”
+
Build.
+
Gudf.dll
+
Directories/Conditionals
+
Output directory:”..\exe\udf”
+
Unit output directory:”..\dcu”
+
Search path:
+
“..\jcl\source;..\component\gdc;..\jcl\source\windows;..\jcl\source\common;..\common”
+
BPL output directory: “..\bpl”
+
DCP output directory: “..\bpl”
+
Build.
+
  
 +
      Directories/Conditionals
 +
      Output directory:”..\..\bpl”
 +
      Unit output directory:”..\..\dcu”
 +
      Search path: “..\Source”
 +
      DCP output directory: “..\..\bpl”
  
+
== greference7.bpl ==
+
+
+
+
+
+
+
+
  
 +
    Directories/Conditionals
 +
      Output directory:”..\bpl”
 +
      Unit output directory:”..\dcu”
 +
      Search path: “$(DELPHI)\Lib\Debug;..\ibx;$(DELPHI)\Source\Toolsapi;$(DELPHI)\Imports;$(DELPHI)\Lib;$(DELPHI)\Source\Rtl\Sys;$(DELPHI)\Source\Vcl;..\gedemin;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\component;..\component\indy;..\attr;..\storage;..\common;..\bank;..\newtransaction;..\realization;..\component\repository;..\gudf;..\cattle;..\Component\SynEdit\Source;..\inventory;..\const;..\component\repository\gd;..\component\gdc;..\zlib;..\report;..\jcl\Source;..\Component\tb2k\Source;..\transaction;..\property;..\document;..\designer;..\component\gdc;..\setup;..\wage;..\jcl\packages;..\images;..\tax;$(DELPHI)\Ocx\Servers;..\property\functionwizard;..\modem;..\gdcFile;..\component\textdiff;..\imports;..\component\textdiff;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\common\tdbf;..\..\comp5\xstorm;..\..\comp5;..\..\comp5\async4\source;..\ToolsAPI;..\FastReport 4\Source;..\FastReport\source;..\dcu”
 +
    DCP output directory: “..\bpl”
 +
    Conditional defines: DELPHI7
  
 +
При появлении диалога с предложением изменить greference7 нажать Cancel.
  
 +
== gedemin.exe ==
  
 +
    Directories/Conditionals
 +
      Output directory:”..\exe”
 +
      Unit output directory:”..\dcu”
 +
      Search path: “$(DELPHI)\Lib\Debug;c:\borland\delphi7\Lib\Debug;..\jcl\Source;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\jcl\packages;..\ibx;..\..\comp5\xstorm;..\..\comp5;..\FastReport 4\Source;..\FastReport 4\FastScript;..\FastReport 4\Source\ExportPack;..\FastReport 4\Source\ADO;..\FastReport 4\FastQB;..\FastReport 4\Source\IBX;..\FastReport 4\LibD5;..\setup;..\imports;..\component;..\component\diff;..\component\textdiff;..\component\gdc;..\component\repository;..\Component\tb2k\Source;..\Component\SynEdit\Source;..\common;c:\borland\delphi7\Source\Vcl;c:\borland\delphi7\Source\Toolsapi;c:\borland\delphi7\Ocx\Servers;c:\borland\delphi7\lib;..\designer;..\property;..\transaction;..\property\functionwizard;..\document;..\gdcFile;..\FastReport\source;..\report;..\zlib;..\..\comp5\async4\source;..\const;..\inventory;..\wage;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\attr;..\storage;..\bank;..\newtransaction;..\common\tdbf;..\gudf;..\protect;..\gedemin;..\images;..\tax;..\backup;c:\borland\delphi7\Imports;..\component\repository\gd;..\component\indy;..\test\dunit\src;..\test\GedeminTest;..\dcu;..\ToolsAPI”
 +
      BPL output directory: “..\bpl”
 +
      DCP output directory: “..\bpl”
 +
      Conditional defines:  см. ниже. Обязательно должен присутствовать символ Delphi7.
 +
     
 +
    Compiler
 +
      Assignable typed constants = ON
 +
   
 +
    Compiler messages
 +
      Unsafe code = OFF
 +
      Unsafe type = OFF
 +
      Unsafe typecast = OFF
  
 +
См. [[Символы условной компиляции gedemin.exe]]
  
 +
== Gudf.dll ==
  
 +
    Directories/Conditionals
 +
      Output directory:”..\exe\udf”
 +
      Unit output directory:”..\dcu”
 +
      Search path: “..\jcl\source;..\component\gdc;..\jcl\source\windows;..\jcl\source\common;..\common”
 +
      BPL output directory: “..\bpl”
 +
      DCP output directory: “..\bpl”
  
Компиляция платформы Гедымин (Delphi 7)
 
[https://docs.google.com/document/d/1NjQsteAives7oOTyn21Jt_iQYxxW9geC-kLw3B3KQkU/edit#heading=h.83lme7wn57x7 документ]
 
  
 
[[Category:Руководство разработчика]]
 
[[Category:Руководство разработчика]]
 
[[Category:Delphi 7]]
 
[[Category:Delphi 7]]

Текущая версия на 12:33, 19 июня 2025

Содержание

[править] Шаг 1

Устанавливаем Firebird 32-bit:

  1. Каталог для установки можно оставить тот, который предложил инсталлятор.
  2. После установки в дополнительных параметрах системы в переменной среды PATH добавляем “путь установки\bin”.

[править] Шаг 2

Устанавливаем и настраиваем компилятор Borland Delphi 7:

  1. Устанавливаем Delphi 7.
  2. Каталог для установки выбираем c:\delphi7 (если будет выбран другой каталог для установки, то надо будет изменить пути в файлах *.cfg, *.dof как описано ниже).
  3. В процессе установки НЕ СТАВИМ VisiBroker и Borland Interbase.
  4. Устанавливаем патч d7_ent_upd1_1-1.exe.

[править] Шаг 3

  1. Запускаем Delphi 7.
  2. Открываем меню Component и выбираем команду Install packages...
  3. В списке Design packages ищем и удаляем позиции:
    1. Interbase Data Access Components,
    2. Internet Direct (Indy) for D7 Property
    3. Component Editors.
  4. Из папки Delphi7\Source\Vcl удаляем все файлы по маске IB*.* -- IB*.dfm, IB*.pas.
  5. Из папки Delphi7\Source удаляем папку Indy.

[править] Шаг 4

  1. Создаем папку для размещения исходников: C:\golden.
  2. Клонируем ветку Delphi7 из репозитория git. Для этого в командной строке последовательно выполняем команды:
   git cd c:\golden
   git clone --branch delphi7 https://github.com/GoldenSoftwareLtd/gedemin-private.git

[править] Шаг 5

  1. Запускаем файл prepare_sources.bat из папки Comp5.
  2. Запускаем файл prepare_sources.bat из папки Gedemin.
  3. Во всех файлах *.cfg, *.dof меняем все папки Delphi5 на папку, куда было установлено Delphi7.
  4. В среде Delphi7 открываем проект (файл gedemin7.bpg).
  5. В появившемся окне Project Manager появится список всех проектов, входящих в группу Gedemin7.

Поочередно открываем каждый проект и выполняем следующее:

  1. Сверяем свойства (меню Project->Options…) на соответствие указанным ниже.
  2. Выполняем команду Build.
  3. Для пакетов компонент выполняем команду Install.

[править] SynEdit_D7.bpl

     Directories/Conditionals
       Output directory:” ..\..\..\bpl”
       Unit output directory:” ..\..\..\dcu”
       Search path: ” ..\Source;..\..\..\dcu;..\..\..\bpl;$(DELPHI)\Source\Property Editors;..\Source\Toolsapi;$(DELPHI)\Source\Toolsapi”
       DCP output directory: “..\..\..\bpl”

[править] tb2k_d7.bpl

     Directories/Conditionals
       Output directory:” ..\..\..\bpl”
       Unit output directory:” ..\..\..\dcu”
       Search path: “..\Source”
       DCP output directory: “..\..\..\bpl”

[править] tb2kdsgn_d7.bpl

     Directories/Conditionals
     Output directory:” ..\..\..\bpl”
     Unit output directory:” ..\..\..\dcu”
     Search path: “..\Source”
     DCP output directory: “..\..\..\bpl”

[править] fr7.bpl

     Directories/Conditionals
     Output directory:”..\..\bpl”
     Unit output directory:”..\..\dcu”
     Search path: “..\Source”
     DCP output directory: “..\..\bpl”

[править] greference7.bpl

   Directories/Conditionals
     Output directory:”..\bpl”
     Unit output directory:”..\dcu”
     Search path: “$(DELPHI)\Lib\Debug;..\ibx;$(DELPHI)\Source\Toolsapi;$(DELPHI)\Imports;$(DELPHI)\Lib;$(DELPHI)\Source\Rtl\Sys;$(DELPHI)\Source\Vcl;..\gedemin;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\component;..\component\indy;..\attr;..\storage;..\common;..\bank;..\newtransaction;..\realization;..\component\repository;..\gudf;..\cattle;..\Component\SynEdit\Source;..\inventory;..\const;..\component\repository\gd;..\component\gdc;..\zlib;..\report;..\jcl\Source;..\Component\tb2k\Source;..\transaction;..\property;..\document;..\designer;..\component\gdc;..\setup;..\wage;..\jcl\packages;..\images;..\tax;$(DELPHI)\Ocx\Servers;..\property\functionwizard;..\modem;..\gdcFile;..\component\textdiff;..\imports;..\component\textdiff;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\common\tdbf;..\..\comp5\xstorm;..\..\comp5;..\..\comp5\async4\source;..\ToolsAPI;..\FastReport 4\Source;..\FastReport\source;..\dcu”
   DCP output directory: “..\bpl”
   Conditional defines: DELPHI7

При появлении диалога с предложением изменить greference7 нажать Cancel.

[править] gedemin.exe

   Directories/Conditionals
     Output directory:”..\exe”
     Unit output directory:”..\dcu”
     Search path: “$(DELPHI)\Lib\Debug;c:\borland\delphi7\Lib\Debug;..\jcl\Source;..\jcl\Source\windows;..\jcl\Source\vcl;..\jcl\Source\common;..\jcl\packages;..\ibx;..\..\comp5\xstorm;..\..\comp5;..\FastReport 4\Source;..\FastReport 4\FastScript;..\FastReport 4\Source\ExportPack;..\FastReport 4\Source\ADO;..\FastReport 4\FastQB;..\FastReport 4\Source\IBX;..\FastReport 4\LibD5;..\setup;..\imports;..\component;..\component\diff;..\component\textdiff;..\component\gdc;..\component\repository;..\Component\tb2k\Source;..\Component\SynEdit\Source;..\common;c:\borland\delphi7\Source\Vcl;c:\borland\delphi7\Source\Toolsapi;c:\borland\delphi7\Ocx\Servers;c:\borland\delphi7\lib;..\designer;..\property;..\transaction;..\property\functionwizard;..\document;..\gdcFile;..\FastReport\source;..\report;..\zlib;..\..\comp5\async4\source;..\const;..\inventory;..\wage;..\gadmin;..\security;..\addressbook;..\bugbase;..\greference;..\log;..\directorygood;..\messaging;..\queryfilter;..\classtree;..\attr;..\storage;..\bank;..\newtransaction;..\common\tdbf;..\gudf;..\protect;..\gedemin;..\images;..\tax;..\backup;c:\borland\delphi7\Imports;..\component\repository\gd;..\component\indy;..\test\dunit\src;..\test\GedeminTest;..\dcu;..\ToolsAPI”
     BPL output directory: “..\bpl”
     DCP output directory: “..\bpl”
     Conditional defines:  см. ниже. Обязательно должен присутствовать символ Delphi7.
     
   Compiler
     Assignable typed constants = ON
    
   Compiler messages
     Unsafe code = OFF
     Unsafe type = OFF
     Unsafe typecast = OFF

См. Символы условной компиляции gedemin.exe

[править] Gudf.dll

   Directories/Conditionals
     Output directory:”..\exe\udf”
     Unit output directory:”..\dcu”
     Search path: “..\jcl\source;..\component\gdc;..\jcl\source\windows;..\jcl\source\common;..\common”
     BPL output directory: “..\bpl”
     DCP output directory: “..\bpl”
Персональные инструменты
Пространства имён

Варианты
Действия
Навигация
Инструменты