Delphi classes for C++.
In the file CMakeLists.txt
, specify the phages:
Boolean flag WITH_POSTGRESQL can be used to enable PostgreSQL support. The default value is OFF.
Boolean flag WITH_SQLITE3 can be used to enable sqlite3 support. The default value is OFF.
To build you need:
- The compiler C++;
- CMake;
- The library libpq-dev (libraries and headers for C language frontend development);
- The library postgresql-server-dev-10 (libraries and headers for C language backend development).
- The library sqllite3 (SQLite 3);
To install the C++ compiler and necessary libraries in Ubuntu, run:
sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev make cmake gcc g++
To install PostgreSQL, use the instructions for this link.
To install SQLite3 run:
sudo apt-get install sqlite3 libsqlite3-dev
A detailed description of the installation of C++, CMake, IDE, and other components necessary for building the project is not included in this guide.
To install (without Git) you need:
- Download libdelphi;
- Unpack;
- Build and compile (see below).
To install (with Git) you need:
git clone https://github.com/ufocomp/libdelphi.git
cd libdelphi
cmake -DCMAKE_BUILD_TYPE=Release . -B cmake-build-release
or
cmake -DCMAKE_BUILD_TYPE=Debug . -B cmake-build-debug
cd cmake-build-release
make
sudo make install
By default libdelphi will be set to:
/usr/local/lib