markuman / mex-mariadb

MariaDB Client for GNU Octave (maybe this is compatible for MySQL and Matlab too)
MIT License
2 stars 0 forks source link

How to build on MacOS #3

Closed mbollini closed 2 years ago

mbollini commented 2 years ago

To compile in MacOS I added the following rule in the Makefile:

macos: ## build against -lmariadbclient
        mkoctfile --mex  -DDEBUG -L/usr/lib -L/usr/local/lib -L/usr/local/lib/mariadb -lmariadbclient  -lz -lm -ldl -I/usr/include/mariadb -I/usr/local/include/mysql -I/usr/local/Cellar/octave/7.2.0_1/include/octave-7.2.0/octave mariadb.c
        mv mariadb.mex mariadb_.mex

Consequently, I used this command to compile the mex:

% make macos

This works for me.

markuman commented 2 years ago

@mbollini feel free to make a pull request to append the Makefile