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

Материал из GedeminWiki
(Различия между версиями)
Перейти к: навигация, поиск
Строка 7: Строка 7:
  
 
= Шаг 2 =
 
= Шаг 2 =
 +
 
Устанавливаем и настраиваем компилятор Borland Delphi 7:
 
Устанавливаем и настраиваем компилятор Borland Delphi 7:
Устанавливаем Delphi 7. Каталог для установки выбираем C:\Borland\Delphi7. При указании параметров установки НЕ СТАВИМ Use VisiBroker и Borland Interbase.
+
 
Устанавливаем патч d7_ent_upd1_1-1.exe.
+
# Устанавливаем Delphi 7.  
Открываем меню Component и выбираем команду Install packages...
+
# Каталог для установки выбираем C:\Borland\Delphi7.  
В списке Design packages отыскиваем позиции Interbase Data Access Components, Internet Direct (Indy) for D7 Property and Component Editors и снимаем галочки напротив них, либо удаляем. Если не удалять, не лишним будет при открытии каждого проекта группы в свойствах проекта (Project->Options) на закладке Packages убедиться, что галочки сняты.
+
# При указании параметров установки НЕ СТАВИМ Use VisiBroker и Borland Interbase.
Из каталога c:\Borland\Delphi7\Source\Vcl удаляем все файлы по маске IB*.* (IB*.dfm, IB*.pas), из c:\Borland\Delphi7\Source каталог Indy.
+
# Устанавливаем патч d7_ent_upd1_1-1.exe.
Шаг 3
+
# Открываем меню Component и выбираем команду Install packages...
Создаем папку для размещения исходников: C:\golden.
+
# В списке Design packages отыскиваем позиции Interbase Data Access Components, Internet Direct (Indy) for D7 Property and Component Editors и снимаем галочки напротив них, либо удаляем. Если не удалять, не лишним будет при открытии каждого проекта группы в свойствах проекта (Project->Options) на закладке Packages убедиться, что галочки сняты.
Клонируем ветку Delphi7 из репозитория git. Для этого в командной строке последовательно выполняем команды:
+
# Из каталога c:\Borland\Delphi7\Source\Vcl удаляем все файлы по маске IB*.* (IB*.dfm, IB*.pas), из c:\Borland\Delphi7\Source каталог Indy.
git cd c:\golden
+
 
git clone --branch delphi7 https://github.com/GoldenSoftwareLtd/gedemin-private.git
+
= Шаг 3 =
Шаг 4
+
 
Cоздаем папки BPL, DCU в каталоге C:\golden\gedemin-private\Gedemin.
+
# Создаем папку для размещения исходников: C:\golden.
В среде Delphi7 открываем проект (файл gedemin7.bpg). В появившемся окне Project Manager появится список всех проектов, входящих в группу Gedemin7:
+
#Клонируем ветку 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…):
 
Поочередно открываем каждый проект, проверяем его свойства (меню Project->Options…):
SynEdit_D7.bpl
+
 
 +
    SynEdit_D7.bpl
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Unit output directory:” ..\..\..\dcu”
Search path:
+
Search path: ” ..\Source;..\..\..\dcu;..\..\..\bpl;$(DELPHI)\Source\Property Editors;..\Source\Toolsapi;$(DELPHI)\Source\Toolsapi”
” ..\Source;..\..\..\dcu;..\..\..\bpl;$(DELPHI)\Source\Property Editors;..\Source\Toolsapi;$(DELPHI)\Source\Toolsapi”
+
 
DCP output directory: “..\..\..\bpl”
 
DCP output directory: “..\..\..\bpl”
  
Строка 34: Строка 44:
 
Выбираем из выпадающего меню проекта сначала пункт Build (главное меню Project->Build), после этого пункт Install.
 
Выбираем из выпадающего меню проекта сначала пункт Build (главное меню Project->Build), после этого пункт Install.
  
 
+
    tb2k_d7.bpl
tb2k_d7.bpl
+
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Unit output directory:” ..\..\..\dcu”
Search path: “..\Source”
+
        Search path: “..\Source”
