TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
746 stars 136 forks source link

Install fails #401

Closed jmakov closed 5 months ago

jmakov commented 5 months ago

Not really sure where to start. Any help very welcome.

-- Performing Test TURBOJPEG_WORKS
-- Performing Test TURBOJPEG_WORKS - Failed
CMake Error at cmakescripts/FindTurboJPEG.cmake:87 (message):
  Could not link with TurboJPEG library /usr/lib/libturbojpeg.so.  If it is
  installed in a different place, then set TJPEG_LIBRARY accordingly.
Call Stack (most recent call first):
  CMakeLists.txt:162 (include)
dcommander commented 5 months ago

If you are using an RPM-based or a Debian-based distribution, then you don't have to build TurboVNC from source. You can simply use one of our pre-built binaries, which are available as assets under each TurboVNC release: https://github.com/TurboVNC/turbovnc/releases. Otherwise, I need to know which platform you are using, so I can determine why the build is failing. Also attach CMakeFiles/CMakeError.log from your build directory.

jmakov commented 5 months ago

I'm on Manjaro and used yay -S turbovnc. Ran it again and for some reason the error now changed to:

-- Looking for backtrace
-- Looking for backtrace - found
-- XORG_DRI_DRIVER_PATH = /usr/lib64/dri
-- Looking for include file security/pam_appl.h
-- Looking for include file security/pam_appl.h - not found
CMake Error at unix/Xvnc/programs/Xserver/hw/vnc/CMakeLists.txt:14 (message):
  Could not find PAM headers

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: turbovnc-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
turbovnc - exit status 4

Can't find CmakeError.log - find .cache/yay/turbovnc/src/build/ -name CMakeError.log doesn't find it.

System info:

Linux 6.6.10-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri Jan  5 17:38:36 UTC 2024 x86_64 GNU/Linux
Manjaro 23.1.3
dcommander commented 5 months ago

Hmmm... OK. I have zero experience with Manjaro. The dependencies that the build is tripping on are:

  1. The PAM headers and link library, which are presumably provided by a system package that isn't installed (I have no idea which package)
  2. The TurboJPEG headers and link library, which may or may not be provided by a system package. If Manjaro provides the TurboJPEG headers and link library, then they would be provided by a package with either "turbojpeg" or "libjpeg-turbo" in the name, but I don't know enough about Manjaro to say for sure. You may have to build and install libjpeg-turbo from source in order to get the TurboJPEG headers and link library.

Note that, with respect to TurboVNC, Manjaro is a "Community Support" operating system: https://turbovnc.org/Documentation/OSSupport. That means that I am willing to fix any incompatibilities that may exist between TurboVNC and that operating system, but the community is expected to diagnose those issues. (There are too many Linux distributions for me to reasonably test all of them. I would have no time left to develop TurboVNC if I did that. I have to focus on the most popular ones.)

Unfortunately that is all the help I can provide for the moment, but if you are able to solve the problem, please comment regarding your solution so that others may learn from it.