Coder Social home page Coder Social logo

[libmysql] Build error on x64-windows about vcpkg HOT 3 OPEN

jphz avatar jphz commented on September 27, 2024
[libmysql] Build error on x64-windows

from vcpkg.

Comments (3)

WangWeiLin-MV avatar WangWeiLin-MV commented on September 27, 2024

The 5.7.16 is an old version of port, you could add an overlay-ports to update it. Here is a pseudo code:

git ls-tree bd8444042adf5f24eceafe33353340c2f0961a5b # from versions\l-\libmysql.json

cmake -E make_directory ./overlay-ports/libmysql
git show 9defe7fc19eef3b74c67b00d13bcd25de50b39cd > ./overlay-ports/libmysql/0001_cmake.patch
git show 504f14bbba443f20774a3b3df33549f2eeae8ee6 > ./overlay-ports/libmysql/CONTROL
git show 48412ccc744ec38ba1c522eb0c4a680806d517b7 > ./overlay-ports/libmysql/portfile.cmake

echo 'file(READ ./overlay-ports/libmysql/portfile.cmake PORTFILE_CONTENT)' > ./overlay-ports/libmysql-patch.cmake
echo 'string(REPLACE 30a3c55ebb15f18ededf814b66c108f18b2ced9c39e08319cdc9559ccf38d494ad9322098f2b04418ddf557e46d9d727be0e514be0ae982ac4f5186aa295b9c6 d6908c31f45396060d9dd2206187b13b0e29fafcb215dd3d9f87cfd1a3936eac8af7061d5d255e207367334e68b5b3dedb3fd9be72a21a6e89912bef07572504 PORTFILE_CONTENT ${PORTFILE_CONTENT})' >> ./overlay-ports/libmysql-patch.cmake
echo 'file(WRITE ./overlay-ports/libmysql/portfile.cmake ${PORTFILE_CONTENT})' >> ./overlay-ports/libmysql-patch.cmake
cmake -P ./overlay-ports/libmysql-patch.cmake

vcpkg install libmysql --overlay-ports ./overlay-ports/libmysql
# also in manifest mode: vcpkg install --overlay-ports ./overlay-ports/libmysql

from vcpkg.

jphz avatar jphz commented on September 27, 2024

Where to obtain the port from?

from vcpkg.

WangWeiLin-MV avatar WangWeiLin-MV commented on September 27, 2024

Where to obtain the port from?

The port still from you vcpkg git directory, but extract by git show and update the sha512, then specify an option with --overlay-ports.
https://learn.microsoft.com/en-us/vcpkg/concepts/overlay-ports

from vcpkg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.