linux-wifi-hotspot
linux-wifi-hotspot copied to clipboard
fatal error: gtk/gtk.h: No such file or directory
Describe the bug
When running make
I have this error:
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/opt/linux-wifi-hotspot/src'
/usr/bin/glib-compile-resources ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
make[2]: Entering directory '/opt/linux-wifi-hotspot/src'
gcc -c -o ../build/main.o ui/main.c `pkg-config --cflags gtk+-3.0`
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gtk+-3.0', required by 'virtual:world', not found
In file included from ui/main.c:28:
ui/ui.h:34:10: fatal error: gtk/gtk.h: No such file or directory
34 | #include <gtk/gtk.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:35: ../build/main.o] Error 1
make[2]: Leaving directory '/opt/linux-wifi-hotspot/src'
make[1]: *** [Makefile:32: resources.c] Error 2
make[1]: Leaving directory '/opt/linux-wifi-hotspot/src'
make: *** [Makefile:5: all] Error 2
I'm running Fedora 36 and have installed all the packages indicated, including gtk3-devel
To Reproduce Steps to reproduce the behavior:
- sudo dnf install -y gtk3-devel gcc gcc-c++ kernel-devel pkg-config make hostapd qrencode-devel libpng-devel
- git clone https://github.com/lakinduakash/linux-wifi-hotspot
- cd linux-wifi-hotspot
- make