gabrielzschmitz / Tomato.C

A pomodoro timer written in pure C.
GNU General Public License v3.0
315 stars 19 forks source link

Compilation terminated #50

Closed NischalDawadi closed 5 months ago

NischalDawadi commented 5 months ago

cc -std=c99 -Wall -Wextra -pedantic -Wunused-result -Wno-unused-variable -Os -D_ISOC99_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 Package mpv was not found in the pkg-config search path. Perhaps you should add the directory containing `mpv.pc' to the PKG_CONFIG_PATH environment variable Package 'mpv', required by 'virtual:world', not found tomatonoise.c:1:10: fatal error: mpv/client.h: No such file or directory 1 | #include <mpv/client.h> | ^~~~~~ compilation terminated. make: *** [: tomatonoise] Error 1 FAIL

I am using fedora 39 WM : Hyprland

gabrielzschmitz commented 5 months ago

Try installing all dependencies first:

$ sudo dnf groupinstall 'Development Tools' && sudo dnf install ncurses-devel mpv-devel pkgconf libnotify

Then:

$ sudo make install
NischalDawadi commented 5 months ago

Yes, it worked. mpv-devel was not mentioned in readme last time.

gabrielzschmitz commented 5 months ago

Yes, it worked. mpv-devel was not mentioned in readme last time.

Yeah, my bad. Didn't know fedora splits librarys from programs like in Ubuntu.