Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into an error when building on Mint #23

Open
Ao1Pointblank opened this issue Jul 29, 2021 · 2 comments
Open

Running into an error when building on Mint #23

Ao1Pointblank opened this issue Jul 29, 2021 · 2 comments

Comments

@Ao1Pointblank
Copy link

Ao1Pointblank commented Jul 29, 2021

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$ 
@andreyuhai
Copy link

andreyuhai commented Aug 22, 2021

As the error says change MENU_CUSTOM_COMMAND to MENU_CUSTOM_ACTION in src/blocks.c, that's how I've overcome this issue.

@Ao1Pointblank
Copy link
Author

As the error says change MENU_CUSTOM_COMMAND to MENU_CUSTOM_ACTION in src/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants