Can’t build nx from the AUR

After installation of Manjaro XFCE Minimal, I want to install nx as a dependency of x2go from AUR.

The installation of nx failes with the following Error:

checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux
checking how to hardcode library paths into programs... immediate
./configure: line 16947: syntax error near unexpected token `JPEG,'
./configure: line 16947: `PKG_CHECK_MODULES(JPEG, libjpeg, , LIBJPEG_FALLBACK_CHECK)'
make[1]: *** [Makefile:192: build-full] Error 2
make[1]: Leaving directory '/var/tmp/pamac-build-$USER/nx/src/nx-libs-'
make: *** [Makefile:220: build] Error 2

According to topic Can’t build nxproxy from the AUR the soloution is to use VNC, what is not satisfied.

After a little bit of analysing the code i found the real soloution. So if anyone got the same Issue, please install pkg-config before installing nx/x2go

If pkg-config is installed, the installation is running without errors and you can use x2go

There is no package named nx.

There is also no package named pkg-config or x2go so all you are saying is bunch of nonsense.

Also, if you read what prerequisites are for using AUR on any AUR wiki page, you would know you need base-devel.


:mag_right: nx, x2go

aur/libxcomp [installed] [3+] [0.08%] [4 Sep 2023]
    NX X compression library
aur/nx-headers [3+] [0.08%] [4 Sep 2023]
    NX headers
aur/nx-x11 [installed] [3+] [0.08%] [4 Sep 2023]
    NX-X11 lib for the NX framework
aur/nxagent [installed] [3+] [0.08%] [4 Sep 2023]
    NX X server based on Xnest
aur/nxproxy [installed] [3+] [0.08%] [4 Sep 2023]
    NX proxy
aur/x2goserver [installed] [8+] [0.09%] [28 Aug 2023]
    Open source graphical Remote Desktop and terminal server based on NX technology
aur/pyhoca-gui [13+] [0.43%] [26 Sep 2021]
    Graphical client (wx) for the X2Go system
aur/python-x2go [out-of-date] [3+] [0.43%] [26 Sep 2021]
    Python module providing X2Go client API
aur/x2goclient [installed] [16+] [1.29%] [28 Aug 2023]
    a graphical client (Qt5) for the X2Go system