[MacPorts] #69522: Problem to have acces to the libmpv in MacOs

MacPorts noreply at macports.org
Sat Mar 16 23:42:19 UTC 2024


#69522: Problem to have acces to the libmpv in MacOs
------------------------------+----------------------
  Reporter:  gabrielzschmitz  |      Owner:  Ionic
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.9.1
Resolution:                   |   Keywords:
      Port:  mpv              |
------------------------------+----------------------
Changes (by jmroot):

 * status:  new => assigned
 * cc: i0ntempest (added)
 * priority:  High => Normal
 * keywords:  libmpv library =>
 * owner:  (none) => Ionic


Old description:

> Can't really include the mpv library at any .c file (even adding the
> +libmpv variant)! Here's a real exemple:
>
> ```shell
> $ sudo make install
> cc -std=c99 -Wall -Wextra -pedantic -Wunused-result -Wno-unused-variable
> -Os -D_POSIX_C_SOURCE -DTOMATONOISE=\"/usr/local/bin/tomatonoise\"
> -DLOGPREFIX=\".local/share/tomato\"
> -DLOGFILE=\".local/share/tomato/tomato.log\"
> -DTMPFILE=\".local/share/tomato/tmp.log\"
> -DTIMERFILE=\".local/share/tomato/time.log\"
> -DNOTEPADFILE=\".local/share/tomato/notepad.log\" -I/usr/local/include
> -L/usr/local/lib  tomatonoise.c  `pkg-config --libs ncursesw mpv` -o
> tomatonoise
> tomatonoise.c:1:10: fatal error: 'mpv/client.h' file not found
> #include <mpv/client.h>
>          ^~~~~~~~~~~~~~
> 1 error generated.
> make: *** [tomatonoise] Error 1
> Error: Process completed with exit code 2.
> ```

New description:

 Can't really include the mpv library at any .c file (even adding the
 +libmpv variant)! Here's a real exemple:

 {{{#!shell
 $ sudo make install
 cc -std=c99 -Wall -Wextra -pedantic -Wunused-result -Wno-unused-variable
 -Os -D_POSIX_C_SOURCE -DTOMATONOISE=\"/usr/local/bin/tomatonoise\"
 -DLOGPREFIX=\".local/share/tomato\"
 -DLOGFILE=\".local/share/tomato/tomato.log\"
 -DTMPFILE=\".local/share/tomato/tmp.log\"
 -DTIMERFILE=\".local/share/tomato/time.log\"
 -DNOTEPADFILE=\".local/share/tomato/notepad.log\" -I/usr/local/include
 -L/usr/local/lib  tomatonoise.c  `pkg-config --libs ncursesw mpv` -o
 tomatonoise
 tomatonoise.c:1:10: fatal error: 'mpv/client.h' file not found
 #include <mpv/client.h>
          ^~~~~~~~~~~~~~
 1 error generated.
 make: *** [tomatonoise] Error 1
 Error: Process completed with exit code 2.
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/69522#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list