Compiling MariaDB C/C++ Connector on Windows -


i trying use mariadb in visual studio project, after looking @ documentation, installed mariadb , downloaded source code c/c++ connector.

i got include folder linked project, able make calls functions there, won't build because linker fails find function definitions (obviously). have looked on , cannot find solid directions on building .lib files need. have found 2 sources need build mariadb_connector_c.sln, file not exist in source code got, nor exist on git repo: https://github.com/mariadb/mariadb-connector-c

the closest thing have found appveyor.yml file provided, contains following: contents of yml file

is there out there has done before? can't find online or in files provided pertaining this.

update:

i found answer of replies. needed run source code through cmake in order .sln build .lib files need link project.

the answer generic answer cmake project

  • install cmake. make sure cmake.exe in path (windows installer offers option). install visual studio, , make sure c/c++ compiler installed

  • start command line prompt

  • execute "cmake . && cmake --build ." in command line prompt.

that#s it.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -