linux-wifi-hotspot: Unable to build on Manjaro

Describe the bug I’m unable to build this tool from source

To Reproduce Steps to reproduce the behavior:

  1. Run ‘yay -Sy linux-wifi-hotspot’
  2. Install all the required dependencies
  3. Wait for make to start
  4. See error

Expected behavior The program compiles fine

Desktop (please complete the following information):

  • OS: Manjaro
  • Version 20.1.1

Terminal output

==> Starting build()...
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/ag/.cache/yay/linux-wifi-hotspot/src/linux-wifi-hotspot-3.0.0/src'
/usr/bin/glib-compile-resources ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
gcc -c -o ../build/main.o ui/main.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/ui.o ui/ui.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/h_prop.o ui/h_prop.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/util.o ui/util.c `pkg-config --cflags gtk+-3.0`
g++ -c -o ../build/read_config.o ui/read_config.cpp
make[1]: *** No rule to make target '../build/resources.o', needed by '../build/wihotspot-gui'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/ag/.cache/yay/linux-wifi-hotspot/src/linux-wifi-hotspot-3.0.0/src'
make: *** [Makefile:5: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: linux-wifi-hotspot

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@marchingon12 The reason for not working from GUI is it does not include ieee80211n or ieee80211ac options. For a temporary fix, you can modify line https://github.com/lakinduakash/linux-wifi-hotspot/blob/5599e6fb824dd63a6cd94a914ae32d6f20503dc6/src/ui/h_prop.c#L101 as snprintf(cmd_mkconfig, BUFSIZE, "%s %s %s %s '%s' '%s' %s %s --ieee80211ac",SUDO, CREATE_AP, cv->iface_wifi, cv->iface_inet, cv->ssid, cv->pass,MKCONFIG,a);

Uninstall the current program and rebuild it and then install it.

I will add GUI option to select ieee80211n or ieee80211ac

I think your either wifi adapter or wifi driver does not support the ap mode. If wifi-adapter supports ( check from windows 10 if you have) that’s a limitation of the driver. I don’t know any alternative driver for that. But you can try it by searching.

I’ll search on the arch wiki, but no, I don’t use windows cause it sucks

Second: The window name is pretty bad

Yes!. I know that. I will change that. +1

Great!

Third: There isn’t any icon in the taskbar/dock, so my DE defaults to the Xorg fallback icon

This is also needed to be fixed. I’m currently not having manjaro distro. So it is pretty hard to test that. If you are willing to contribute, you are welcome. 😃

Sadly I’m not a C/C++ dev, so I don’t know how to help you… But you can check here to see how you can probably do this.

Also can you try without using yay?

Use git clonehttps://github.com/lakinduakash/linux-wifi-hotspot and then

cd linux-wifi-hotspot && make && sudo make install

Doing this manually fixed the issue

Make output:

mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/ag/src/linux-wifi-hotspot/src'
/usr/bin/glib-compile-resources ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
gcc -c -o ../build/main.o ui/main.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/ui.o ui/ui.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/h_prop.o ui/h_prop.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/util.o ui/util.c `pkg-config --cflags gtk+-3.0`
g++ -c -o ../build/read_config.o ui/read_config.cpp
gcc -c -o ../build/resources.o ui/resources.c `pkg-config --cflags gtk+-3.0`
gcc -o ../build/wihotspot-gui ../build/main.o ../build/ui.o ../build/h_prop.o ../build/util.o ../build/read_config.o ../build/resources.o `pkg-config --cflags gtk+-3.0` `pkg-config --libs gtk+-3.0 --libs x11` -lstdc++
make[1]: Leaving directory '/home/ag/src/linux-wifi-hotspot/src'

Make install output:

Installing...
cd src && make install
make[1]: Entering directory '/home/ag/src/linux-wifi-hotspot/src'
mkdir -p /usr/share/"wihotspot"
install -Dm644 desktop/hotspot.png /usr/share/"wihotspot"/hotspot.png
install -Dm644 desktop/wifihotspot.desktop /usr/share/"wihotspot"/"wihotspot".desktop
install -Dm644 desktop/wifihotspot.desktop /usr/share/applications/"wihotspot".desktop
install -Dm755 ../build/wihotspot-gui /usr/bin/"wihotspot-gui"
cd scripts && make install
make[2]: Entering directory '/home/ag/src/linux-wifi-hotspot/src/scripts'
install -CDm755 create_ap /usr/bin/create_ap
install -CDm644 create_ap.conf /etc/create_ap.conf
[ ! -d /lib/systemd/system ] || install -CDm644 create_ap.service /usr/lib/systemd/system/create_ap.service
install -CDm644 bash_completion /usr/share/bash-completion/completions/create_ap
install -CDm644 README.md /usr/share/doc/create_ap/README.md
install -CDm755 wihotspot /usr/bin/wihotspot
make[2]: Leaving directory '/home/ag/src/linux-wifi-hotspot/src/scripts'
make[1]: Leaving directory '/home/ag/src/linux-wifi-hotspot/src'