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).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build error executing make on Ubuntu 23.10

hilliao opened this issue · comments

ON my Brand new Ubuntu 23.10 installation on AMD Ryzen 7700X and msi b650-p pro wifi motherboard, executing make shows the following error. I think the bash scripts are compatible with GNU bash, version 5.2.15(1)-release.

To Reproduce
$ git clone https://github.com/lakinduakash/linux-wifi-hotspot
Cloning into 'linux-wifi-hotspot'...
remote: Enumerating objects: 2084, done.
remote: Counting objects: 100% (669/669), done.
remote: Compressing objects: 100% (296/296), done.
remote: Total 2084 (delta 419), reused 598 (delta 370), pack-reused 1415
Receiving objects: 100% (2084/2084), 1.37 MiB | 6.00 MiB/s, done.
Resolving deltas: 100% (1287/1287), done.

hil@amd-ryzen-7700x:~/Downloads$ cd linux-wifi-hotspot

$ make
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/hil/Downloads/linux-wifi-hotspot/src'
/bin/sh: 0: Illegal option --
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/hil/Downloads/linux-wifi-hotspot/src'
make: *** [Makefile:5: all] Error 2

Expected behavior
No error executing make

Desktop (please complete the following information):

  • OS: Ubuntu 23.10, Linux amd-ryzen-7700x 6.5.0-13-generic

Try use bash

I did. Here's the version:

GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Is there a specific BASH version needed?

You have the same bash version as mine, try pkg-config glib_compile_resource gio-2.0 and see what is the result

nothing returned

image

I tired with the latest code and got a different error:

make
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/hil/Downloads/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/hil/Downloads/linux-wifi-hotspot/src'
make: *** [Makefile:5: all] Error 2

is ui/glade missing?

Did you install all of the build dependencies from the README?
sudo apt install -y libgtk-3-dev build-essential gcc g++ pkg-config make hostapd libqrencode-dev libpng-dev

Thanks for helping. after installing, make succeeded;

Setting up libxcomposite-dev:amd64 (1:0.4.5-1build2) ...
Setting up libxcursor-dev:amd64 (1:1.2.1-1) ...
Setting up libepoxy-dev:amd64 (1.5.10-1) ...
Setting up libatk-bridge2.0-dev:amd64 (2.50.0-1) ...
Setting up libxrandr-dev:amd64 (2:1.5.2-2) ...
Setting up libxinerama-dev:amd64 (2:1.1.4-3) ...
Setting up libcairo2-dev:amd64 (1.18.0-1) ...
Setting up libgles-dev:amd64 (1.6.0-1) ...
Setting up libglvnd-dev:amd64 (1.6.0-1) ...
Setting up libpango1.0-dev:amd64 (1.51.0+ds-2) ...
Setting up libegl1-mesa-dev:amd64 (23.2.1-1ubuntu3.1) ...
Setting up libgtk-3-dev:amd64 (3.24.38-5ubuntu1) ...
hil@amd-ryzen-7700x:~/Downloads/linux-wifi-hotspot$ make
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/hil/Downloads/linux-wifi-hotspot/src'
/usr/bin/glib-compile-resources ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
make[2]: Entering directory '/home/hil/Downloads/linux-wifi-hotspot/src'
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/about_ui.o ui/about_ui.c `pkg-config --cflags gtk+-3.0`
gcc -c -o ../build/qr_ui.o ui/qr_ui.c `pkg-config --cflags gtk+-3.0`
g++ -c -o ../build/qrgen.o ui/qrgen.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/about_ui.o ../build/qr_ui.o ../build/qrgen.o ../build/resources.o `pkg-config --cflags gtk+-3.0` `pkg-config --libs gtk+-3.0 --libs x11` -lstdc++ -lpng -lqrencode
make[2]: Leaving directory '/home/hil/Downloads/linux-wifi-hotspot/src'
make[1]: Leaving directory '/home/hil/Downloads/linux-wifi-hotspot/src'