Meson not compiling

  • laviday
    8th Apr 2021 Member 0 Permalink
    I'm trying to compile TPT with meson but I keep getting this error "'TernaryNode' object has no attribute 'subdir'" I've tried looking up a solution for this but I haven't been able to find anything. Here (uploaded log to pastebin -- @LBPHacker ) is the entire output of the command "meson build-debug". If anyone knows how to fix this I would appriciate it.
    Edited once by LBPHacker. Last: 8th Apr 2021
  • LBPHacker
    8th Apr 2021 Developer 0 Permalink
  • laviday
    8th Apr 2021 Member 0 Permalink

    @LBPHacker (View Post)

     I don't know how to do that (I'm not very good at linux)

  • jacob1
    8th Apr 2021 Developer 0 Permalink
    @laviday (View Post)
    Check this page: https://mesonbuild.com/Getting-meson.html

    It should be something like "sudo pip3 install --upgrade meson"
  • laviday
    8th Apr 2021 Member 0 Permalink

    I've upgraded meson succesfully but I'm still getting the same error.

  • jacob1
    8th Apr 2021 Developer 0 Permalink
    @laviday (View Post)
    Try doing "sudo apt uninstall meson" and then restarting your terminal. It might be using the meson you installed from your package manager, instead of the meson from pip.
  • laviday
    22nd Apr 2021 Member 0 Permalink

    Sorry to bring back this old thread but now after ensuring meson is updated I'm getting this error when I try to compile it.

     

    Pkg-config binary for machine MachineChoice.HOST not found. Giving up.

     

    I have no idea how to fix this and I haven't been able to find an answer online. Anyone have any ideas?

  • LBPHacker
    22nd Apr 2021 Developer 0 Permalink
    Going to need the full log, like in the OP. Anyway, checking if you have the pkg-config package installed is a good starting point.
    Edited once by LBPHacker. Last: 22nd Apr 2021
  • laviday
    27th Apr 2021 Member 0 Permalink

    Here is the full log after pkg-config

     

    The Meson build system
    Version: 0.57.2
    Source dir: /home/dav/The-Powder-Toy-master
    Build dir: /home/dav/The-Powder-Toy-master/build-debug
    Build type: native build
    Project name: the-powder-toy
    Project version: the.cake.is.a.lie
    C compiler for the host machine: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
    C linker for the host machine: cc ld.bfd 2.31.1
    C++ compiler for the host machine: c++ (gcc 8.3.0 "c++ (Debian 8.3.0-6) 8.3.0")
    C++ linker for the host machine: c++ ld.bfd 2.31.1
    Host machine cpu family: x86_64
    Host machine cpu: x86_64
    Program python3 found: YES (/usr/bin/python3)
    Found pkg-config: /usr/bin/pkg-config (0.29)
    Did not find CMake 'cmake'
    Found CMake: NO
    Run-time dependency luajit found: NO (tried pkgconfig)

    meson.build:110:1: ERROR: Dependency "luajit" not found, tried pkgconfig

     

     

     

    I apologize for only being active somewhat. I'm only able to work on this a few days a week.

  • jacob1
    27th Apr 2021 Developer 0 Permalink
    @laviday (View Post)
    Have you followed the Linux guide on the wiki? It doesn't look like you installed the libraries

    https://powdertoy.co.uk/Wiki/W/Building_TPT_with_Meson.html#Linux