Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Error when compiling #75

Closed
zhengminlai opened this issue Jul 29, 2021 · 5 comments · Fixed by #77
Closed

Error when compiling #75

zhengminlai opened this issue Jul 29, 2021 · 5 comments · Fixed by #77

Comments

@zhengminlai
Copy link

I compiled the code successfully yesterday, but today when I compile the newest version of code on branch master, I get the following error.

-- Using /usr/lib64/ccache/c++ (compiler id: GNU)
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  MySQL_INCLUDE_DIR (missing: MySQL_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindMySQL.cmake:50 (find_package_handle_standard_args)
  CMakeLists.txt:40 (find_package)

-- Configuring incomplete, errors occurred!

I do not understand why it says I am missing MySQL_LIBRARAY, help.

@kovdan01
Copy link
Contributor

@zhengminlai Your problem is related to #72.

Please provide:

  • your linux distribution
  • path to libmariadb.so/libmysqlclient.so (depending on what you use - MariaDB or MySQL)
  • and, actually, do you use MariaDB or MySQL?

If you did not try to build from scratch yet (I mean that maybe you use an old build directory with old CMakeCache.txt) - please try to build the library from scratch and let me know about results.

@kovdan01
Copy link
Contributor

@zhengminlai Do you still face the issue? If yes, could you please provide the required environment info (see previous comment)? Currently I am not able to reproduce your problem (tried Ubuntu + MySQL, Arch Linux + MariaDB, Windows + MySQL)

@zhengminlai
Copy link
Author

zhengminlai commented Aug 1, 2021

Linux Distribution: CentOS 7
I use Mysql and the path to libmysqlclient.so is : /usr/lib64/mysql/
I tried to build from scratch and it reported the same problem :(

kovdan01 added a commit to kovdan01/sqlpp11-connector-mysql that referenced this issue Aug 2, 2021
@kovdan01
Copy link
Contributor

kovdan01 commented Aug 2, 2021

@zhengminlai Thanks! Reproduced the issue, submitted a fix: #77. Please check if it works for you and write about results.

@zhengminlai
Copy link
Author

That works. Thanks.

@rbock rbock closed this as completed in #77 Aug 5, 2021
rbock pushed a commit that referenced this issue Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants