pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Telegram Desktop does not build





El 9/3/24 a las 9:41, Benny Siegert escribió:
Am 09.03.24 um 09:04 schrieb Ramiro Aceves:
CMake Error at cmake/options.cmake:85 (message):
   Unknown platform type
Call Stack (most recent call first):
   CMakeLists.txt:35 (include)

This suggests that there is a hardcoded list of operating systems in cmake/options.cmake and NetBSD is not in it.

In fact, looking now, this is the relevant bit in the file:

if (WIN32)
     include(cmake/options_win.cmake)
elseif (APPLE)
     include(cmake/options_mac.cmake)
elseif (LINUX)
     include(cmake/options_linux.cmake)
else()
     message(FATAL_ERROR "Unknown platform type")
endif()

You could try adding a branch for NetBSD ad make it include the linux options. Good luck.


Hello Benny, thanks for the tip

adding:
> elseif (NETBSD)
>      include(cmake/options_linux.cmake)

Leads to the same error.

Removing everything and letting this alone:

include(cmake/options_linux.cmake)

Leads to the next error:
netbsd-nuc# make
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Checking for vulnerabilities in telegram-desktop-2.5.9nb1
===> Configuring for telegram-desktop-2.5.9nb1
=> Checking for portability problems in extracted files
Version: 2.5.9
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found
-- Found LibLZMA: /usr/lib/liblzma.so (found version "5.2.4")
CMake Warning at cmake/external/expected/CMakeLists.txt:14 (find_package):
By not providing "Findtl-expected.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "tl-expected", but CMake did not find one.

Could not find a package configuration file provided by "tl-expected" with
  any of the following names:

    tl-expectedConfig.cmake
    tl-expected-config.cmake

  Add the installation prefix of "tl-expected" to CMAKE_PREFIX_PATH or set
  "tl-expected_DIR" to a directory containing one of the above files.  If
  "tl-expected" provides a separate development package or SDK, be sure it
  has been installed.


CMake Error at /usr/pkg/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

      Reason given by package: The command
"/usr/pkgsrc/wip/telegram-desktop/work/.tools/bin/pkg-config" --version
      failed with output:



      stderr:

      result:

  1

Call Stack (most recent call first):

/usr/pkg/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) /usr/pkg/share/cmake-3.28/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/external/ffmpeg/CMakeLists.txt:11 (find_package)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/wip/telegram-desktop
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/telegram-desktop
netbsd-nuc#

This completely surpasses me, I am completely ignorant.
Thank you very much for the suggestions. I have to think that if Telegram Desktop is not available in the repositories it is because it is really difficult to compile and work on NetBSD and if those who understand it have not already done so, there is little I will be able to do.

Thanks
Ramiro.




Home | Main Index | Thread Index | Old Index