Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:29:47+00:00 2026-06-06T19:29:47+00:00

I have downloaded mysql-connector-c-6.0.2. I build it using below commands: cmake -G Unix Makefiles

  • 0

I have downloaded mysql-connector-c-6.0.2. I build it using below commands:

cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=<install_dir_path>
make
make install

This creates below library files:

libmysqlclient.a  libmysqlclient_r.so  libmysqlclient.so  libmysql.so  libmysql.so.16  libmysql.so.16.0.0

This does not generate libmysqlclient_r.a. How do I enable generation of libmysqlclient_r.a?

Thank you in advance for your help.

Update:

libmysqlclient_r.so is actually a symbolic link to libmysql.so (libmysqlclient_r.so and libmysqlclient.so are both symbolic links to libmysql.so. So they are both same). A static library (libmysql.a) can be produced by removing the SHARED keyword from the following line in libmysql/CMakeLists.txt:

ADD_LIBRARY(libmysql          SHARED ${CLIENT_SOURCES} libmysql.def)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:29:49+00:00Added an answer on June 6, 2026 at 7:29 pm

    If it’s not generated, then it’s done by intent by developers.

    Check some build options, maybe there is option to enable static build of libmysqlclient_r. If not – you have to find its target declaration in one of CMakeLists.txt and adjust it to enable static build.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded mysql-connector-python-1.0.7-py2.7.msi from MySQL site and try to install but it gives
I am connecting an online MySQL database. I have downloaded MySQL ODBC Connector 5.1.
I have Eclipse Indigo on Mac Os X and I have downloaded mysql connector
I have downloaded MySQL Connector .NET 6.4.2 and installed it on my system for
Using RIDE, I want to connect to MySQL Database. I have downloaded the DatabaseLibrary
What does this mean: Next add reference to: MySql.Data actually I have downloaded mysql
i have downloaded whole database from geonames.org and imported all countries into mysql. i
I have downloaded Wikipedia latest dump and parsed it a MySQL Database. Now i
What references are necessary to have fluent nhibernate work with mysql. I have downloaded
I am trying to build MySQL's Connector/C from source in cygwin and there are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.