Closed edsantiago closed 9 months ago
It's been a long time since I looked at this. But I was last able to get someone on a working build at https://github.com/mrichards42/xword/issues/126.
can_encode_puz
was added in July 2021 (here), whereas the successful build in that bug was in 2020. So this may be a legitimate Linux-specific issue that my patch doesn't cover, rather than a build environment issue. At a glance, you may just need to remove the puz::
from that line (ref) - there's some evidence that Windows doesn't care about this but Linux does.
Otherwise, I think you have the right idea - I've had luck with Ubuntu (the linked user used 20.04)'s standard build chain and wxWidgets 3.1.5 built from source using build-wxwidgets.sh
as a foundation. After building, the executable is in bin/Debug/XWord, and some manual tweaks to the directory structure are needed per the "Fix the Linux build." commit description.
I don't have a Linux machine handy at the moment to test again myself, but hopefully that gives something to go on?
Thank you! Your hints got me past the hump. I now have a working container image build, which I've used on yesterday's AV Club crossword.
I took the liberty of submitting a PR against your fork: https://github.com/jpd236/xword/pull/1. No need to accept it; I'm just doing so because it might be helpful to other Linux people down the road. Again, many thanks.
I've been trying off and on to build this for several months, with no luck. Ubuntu, Fedora, using distro wxgtk (3.2) and
build-wxwidgets
(3.1.3), gcc and clang, I can no longer remember everything I've tried. (And yes, of course I've been using @jpd236's linux branch all this time, since before it merged).First symptom is a ton of
towlower()
errors, easily fixed by adding#include <cwctype>
topuz/puzstring.cpp
. Subsequent error isRequest for anyone who has done a successful Linux build: could you please post your environment (distro, compiler, libraries, and their versions) and (bonus) a recipe of commands to run?
FWIW this is my Containerfile
...and this is the latest I've tried running (via
podman run -it
):Thanks in advance.