Missing dll

  • CGJ369
    5th Feb 2023 Member 0 Permalink

    Hello. I have been trying to build TPT using meson and MinGW as per the wiki guide (https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html).

    It all eventually compiled succesfully, however, when I try running the powder.exe file, a missing dll error appears (BZ2.dll not found). Can anyone help me? Thanks in advance.

  • Liver_K
    5th Feb 2023 Member 1 Permalink

    @CGJ369 (View Post)

     This is *only* for bzip2? It doesn't tell you any other libs are missing?

  • CGJ369
    5th Feb 2023 Member 0 Permalink

    @Liver_K (View Post)

     When I run it from the cmd, it only shows this one. When I run it from the build-debug folder, more missing dll errors appear, including this one, though, they are all in the MinGW folder and I've been able to copy them over, except for BZ2. I have also tried building it all over again and the same error appears.

  • Liver_K
    5th Feb 2023 Member 1 Permalink

    Yeah I have a similar problem when building with the mingw-w64 environment inside msys2, but it gives me notifications that all of the libs are missing everytime I run it from the windows environment (exits silently immediately when run from the mingw env). I will be waiting to see this solution 8D

  • LBPHacker
    5th Feb 2023 Developer 1 Permalink
    This happens because there is a bug in the logic that copies DLLs from our prebuilt library packs to the build site. It copies libbz2.dll in, but the executable wants bz2.dll. Just rename it and it'll start working.

    I'll fix this in a bit.
    Edited once by LBPHacker. Last: 5th Feb 2023
  • CGJ369
    5th Feb 2023 Member 0 Permalink

    @LBPHacker (View Post)

     It worked! Thank you :)

  • LBPHacker
    5th Feb 2023 Developer 0 Permalink
    Nice. I've fixed this in the meantime, you can pull from master.