Post ASWKgP82Mm4mpsxTxQ by mittorn@nerdica.net
(DIR) More posts by mittorn@nerdica.net
(DIR) Post #ASWFa0JRDg7MMUQ5ho by crunklord420@rdrama.cc
2023-02-10T00:06:54.365229Z
0 likes, 0 repeats
@a1ba have you been able to crosscompile hlsdk-portable from Linux to Windows via mingw? I looked at the travis, and that wasn't sufficient. I had to mess with CMake to add -static and remove the _snprintf definition since mingw includes it's own. It built, and I got the game to start but then it immediately crashes on level load.
(DIR) Post #ASWJ2ne7gwONL1W9JI by a1ba@suya.place
2023-02-10T00:44:57.627884Z
1 likes, 0 repeats
@crunklord420 mingw is just bad, it has random stupid bugs in its WinSDK headers. It's also incompatible with MSVC, usually requiring to recompile everything, including the engine which doesn't really supports mingw now (at least nobody worked on it).It's better to use MSVC instead, it works with Wine.
(DIR) Post #ASWKgP82Mm4mpsxTxQ by mittorn@nerdica.net
2023-02-10T01:01:27Z
0 likes, 0 repeats
@a1ba @crunklord420 msvc is more buggy now. Msvc compiler just crashes on correct code and you even cannot report compiler bug because it's microsoft hahait is ok to use clang with winsdk if you need msvc c++ abi compatibility, but it is not ok to use proprietary broken msvc
(DIR) Post #ASWKgPovnIO4yv1joe by a1ba@suya.place
2023-02-10T01:04:04.747476Z
0 likes, 0 repeats
@mittorn @crunklord420 I have no issues with it on engine and HLSDK builds. But honestly, I would use Clang if it had a simple way to connect just WinSDK to it, but when I tried last time, it didn't work.
(DIR) Post #ASWKklE49RKOWlr6q8 by mittorn@nerdica.net
2023-02-10T00:58:46Z
1 likes, 0 repeats
@crunklord420 @a1ba It worked before. Maybe you need -mstackrealign or something similar, but it just worked before with this script:https://github.com/FWGS/microndk/blob/master/build-shared-mingw.mkMaybe snprintf/vsnprintf defs break mingw headers and it gets into infinite recursion
(DIR) Post #ASWKkr8cAcX4rbLqAy by a1ba@suya.place
2023-02-10T01:04:54.598748Z
0 likes, 0 repeats
@mittorn @crunklord420 I haven't ported all the MinGW clutches to the new engine. :)
(DIR) Post #ASWL5qer9MM1SLRSYS by crunklord420@rdrama.cc
2023-02-10T01:08:43.117081Z
0 likes, 0 repeats
@a1ba @mittorn it would be nice to be able to crosscompile my mod to windows without having to do it in a VM or something. I don't want to pay for CI builders.
(DIR) Post #ASWLUm6xBxqEatTDLk by a1ba@suya.place
2023-02-10T01:13:12.573452Z
1 likes, 0 repeats
@crunklord420 @mittorn that's why I use github for that. At least once all Microsoft unlimited money goes for something good.I also used https://github.com/mstorsjo/msvc-wine, but debugging anything under Wine is meh (the only real debugger working under Wine is IDA lol), and I don't want to develop anything without a debugger.
(DIR) Post #ASXDChwnKUG1zaYInA by mittorn@nerdica.net
2023-02-10T07:28:31Z
0 likes, 0 repeats
@a1ba @crunklord420 gdb works for me, just do not use msvc bruh
(DIR) Post #ASXDCiQDZ5nFSqJnea by a1ba@suya.place
2023-02-10T11:15:01.404896Z
0 likes, 0 repeats
@mittorn @crunklord420 gdb never worked for me under Wine. It somehow looks into Wine itself.
(DIR) Post #ASZSVy1Vnmif6uDA9I by mittorn@nerdica.net
2023-02-11T13:14:15Z
0 likes, 0 repeats
@a1ba @crunklord420 did you check mingw64 gcc12+ toolchain with gdb?
(DIR) Post #ASZSVyaFicVaqeSuIa by a1ba@suya.place
2023-02-11T13:15:59.266690Z
0 likes, 0 repeats
@mittorn @crunklord420 you know exactly when I tried mingw last time.