Problems building TPT on Windows

  • Furry_02
    29th Jan 2022 Member 0 Permalink

    Command I used: `meson build-debug` executed in the root directory of the cloned repo. (I already have all build software installed, so I didn't set it up wrong, I think.)

     

    Here's the error it gave me: https://pastebin.com/qYhzK36n

     

    This seems to be a problem with Python, but I can't tell what exactly. I see Meson in there so maybe a problem with Meson instead of Python? Not sure.

    Edited once by Furry_02. Last: 29th Jan 2022
  • jacob1
    29th Jan 2022 Developer 0 Permalink
    It could be either of the two. I recommend reinstalling meson and if that doesn't work, reinstalling python. If you have more than one python installation, there's a good chance that could cause problems (maybe you installed meson to the user directory installation and the other installation can't find it)

    The error appears to be an internal error in meson, while importing certain modules. So that's why reinstalling meson may fix it, but reinstalling python also should.
  • Furry_02
    29th Jan 2022 Member 0 Permalink

    I fixed that error by reinstalling Meson, but now I'm getting a new error: https://pastebin.com/MGS8DpH3

     

    I have no idea what that error means, other than something to do with MSVC.

  • LBPHacker
    29th Jan 2022 Developer 0 Permalink
    Two problems: your toolchain uses gcc 6.3.0 (not necessarily a problem, but we've only tested with 8.1.0) and it targets 32-bit machines (the guide tells you that this is not supported).
  • Furry_02
    29th Jan 2022 Member 0 Permalink

    I've no idea how I would fix either of those problems..

  • jacob1
    29th Jan 2022 Developer 0 Permalink
    @Furry_02 (View Post)
    If you are following the wiki guide, it should have had you install the correct version of MinGW. The one you installed isn't correct and is fairly old
    https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html#Building_for_the_first_time_with_MinGW
    Try uninstalling mingw and reinstalling that version

    You could also consider using msvc instead which is guaranteed to work
    https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html#Building_for_the_first_time_with_MSVC
    Edited once by jacob1. Last: 29th Jan 2022
  • Furry_02
    29th Jan 2022 Member 0 Permalink

    I can't really uninstall my current install of MinGW due to some applications requiring this specific version of MinGW to build. (I have no idea why. They just don't build without this specific version.) As far as I can tell, just installing the new version in another directory just gave me the same error, but it seems it is using the new version, which makes no sense to me. https://pastebin.com/NyqGSzpf

  • jacob1
    29th Jan 2022 Developer 0 Permalink
    @Furry_02 (View Post)
    Ok, so you are on the latest version of MinGW now which is good. But that error doesn't make sense to me either.

    It seems like you are affected by a bug in older versions of the build script. Please make sure you are compiling the latest version of TPT. There's several things in the logs that are simply not possible on the latest source code. Updating may fix it.
  • Furry_02
    29th Jan 2022 Member 0 Permalink

    What on Earth?? https://pastebin.com/yHVLbjid

     

    Now apparently the new MinGW isn't even being used, even though it exists in PATH: 

    $ echo $PATH
    /c/Program Files/mingw-64/x86_64-posix-seh-rt_v6-rev0/mingw64/bin:[bunch of other stuff]

     

    I am very confused. What on Earth is going on!?

  • LBPHacker
    30th Jan 2022 Developer 0 Permalink
    We've decided that fixing your problem requires a higher bandwidth communication platform than the forum provides. Can you join our Discord server or our development channel on Libera?