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
Post a Comment