mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-08-15 02:40:00 +00:00
Build instructions fix
This commit is contained in:
16
BUILD.md
16
BUILD.md
@ -11,8 +11,8 @@ Prior to start building on Windows you need to have following tools installed:
|
|||||||
- cmake https://cmake.org/download/
|
- cmake https://cmake.org/download/
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git
|
git clone https://github.com/MariaDB-Corporation/mariadb-connector-cpp.git
|
||||||
cd mariadb-connector-odbc
|
cd mariadb-connector-cpp
|
||||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCONC_WITH_MSI=OFF -DWITH_SSL=SCHANNEL .
|
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCONC_WITH_MSI=OFF -DWITH_SSL=SCHANNEL .
|
||||||
cmake --build . --config RelWithDebInfo
|
cmake --build . --config RelWithDebInfo
|
||||||
msiexec.exe /i wininstall\mariadb-connector-cpp-0.9.1-win32.msi
|
msiexec.exe /i wininstall\mariadb-connector-cpp-0.9.1-win32.msi
|
||||||
@ -21,10 +21,10 @@ msiexec.exe /i wininstall\mariadb-connector-cpp-0.9.1-win32.msi
|
|||||||
## CentOS
|
## CentOS
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo yum -y install git cmake make gcc openssl-devel unixODBC unixODBC-devel
|
sudo yum -y install git cmake make gcc openssl-devel
|
||||||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git
|
git clone https://github.com/MariaDB-Corporation/mariadb-connector-cpp.git
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ../mariadb-connector-odbc/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_SSL=OPENSSL
|
cmake ../mariadb-connector-cpp/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_SSL=OPENSSL
|
||||||
cmake --build . --config RelWithDebInfo
|
cmake --build . --config RelWithDebInfo
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
@ -33,10 +33,10 @@ sudo make install
|
|||||||
|
|
||||||
```
|
```
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo sh apt-get install -y git cmake make gcc libssl-dev unixodbc-dev
|
sudo sh apt-get install -y git cmake make gcc libssl-dev
|
||||||
git clone https://github.com/MariaDB/mariadb-connector-odbc.git
|
git clone https://github.com/MariaDB-Corporation/mariadb-connector-cpp.git
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake ../mariadb-connector-odbc/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_SSL=OPENSSL
|
cmake ../mariadb-connector-cpp/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCONC_WITH_UNIT_TESTS=Off -DCMAKE_INSTALL_PREFIX=/usr/local -DWITH_SSL=OPENSSL
|
||||||
cmake --build . --config RelWithDebInfo
|
cmake --build . --config RelWithDebInfo
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user