ParadoxGameConverters / Vic2ToHoI4

Converts Victoria 2 saves into Hearts of Iron 4 mods.
MIT License
28 stars 21 forks source link

"‘class wxSizerFlags’ has no member named ‘CenterHorizontal’" when building on Fedora 38 #1700

Closed gCaglia closed 4 months ago

gCaglia commented 4 months ago

When trying to run bash ./tools/build_Vic2ToHoI4_release.sh, I am getting the following error:

error: ‘class wxSizerFlags’ has no member named ‘CenterHorizontal’

I am running on Fedora 38.

I attached stdout and stderr, hope that helps: stderr.log stdout.log

Idhrendur commented 4 months ago

That seems like it's an issue with the frontend. I asked the developer who made it and this was his reply:

I only assume whatever wxwidgets version they installed locally is not a mmatch with what we use on the build servers. We're on 3.2.1 and current latest is 3.2.4 Without more info I really can't help, and there's a good chance that even with more info I still couldn't help. We've never build on fedora. Just to confirm one detail - on private repos where we fork Fronter, it builds on github-hosted machines using the "github.repository_owner != 'ParadoxGameConverters'" stanza. In the workflow it installs the requisite packages directly from ubuntu's repo and there's zero issues. It's possible they didn't install everything they need, such as -dev packages or whatnot.

Beyond that, the fronter isn't strictly necessary and may not work properly on linux anyways. In addition to double-checking the wxwidgets versions, you could try removing the ConverterFrontend target in the script. You'd have to manually configure a config file for the converter to run it, but that should be straightforward enough.

gCaglia commented 4 months ago

Indeed, my wxWidgets version is different, but I ended up skipping the ConverterFronted and was able to do the conversion that way. The resulting mod seems to be broken somewhere, but that's probably unrelated. Thanks for the help!

Idhrendur commented 4 months ago

If you follow up on the forum thread, we can probably help you through that: https://forum.paradoxplaza.com/forum/threads/vic2-to-hoi4-converter-release-thread.948992/