Bug #107782 Building C API from sources is still not documented
Submitted: 6 Jul 2022 15:03 Modified: 8 Jul 2022 5:47
Reporter: Igor Korot Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / C Documentation Severity:S1 (Critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[6 Jul 2022 15:03] Igor Korot
Description:
This bug is a direct descendant of https://bugs.mysql.com/bug.php?id=107671&thanks=2&notify=195.

Can someone,for the love of God, please, please please explain to me why is it so hard to copy the existing documentation page from the Connector/C 5.x series about building from sources into the new C API documentation, create a link to it from the main contents page, modify it to add the new stuff related to the version update and publish it?

Or just look at that documentation (version 5.x), see that building from sources have its own dedicated page with everything explained and make the exact same page in the new version?

Can someone please please please do that?

The page I'm talking about was still present at the time I filed one of those bugs in history of this this chain so it is not that hard.

One more time - I'm looking for a page that says:

[quote]
Install CMake version XXX or newer
Go to the page http://X.Y.Z and download the source archive
Unpack it to C:\mySQL_C_API
Open CMake GUI and go to C:\mySQL_C_API\build_folder
Select options 1 and 3 and unselect option 2
Option 1 will do....
Option 2 will do....
Option 3 will do....
Click "Build"
The resulting libraries will be stored in 
[/quote]

This should be on 1 page and this page shuold be linked from 
  https://dev.mysql.com/doc/c-api/8.0/en/c-api-implementations.html.

This is how the previous documentation was.

Thank you.

As stated in the footnote - re-opening the tickets is huge PITA so I don't have any other choice but to make new ones.

How to repeat:
Open the documentation for the "new" C API and note that the page about building from source is not available.
[7 Jul 2022 12:03] MySQL Verification Team
Hi Mr. Korot,

Your bug is a duplicate of the following bug:

https://bugs.mysql.com/bug.php?id=107671

The instructions in the last comment on that page are more then sufficient for making our C API.

We shall copy them here, so that you can find them easily ........

Compile MySQL Server; as this also compiles libmysqlclient. This is the only way to compile libmysqlclient.

It really is that simple. MySQL Server has extensive documentation about how to compile MySQL Server so there's no need to replicate that.

The page I linked to tells you to compile MySQL Server, and links to that "Installing MySQL from Source" documentation. Use that documentation.

I'm sorry that this isn't exactly what you desire, but I think you'll find the desired information there. If not then please use a support forum for tips related to compiling MySQL Server on Windows / MacOS / Linux.
[8 Jul 2022 5:47] Igor Korot
So, there is no way to compile ONLY libmysqlclient.dll/dylib?

That sucks - it should be possible. They are 2 different pieces of software.

And I guess this is the difference between 5.x and 8.x - with older version yo can do separate copilation and now you can't.