DCP output directory: “..\..\..\bpl”
+
        DCP output directory: “..\..\..\bpl”
 
+
  
 
Build, Install.
 
Build, Install.
  
 
+
    tb2kdsgn_d7.bpl
tb2kdsgn_d7.bpl
+
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:” ..\..\..\bpl”
 
Output directory:” ..\..\..\bpl”
 
Unit output directory:” ..\..\..\dcu”
 
Unit output directory:” ..\..\..\dcu”
Search path: “..\Source”
+
        Search path: “..\Source”
DCP output directory: “..\..\..\bpl”
+
        DCP output directory: “..\..\..\bpl”
 
+
  
 
Build, Install.
 
Build, Install.
  
 
+
    fr7.bpl
fr7.bpl
+
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:”..\..\bpl”
 
Output directory:”..\..\bpl”
 
Unit output directory:”..\..\dcu”
 
Unit output directory:”..\..\dcu”
Search path: “..\Source”
+
        Search path: “..\Source”
DCP output directory: “..\..\bpl”
+
        DCP output directory: “..\..\bpl”
 
+
  
 
Build, Install.
 
Build, Install.
  
 +
    greference7.bpl
  
greference7.bpl
 
 
Перед компиляцией запускаем файл prepare_sources.bat из каталога C:\golden\gedemin-private\Gedemin.
 
Перед компиляцией запускаем файл prepare_sources.bat из каталога C:\golden\gedemin-private\Gedemin.
 
  
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:”..\bpl”
 
Output directory:”..\bpl”
 
Unit output directory:”..\dcu”
 
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”
+
        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”
 
DCP output directory: “..\bpl”
  
  
 +
ОБЯЗАТЕЛЬНО!
  
 
ОБЯЗАТЕЛЬНО!
 
 
Conditional defines: “DELPHI7”
 
Conditional defines: “DELPHI7”
 
  
 
Build, Install.
 
Build, Install.
 
  
 
При появлении диалога с предложением изменить greference7  
 
При появлении диалога с предложением изменить greference7  
Строка 92: Строка 93:
 
нажать Cancel.
 
нажать Cancel.
  
 
+
    gedemin.exe
gedemin.exe
+
 
Directories/Conditionals
 
Directories/Conditionals
 
Output directory:”..\exe”
 
Output directory:”..\exe”
Строка 114: Строка 114:
 
DCP output directory: “..\bpl”
 
DCP output directory: “..\bpl”
 
Build.
 
Build.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
  

Версия 15:19, 23 июня 2024

Содержание

Шаг 1

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

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

Шаг 2

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

  1. Устанавливаем Delphi 7.
  2. Каталог для установки выбираем C:\Borland\Delphi7.
  3. При указании параметров установки НЕ СТАВИМ Use VisiBroker и Borland Interbase.
  4. Устанавливаем патч d7_ent_upd1_1-1.exe.
  5. Открываем меню Component и выбираем команду Install packages...
  6. В списке Design packages отыскиваем позиции Interbase Data Access Components, Internet Direct (Indy) for D7 Property and Component Editors и снимаем галочки напротив них, либо удаляем. Если не удалять, не лишним будет при открытии каждого проекта группы в свойствах проекта (Project->Options) на закладке Packages убедиться, что галочки сняты.
  7. Из каталога c:\Borland\Delphi7\Source\Vcl удаляем все файлы по маске IB*.* (IB*.dfm, IB*.pas), из c:\Borland\Delphi7\Source каталог Indy.

Шаг 3

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

Шаг 4

  1. Cоздаем папки BPL, DCU в каталоге C:\golden\gedemin-private\Gedemin.
  2. В среде Delphi7 открываем проект (файл gedemin7.bpg).
  3. В появившемся окне 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”

Build, Install.

   greference7.bpl

Перед компиляцией запускаем файл prepare_sources.bat из каталога C:\golden\gedemin-private\Gedemin.

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”

Build, Install.

При появлении диалога с предложением изменить 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: “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.


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

Персональные инструменты
Пространства имён

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