rofi-blocks
rofi-blocks copied to clipboard
Running into an error when building on Mint
I have rofi version 1.5.4, and these are the apt packages for json-glib I have installed: libjson-glib-1.0-0 libjson-glib-1.0-common libjson-glib-dev json-glib-tools
here are my 'make' errors:
pointblank@ao1-macbook:~/Desktop/rofi-blocks-master/build$ make
make all-recursive
make[1]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build'
Making all in src
make[2]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/src'
CC blocks_la-blocks.lo
In file included from /usr/include/glib-2.0/glib.h:62,
from /usr/include/rofi/rofi-types.h:4,
from /usr/include/rofi/mode.h:31,
from ../../src/blocks.c:11:
../../src/blocks.c: In function ‘on_new_input’:
../../src/blocks.c:224:21: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘gint64’ {aka ‘long int’} [-Wformat=]
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
| |
| gint64 {aka long int}
../../src/blocks.c:224:38: note: format string is defined here
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ~^
| |
| int
| %li
../../src/blocks.c: In function ‘blocks_mode_result’:
../../src/blocks.c:387:25: error: ‘MENU_CUSTOM_COMMAND’ undeclared (first use in this function); did you mean ‘MENU_CUSTOM_ACTION’?
387 | } else if ( mretv & MENU_CUSTOM_COMMAND ) {
| ^~~~~~~~~~~~~~~~~~~
| MENU_CUSTOM_ACTION
../../src/blocks.c:387:25: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Makefile:470: blocks_la-blocks.lo] Error 1
make[2]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/src'
make[1]: *** [Makefile:406: all-recursive] Error 1
make[1]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build'
make: *** [Makefile:338: all] Error 2
pointblank@ao1-macbook:~/Desktop/rofi-blocks-master/build$ make install
Making install in src
make[1]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/src'
CC blocks_la-blocks.lo
In file included from /usr/include/glib-2.0/glib.h:62,
from /usr/include/rofi/rofi-types.h:4,
from /usr/include/rofi/mode.h:31,
from ../../src/blocks.c:11:
../../src/blocks.c: In function ‘on_new_input’:
../../src/blocks.c:224:21: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘gint64’ {aka ‘long int’} [-Wformat=]
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
| |
| gint64 {aka long int}
../../src/blocks.c:224:38: note: format string is defined here
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ~^
| |
| int
| %li
../../src/blocks.c: In function ‘blocks_mode_result’:
../../src/blocks.c:387:25: error: ‘MENU_CUSTOM_COMMAND’ undeclared (first use in this function); did you mean ‘MENU_CUSTOM_ACTION’?
387 | } else if ( mretv & MENU_CUSTOM_COMMAND ) {
| ^~~~~~~~~~~~~~~~~~~
| MENU_CUSTOM_ACTION
../../src/blocks.c:387:25: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile:470: blocks_la-blocks.lo] Error 1
make[1]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/src'
make: *** [Makefile:406: install-recursive] Error 1
pointblank@ao1-macbook:~/Desktop/rofi-blocks-master/build$
As the error says change MENU_CUSTOM_COMMAND
to MENU_CUSTOM_ACTION
in src/blocks.c
, that's how I've overcome this issue.
As the error says change
MENU_CUSTOM_COMMAND
toMENU_CUSTOM_ACTION
insrc/blocks.c
, that's how I've overcome this issue.
Does not install. what am I missing?
pointblank@ao1-macbook:~/Desktop/rofi-blocks-master/build$ make make all-recursive make[1]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build' Making all in src make[2]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' CC blocks_la-blocks.lo In file included from /usr/include/glib-2.0/glib.h:62, from /usr/include/rofi/rofi-types.h:4, from /usr/include/rofi/mode.h:31, from ../../src/blocks.c:11: ../../src/blocks.c: In function ‘on_new_input’: ../../src/blocks.c:224:21: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘gint64’ {aka ‘long int’} [-Wformat=] 224 | g_debug("entry_to_focus %i", entry_to_focus); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ | | | gint64 {aka long int} ../../src/blocks.c:224:38: note: format string is defined here 224 | g_debug("entry_to_focus %i", entry_to_focus); | ~^ | | | int | %li CC blocks_la-blocks_mode_data.lo CC blocks_la-string_utils.lo CC blocks_la-json_glib_extensions.lo CC blocks_la-page_data.lo CC blocks_la-render_state.lo CCLD blocks.la make[2]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' Making all in tests make[2]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/tests' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/tests' make[2]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build' make[2]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build' make[1]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build'
pointblank@ao1-macbook:~/Desktop/rofi-blocks-master/build$ make install Making install in src make[1]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' make[2]: Entering directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/usr/lib/x86_64-linux-gnu/rofi/' /bin/bash ../libtool --mode=install /usr/bin/install -c blocks.la '/usr/lib/x86_64-linux-gnu/rofi/' libtool: install: /usr/bin/install -c .libs/blocks.so /usr/lib/x86_64-linux-gnu/rofi/blocks.so /usr/bin/install: cannot create regular file '/usr/lib/x86_64-linux-gnu/rofi/blocks.so': Permission denied make[2]: *** [Makefile:390: install-pluginLTLIBRARIES] Error 1 make[2]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' make[1]: *** [Makefile:615: install-am] Error 2 make[1]: Leaving directory '/home/pointblank/Desktop/rofi-blocks-master/build/src' make: *** [Makefile:406: install-recursive] Error 1