MariaDB: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 10: Line 10:


===Windows===
===Windows===
<syntaxhighlight lang="Windows batch files">
<syntaxhighlight lang="batch">
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git
cd PluginMariaDB
cd PluginMariaDB
Line 21: Line 21:


The .dll will be under ''PluginMariaDB\src\Release''.
The .dll will be under ''PluginMariaDB\src\Release''.
===Ubuntu===
<syntaxhighlight lang="bash">
apt-get install libmariadb-dev
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git
cd PluginMariaDB
cmake -DBOOST_ROOT=/usr/include/boost_1_70_0 .
make
</syntaxhighlight>
For static builds you can do:
<syntaxhighlight lang="bash">
cmake -DBOOST_ROOT=/usr/include/boost_1_70_0 -DBUILD_STATIC=ON .
</syntaxhighlight>

Revision as of 20:53, 17 May 2019

__EDIT_ME__

Compiling from source

Minimum requirements

Windows

git clone https://github.com/BlueMountainsIO/PluginMariaDB.git
cd PluginMariaDB
cmake -DMARIADBCAPI_INCLUDE_DIR="C:\Program Files\MariaDB\MariaDB Connector C 64-bit\include" -DBOOST_ROOT="D:\Lib\boost_1_70_0" .

Open the generated mariadb.sln file and select "Release" as build target. Right click on the solution and hit rebuild.

The .dll will be under PluginMariaDB\src\Release.

Ubuntu

apt-get install libmariadb-dev
git clone https://github.com/BlueMountainsIO/PluginMariaDB.git
cd PluginMariaDB
cmake -DBOOST_ROOT=/usr/include/boost_1_70_0 .
make

For static builds you can do:

cmake -DBOOST_ROOT=/usr/include/boost_1_70_0 -DBUILD_STATIC=ON .