| 245 | Note that if MySQL++ is preinstalled, it might (verly likely) link to existing system libraries (e.g. MariaDB's mysqlclient library). This often leads to connection problems due to an unsupported SSL connection. |
| 246 | |
| 247 | The solution is to get the MySQL++ release tarball (from https://tangentsoft.com/mysqlpp/home) and compile it yourself against your mysqclient library. |
| 248 | |
| 249 | After extraction, change into their directory and execute something like |
| 250 | {{{ |
| 251 | ./configure --with-mysql-lib=~/mysql-8.0.22-linux-glibc2.17-x86_64-minimal/lib -with-mysql-include=~/mysql-8.0.22-linux-glibc2.17-x86_64-minimal/include |
| 252 | make |
| 253 | }}} |
| 254 | |
| 255 | It can happen that make fails because mysql uses its own libssl which is not linked by the configure script. In this case do |
| 256 | |
| 257 | {{{ |
| 258 | LD_LIBRARY_PATH=~/mysql-8.0.22-linux-glibc2.17-x86_64-minimal/lib/private/:$LD_LIBRARY_PATH make |
| 259 | }}} |
| 260 | |
| 261 | Now run your cmake (as before) with these additonal options (it is adviced to do that in an empty build directory): |
| 262 | {{{ |
| 263 | -DMYSQLPP_INCLUDE_DIR=~/mysql++-3.2.5/lib |
| 264 | -DMYSQLPP_LIBRARY=~/mysql++-3.2.5/libmysqlpp.so |
| 265 | }}} |
| 266 | |