lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.34k stars 307 forks source link

cli only compilation broken #124

Closed parkerlreed closed 3 years ago

parkerlreed commented 3 years ago

Describe the bug

Default make tries to use gtk and the suggested install-cli-only doesn't exist

To Reproduce Steps to reproduce the behavior:

  1. Clone repo
  2. make
make[1]: Entering directory '/home/parker/build/linux-wifi-hotspot/src/linux-wifi-hotspot-3.5.1/src'
/usr/bin/glib-compile-resources ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
make[2]: Entering directory '/home/parker/build/linux-wifi-hotspot/src/linux-wifi-hotspot-3.5.1/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:36: ../build/main.o] Error 1
make[2]: Leaving directory '/home/parker/build/linux-wifi-hotspot/src/linux-wifi-hotspot-3.5.1/src'
make[1]: *** [Makefile:33: resources.c] Error 2
make[1]: Leaving directory '/home/parker/build/linux-wifi-hotspot/src/linux-wifi-hotspot-3.5.1/src'
make: *** [Makefile:5: all] Error 2
$ make 
all        clean      clean-old  install    uninstall  
parkerlreed commented 3 years ago

I just realized these commands are only in master. 3.5.1 does not contain these,