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 ld.so
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-3.5.99.27'
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.

:point_up:

:mag_right: nx, x2go

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