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

Bad Makefile dependency error #428

Open
Chris-F5 opened this issue Sep 21, 2024 · 0 comments
Open

Bad Makefile dependency error #428

Chris-F5 opened this issue Sep 21, 2024 · 0 comments

Comments

@Chris-F5
Copy link

Describe the bug
When make is run on a system without GTK installed, the error is unhelpful.

make[1]: ui/glade/wifih.gresource.xml: Permission denied

To Reproduce
Run make on system without GTK installed, such that pkgconf --variable=glib_compile_resources gio-2.0 will run without writing to stdout.

Expected behavior
I expect the Makefile to give me an error saying that gio isn't installed.

Screenshots

$ make
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/user/linux-wifi-hotspot/src'
ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
make[1]: ui/glade/wifih.gresource.xml: Permission denied
make[1]: *** [Makefile:31: resources.c] Error 127
make[1]: Leaving directory '/home/chris/s/linux-wifi-hotspot/src'
make: *** [Makefile:5: all] Error 2

Desktop (please complete the following information):

  • OS: Raspberry Pi OS Lite

Additional context
GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0) in src/Makefile is empty so $(GLIB_COMPILE_RESOURCES) ui/glade/wifih.gresource.xml --target=ui/$@ --sourcedir=ui/glade --generate-source tries to run ui/glade/wifih.gresource.xml as an executable.

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

1 participant