• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

vcpkg libmariadb

snakeu

New Member
Joined
Jul 16, 2007
Messages
6
Reaction score
0
Hi,

Im trying to compile TFS 1.2 , I got everything working except that I cant install libmariadb through vcpkg.

I get this error , please help.


Building package libmariadb[core]:x64-windows...
-- Using cached C:/Users/xxxx/Documents/vcpkg/downloads/MariaDB-mariadb-connector-c-8e9c3116105d9a998a60991b7f4ba910d454d4b1.tar.gz
-- Extracting source C:/Users/xxxx/Documents/vcpkg/downloads/MariaDB-mariadb-connector-c-8e9c3116105d9a998a60991b7f4ba910d454d4b1.tar.gz
-- Applying patch md.patch
CMake Error at scripts/cmake/vcpkg_apply_patches.cmake:50 (message):
Applying patch failed. Patch needs to be updated to work with source being
used by vcpkg!
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive_ex.cmake:134 (vcpkg_apply_patches)
scripts/cmake/vcpkg_from_github.cmake:139 (vcpkg_extract_source_archive_ex)
ports/libmariadb/portfile.cmake:8 (vcpkg_from_github)
scripts/ports.cmake:90 (include)


Error: Building package libmariadb:x64-windows failed with: BUILD_FAILED
 
Solution
You don't need that to compile Your server, instead of this You can just simply install only mysql that will work.
Post automatically merged:

Try to use this :
Code:
vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-filesystem:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows

And then use this:
Code:
vcpkg install libmysql:x64-windows
Is there anyway around to compile and make a server work without vcpkg?
Post automatically merged:

It's not working, there is some kind of discussion happening on vcpkg to fix this, we should wait until it's fixed.

Is there anyway around it? Like without vcpkg?
 
Is there anyway around to compile and make a server work without vcpkg?
Post automatically merged:



Is there anyway around it? Like without vcpkg?

Try to install the mysql library instead, not sure it will work because I couldn't compile using Windows 10 at all.
Post automatically merged:

To be honest I am switching to Ubuntu 18.04 instead of using Windows 10 to compile the server, it looks much easier and has no vcpkg dependencies. I spent last two days trying to compile the forgotternserver and otclient with no success!
 
It's not working, there is some kind of discussion happening on vcpkg to fix this, we should wait until it's fixed.
If this is the truth, then it's all good, but this error has been there since at least May 2019.
I really don't feel like switching OS or even installing an additional one just to compile an OT Server.

Hope it gets fixed!
 
You don't need that to compile Your server, instead of this You can just simply install only mysql that will work.
Post automatically merged:

Try to use this :
Code:
vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-filesystem:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows

And then use this:
Code:
vcpkg install libmysql:x64-windows
 
Last edited:
Solution
So it's possible to switch out libmariadb to libmysql without any problems?

And you mean libmysql:x64-windows, instead of x86 right?
 
Right, I mean x64. Yeah You can skip installing libmariadb, I was had same problem instaling VCPKG on my Win7, that was fix all my issues.
Remember to run integrate install after all changes to add all include to VS.
 
You just helped me compile my very first source.
I thank you deeply! 😃

We need to get in contact with the TFS team so they can change the compiling tutorial on git hub.
 
Changing to libmysql didnt work for me , I still get a error.

-----------------------------------------------------------------------------------------------
Building package libmysql[core]:x64-windows...
-- Downloading https://github.com/mysql/mysql-server/archive/mysql-8.0.4.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):


File does not have expected hash:

File path: [ C:/Users/xxxx/Documents/vcpkg/downloads/temp/mysql-mysql-server-mysql-8.0.4.tar.gz ]
Expected hash: [ 8d9129e7670e88df14238299052a5fe6d4f3e40bf27ef7a3ca8f4f91fb40507b13463e9bd24435b34e5d06c5d056dfb259fb04e77cc251b188eea734db5642be ]
Actual hash: [ 39392eea30f1110c476f7d8d50159b16162b6dd741683f7ba2c440383fabaeef9565144285b969bce8ef2f26d2b4ce6f615256f6a61f227a80ed3ad9fa5bc3ee ]

The file may have been corrupted in transit. This can be caused by
proxies. If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:password@your-proxy-ip-address:port/".



Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/libmysql/portfile.cmake:19 (vcpkg_from_github)
scripts/ports.cmake:90 (include)
Post automatically merged:

Changing to libmysql didnt work for me , I still get a error.

-----------------------------------------------------------------------------------------------
Building package libmysql[core]:x64-windows...
-- Downloading https://github.com/mysql/mysql-server/archive/mysql-8.0.4.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):


File does not have expected hash:

File path: [ C:/Users/xxxx/Documents/vcpkg/downloads/temp/mysql-mysql-server-mysql-8.0.4.tar.gz ]
Expected hash: [ 8d9129e7670e88df14238299052a5fe6d4f3e40bf27ef7a3ca8f4f91fb40507b13463e9bd24435b34e5d06c5d056dfb259fb04e77cc251b188eea734db5642be ]
Actual hash: [ 39392eea30f1110c476f7d8d50159b16162b6dd741683f7ba2c440383fabaeef9565144285b969bce8ef2f26d2b4ce6f615256f6a61f227a80ed3ad9fa5bc3ee ]

The file may have been corrupted in transit. This can be caused by
proxies. If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:password@your-proxy-ip-address:port/".



Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/libmysql/portfile.cmake:19 (vcpkg_from_github)
scripts/ports.cmake:90 (include)


Now it worked to install libmysql, Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
For anyone who's still having same issue and isn't satisfied with using libmysql
Remove your vcpkg folder and then follow those steps by order it will help you getting it to work.
Code:
git clone https://github.com/Microsoft/vcpkg.git
Code:
cd vcpkg
Code:
git checkout pr-fix-libmariadb
Code:
git fetch origin pull/10043/head:pr-fix-libmariadb
Code:
.\bootstrap-vcpkg.sh
Code:
.\vcpkg integrate install
Code:
.\vcpkg install libmariadb:x64-windows
Then install the main TFS libraries
64x
Code:
.\vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-filesystem:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows
32x
Code:
.\vcpkg install boost-iostreams:x86-windows boost-asio:x86-windows boost-system:x86-windows boost-filesystem:x86-windows boost-variant:x86-windows boost-lockfree:x86-windows luajit:x86-windows libmariadb:x86-windows pugixml:x86-windows mpir:x86-windows cryptopp:x86-windows
 
Back
Top