Fail when 'meson setup build-debug'

  • susmemorys
    20th Jul 2023 Member 0 Permalink

    Yeah i'm on Mac, at first it complains with /usr/include but i solve it with the instructions of the wiki, then it complains again about luajit though i installed it through Homebrew: 

    The Meson build system

    Version: 1.2.0

    Source dir: /Users/masterkebabsuperstar/The-Powder-Toy

    Build dir: /Users/masterkebabsuperstar/The-Powder-Toy/build-debug

    Build type: native build

     

    meson.build:1:0: ERROR: Unknown options: "PKG_CONFIG_PATH"

     

    A full log can be found at /Users/masterkebabsuperstar/The-Powder-Toy/build-debug/meson-logs/meson-log.txt

    masterkebabsuperstar@CreepCreepGoToURSheep The-Powder-Toy % meson setup -Dworkaround_elusive_bzip2=true -Dworkaround_elusive_bzip2_lib_dir=/opt/homebrew/Cellar/bzip2/1.0.8/lib -Dworkaround_elusive_bzip2_include_dir=/opt/homebrew/Cellar/bzip2/1.0.8/include -Dworkaround_elusive_bzip2_static=true  build-debug 

    The Meson build system

    Version: 1.2.0

    Source dir: /Users/masterkebabsuperstar/The-Powder-Toy

    Build dir: /Users/masterkebabsuperstar/The-Powder-Toy/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 (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")

    C linker for the host machine: cc ld64 711

    C++ compiler for the host machine: c++ (clang 13.0.0 "Apple clang version 13.0.0 (clang-1300.0.29.30)")

    C++ linker for the host machine: c++ ld64 711

    Host machine cpu family: aarch64

    Host machine cpu: aarch64

    Program inkscape skipped: feature render_icons_with_inkscape disabled

    Has header "bzlib.h" : YES 

    Library bz2 found: YES

    Found pkg-config: /opt/local/bin/pkg-config (0.29.2)

    Found CMake: /opt/homebrew/bin/cmake (3.22.2)

    Run-time dependency luajit found: NO (tried pkgconfig, framework and cmake)

     

    meson.build:160:11: ERROR: Dependency "luajit" not found, tried pkgconfig, framework and cmake

    Though i've been Googling like +2 hours, nothing to find about it that works well on Mac M1

  • LBPHacker
    20th Jul 2023 Developer 0 Permalink
    You'll have to figure out where homebrew installs luajit's build dependencies and point meson at them. If you need help with this, get on irc/discord, this is not something that can be solved on a forum.