• 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!

New in OTland need help with the compiling

Nockerman

New Member
Joined
Mar 29, 2020
Messages
13
Reaction score
0
Hi guys, first sorry for my english.... I have one problem with compiling the forgotten server 1.2
I get the following errors in visual studio.

1585504495239.png
i get more errors before but the errors has solved installing libmariadb

now the compiling are complete but this errors persist.

I try sometimes install the libmysql... but i get the error

Code:
\forgottenserver\vcpkg>vcpkg install libmysql
Computing installation plan...
The following packages will be built and installed:
    libmysql[core]:x86-windows
Starting package 1/1: libmysql:x86-windows
Building package libmysql[core]:x86-windows...
CMake Error at scripts/cmake/vcpkg_fail_port_install.cmake:93 (message):
  Architecture 'x86' not supported by libmysql!

Call Stack (most recent call first):
  ports/libmysql/portfile.cmake:1 (vcpkg_fail_port_install)
  scripts/ports.cmake:90 (include)


Error: Building package libmysql:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: libmysql:x86-windows
  Vcpkg version: 2020.02.04-nohash

Additionally, attach any relevant sections from the log files above.

how i can solve it. if need something more pls tell me!
Thanks
 
Solution
I'm getting the feeling you need to do these:

Bash:
set VCPKG_DEFAULT_TRIPLET=x64-windows
set VCPKG_TARGET_ARCHITECTURE=x64
set VCPKG_LIBRARY_LINKAGE=dynamic
set VCPKG_CRT_LINKAGE=static

Specifying the architecture on every single package like they do in that linked thread is noob shit, a clear symptom of an OS where compiling software is a second-class citizen instead of a fundamental instrument of how an OS should work. The fact that 64-bit Windows defaults to compiling 32-bit sofware, the noob too strong! I just can't take it! Why does one part of the toolchain on Windows do something different than the other part! This is operating system schizophrenia!

Now this should work simply without...
Hello, take a look into this post, maybe that will help.
vcpkg libmariadb (https://otland.net/threads/vcpkg-libmariadb.268599/#post-2592626)

And also make sure if You use 64x or 86x operating system.
Hi killer, after installing libmariadb i have arround 80 errors, before i have only 7, you can see in the screenshot.
The error says i need to install libmysql x86 but when i go to download It , give me error, you can see in Code.

" Architecture 'x86' not supported by libmysql! "

I have Windows 10, i7 x64.

I dont know why cant instal libMySQL,
I think i need to change the #include MySQL
Or something but i dont have any idea of programing.

The compilation its complete, but i dont like this errors and no idea what It does.

Thanks
 
I'm getting the feeling you need to do these:

Bash:
set VCPKG_DEFAULT_TRIPLET=x64-windows
set VCPKG_TARGET_ARCHITECTURE=x64
set VCPKG_LIBRARY_LINKAGE=dynamic
set VCPKG_CRT_LINKAGE=static

Specifying the architecture on every single package like they do in that linked thread is noob shit, a clear symptom of an OS where compiling software is a second-class citizen instead of a fundamental instrument of how an OS should work. The fact that 64-bit Windows defaults to compiling 32-bit sofware, the noob too strong! I just can't take it! Why does one part of the toolchain on Windows do something different than the other part! This is operating system schizophrenia!

Now this should work simply without all that extra specifying
Bash:
vcpkg install boost-iostreams boost-asio boost-system boost-filesystem boost-variant boost-lockfree luajit libmariadb pugixml mpir cryptopp
 
Last edited:
Solution
.\vcpkg install libmariadb:x64-windows
Mmmm.... I have libmariadb.
Realy, i said it. 2 times.

Before installing libmariadb i have arround 80 errors.

After installing libmariadb i have the errors you can see in the screenshots if the first post.

But here is my problem.

I have libmariadb

Cant install libmysql

In the visual studio errors, point to #include mysql/mysql.h

I dont have any idea of programing.

What need to change?
 
Ok, i dont see you edites your post, sorry. How i can do it?

"set VCPKG_DEFAULT_TRIPLET=x64-windows-dynamic"

How It works?, i need to put it on consola or where i can put it?

The errors dont change, the error is... cant install MySQL.

With libmariadb only have the 7 errors you can see in first screenshot.
 
Last edited:
The same command line place you did vcpkg commands before?

How did you run vcpkg before? And do them one at a time. Do not try to paste all four at once.

Post automatically merged:


set your triplet this: (why the !@#$!@% is this called a triplet. I hate Windows so !@#$!@#$ much)
set VCPKG_DEFAULT_TRIPLET=x64-windows

and then do this
vcpkg search mysql


What does that command output?

and what do you already have?
vcpkg list
 
Last edited:
Ok men, i put the 4 lines in the console, one by one XD and now no have errors! Thanks.

========== Compilar: 0 correctos, 0 incorrectos, 1 actualizados, 0 omitidos ==========
 
Be sure to give my posts đź‘Ť in the footer please, it's the best way to say thanks.

And mark that post with the four lines as best answer.
 
Back
Top