Meson unable to get include dir

  • Slothscript
    10th July Member 0 Permalink

    I was following the tutorial for modding TPT, but when running `meson setup build-debug` it gave this error: ```

    The Meson build system

    Version: 1.4.1

    Source dir: /Users/---/Desktop/Programming_stuff/TPT/bio

    Build dir: /Users/----/Desktop/Programming_stuff/TPT/bio/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 15.0.0 "Apple clang version 15.0.0 (clang-1500.3.9.4)")

    C linker for the host machine: cc ld64 1053.12

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

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

    Host machine cpu family: x86_64

    Host machine cpu: x86_64

    Program python3 found: YES (/usr/local/bin/python3)

    Program inkscape skipped: feature render_icons_with_inkscape disabled

     

    meson.build:114:22: ERROR: Include dir /opt/homebrew/Cellar/bzip2/1.0.8/include does not exist.

     

    A full log can be found at /Users/----/Desktop/Programming_stuff/TPT/bio/build-debug/meson-logs/meson-log.txt

    ```

     

    How do I fix this?

    I'm on MacOS Sonoma (14.5)

     

    *Edit 1: I just read more of the wiki and I added the elusive bzip onto it, but it still is broken. I've updated the log error with the new elusive bzip2. Also, I don't know why its saying i don't have inkscape, because I just installed it.

    Edited 3 times by Slothscript. Last: 10th July
  • LBPHacker
    10th July Developer 1 Permalink
    Those paths are an example, you have to figure out where brew puts bzip2 yourself :| It's terrible but the bzip2 maintainers can't be bothered to include a single file that would make this work automatically.
  • Slothscript
    10th July Member 0 Permalink

    @LBPHacker (View Post)

     Okay, I've fixed the issue by changing the example /opt/homebrew (which is for sillicon macs) to /usr/local (for intel macs), but do you also know why its saying 'Program inkscape skipped' as well? After I saw this first I installed inkscape, but it still says it can't find it.

     

    Also, this (the sillicon/intel difference) would be helpful information on the wiki, so possibly you could add it to the bzip part of building?

    Edited once by Slothscript. Last: 10th July
  • LBPHacker
    10th July Developer 0 Permalink
    It tells you why inkscape is not being looked for: the render_icons_with_inkscape feature is disabled.

    If you're sure /usr/local vs /opt/homebrew is the only difference in the path, I can add it. I couldn't test this as I have no access to arm macs.