-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bye Boost Lib 🙌 #252
Bye Boost Lib 🙌 #252
Conversation
it is necessary to remove the %AppData%/otclient folder
Kinda sad that stduuid is not available from vcpkg :( |
I think this PR breaks compilation on ubuntu 20.04, |
I opened an issue: mariusbancila/stduuid#63
there is a solution for this: mariusbancila/stduuid#60 (comment) |
Well, we are not using stduuids cmake, cause you included the raw code into otclient, so that won't work, uuid.h includes from std library, and that's not present on ubuntu 20.04 (I tested compiling it there), so we probably need gsl to use instead (that's configured in cmake), that would mean we have to include gsl into otclient source too. EDIT: source: how to update g++:
|
well i don't see the problem, we put a solve saying we need gcc 10+. when stduuid goes to vcpkg, I remove it from the code, because I don't like it to be like that. so can we proceed with the merger? 😀 |
After it's building fine to me 👍🏼 |
I assume, after these changes, there won't be any need to install |
maybe we have to change cmake too. otclient/src/framework/CMakeLists.txt Line 192 in 5a1403a
|
If boost is completely not used, we can remove it |
What about otclient/src/framework/sql/database.h Line 29 in 2101afa
|
I think we could just get rid of this, its useless feature to have sql in client and I cant even see potential use for it XD |
I agree, I'll remove it in the next cleanup-related PR I'm doing, besides, the mysql library only has it for x64. about cmake, can anyone remove the boost and test? |
I did comment the part using boost and it built correctly. I'm not in my pc anymore, so can't push it right now. |
Hmm, using g++10 breaks compilation of json somehow |
Try gcc11 😁 |
Yep, g++11 does compile fine, 1:1 branch code as of now. |
Gotta update wiki after merge of this. |
I have already updated vcpkg libs on windows |
ubuntu is updated too |
well, the name says, many of the things we were using from the boost lib, already exist in c++20, which does not exist, equivalent methods were created or replaced by other libs, with that, we reduced the size of the executable and it will take less time to download the libs in vcpkg.
Note:
[32bits]
vcpkg install asio:x86-windows
[64bits]
vcpkg install asio:x64-windows
[static 32bits]
vcpkg install --triplet x86-windows-static asio