Comments (4)
Finished in #26
There's a "hints" option for find_library
that lets you specify a path to the library, so that kept it from picking up the 64-bit version of mysql that is installed on the build VMs.
from etheos.
You may be aware of this already, but I would guess that all of the LNK2019
errors:
system.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function __catch$?RawQuery@Database@@QAE?AVDatabase_Result@@PBD_N1@Z$0 [D:\a\1\s\build\eoserv.vcxproj]
...
system.obj : error LNK2019: unresolved external symbol _mysql_close@4 referenced in function "public: void __thiscall Database::Close(void)" (?Close@Database@@QAEXXZ) [D:\a\1\s\build\eoserv.vcxproj]
are a result of the LNK4272
error:
C:\mysql-5.7.21-winx64\lib\mysqlclient.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86' [D:\a\1\s\build\eoserv.vcxproj]
Where we can see the discrepancy between the 32-bit compiler and 64-bit library arise in the following two CMake output lines:
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x86/cl.exe
...
-- Found MariaDB: C:/mysql-5.7.21-winx64/lib/mysqlclient.lib
from etheos.
The warnings in the "Install build dependencies" and "Build" jobs seem to go hand-in-hand:
WARNING: Warning: libmariadb.dll not found in $env:PATH
WARNING: Warning: no MariaDB found in $env:PATH - CMake may not be able to find the dependency
And it seems like we are expecting to use libmariadb.dll
but CMake is using mysqlclient.lib
:
-- Found MariaDB: C:/mysql-5.7.21-winx64/lib/mysqlclient.lib
I guess the question boils down to why install-deps.ps1
can't find libmariadb.dll
after installing it?
from etheos.
Yeah, I think this has to do with MySql client connector being pre-installed on the Azure Pipelines VMs. And apparently it has been built for x64 which is frustrating since eoserv isn't designed to build that way. We're in a catch 22 with the build:
- Force 32-bit mode to make eoserv build properly causes linker errors with MySQL because its x64
- Force 64-bit mode to fix linker errors causes build to fail because we need 32-bit
I think I'm going to build out my own VM for Windows builds and just have it target that, but that will take a hot minute so please stand by :)
from etheos.
Related Issues (11)
- Mirror with history HOT 1
- Add EditorConfig
- Update IgnorePacketFamilies to support more advanced filters
- Release Plan HOT 1
- SQLite support is broken HOT 3
- Welcome/Players Agree and Refresh Reply use constant AddChar(6) when it should be the player's class ID
- MapInfo requests are not implemented
- Board state is not saved in the world dump when the server shuts down
- Board MaxUserRecentPosts is not defined in the default config files
- Build system unification HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etheos.