You are not logged in.

#1 2020-06-04 15:33:43

aminvakil
Member
From: Tehran
Registered: 2019-08-01
Posts: 21
Website

[SOLVED] Cannot build telegram-desktop

Recent builds of telegram-desktop package changed a flag (https://bugs.archlinux.org/task/66681) which causes me a headache and I have put it in IgnorePkg so that it wouldn't update until today which I went to fix the issue with this procedure:

asp export telegram-desktop
cd telegram-desktop
makepkg -sri

Facing this error:

==> Starting build()...
Version: 2.1.7
-- Checking for module 'tgvoip'
--   Package 'tgvoip', required by 'virtual:world', not found
CMake Error at /usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:497 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.17/Modules/FindPkgConfig.cmake:681 (_pkg_check_modules_internal)
  Telegram/cmake/lib_tgvoip.cmake:12 (pkg_check_modules)
  Telegram/CMakeLists.txt:36 (include)

-- Configuring incomplete, errors occurred!

Other packages of telegram-desktop in AUR have these packages in their PKGBUILD, why the official one does not have them and how does it gets build without them?

E.g.
https://aur.archlinux.org/cgit/aur.git/ … esktop-dev

Last edited by aminvakil (2020-06-04 16:20:40)

Offline

#2 2020-06-04 15:58:28

aminvakil
Member
From: Tehran
Registered: 2019-08-01
Posts: 21
Website

Re: [SOLVED] Cannot build telegram-desktop

If it helps I face this error building telegram-desktop-dev AUR package (maybe both errors are because of the same reason):

[ 46%] Building C object Telegram/CMakeFiles/lib_tgvoip.dir/ThirdParty/libtgvoip/webrtc_dsp/common_audio/vad/vad_gmm.c.o
[ 46%] Linking CXX static library liblib_tgvoip.a
make[2]: Leaving directory '/path/to/telegram-desktop-dev/src/tdesktop/build'
[ 46%] Built target lib_tgvoip
make[2]: Leaving directory '/path/to/telegram-desktop-dev/src/tdesktop/build'
make[1]: *** [CMakeFiles/Makefile2:1835: Telegram/lib_ui/CMakeFiles/lib_ui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/path/to/telegram-desktop-dev/src/tdesktop/build'
[ 46%] Built target lib_scheme
make[1]: Leaving directory '/path/to/telegram-desktop-dev/src/tdesktop/build'
make: *** [Makefile:150: all] Error 2
make: Leaving directory '/path/to/telegram-desktop-dev/src/tdesktop/build'
==> ERROR: A failure occurred in build().
    Aborting...
==> Removing installed dependencies...

Offline

#3 2020-06-04 16:00:44

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,868

Re: [SOLVED] Cannot build telegram-desktop

Builds fine as written in a clean chroot.

Offline

#4 2020-06-04 16:04:03

aminvakil
Member
From: Tehran
Registered: 2019-08-01
Posts: 21
Website

Re: [SOLVED] Cannot build telegram-desktop

@Scimmia, thanks for your reply, do you have any idea how does tgvoip and other dependencies get resolved?

Offline

#5 2020-06-04 16:09:28

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,868

Re: [SOLVED] Cannot build telegram-desktop

Everything's in the tarball.

Offline

#6 2020-06-04 16:10:40

aminvakil
Member
From: Tehran
Registered: 2019-08-01
Posts: 21
Website

Re: [SOLVED] Cannot build telegram-desktop

Yes, I deployed a clean archlinux vm and I can confirm it can be build cleanly.

I have executed sudo pacman -Suy base-devel before using makepkg -sri, what is wrong with my building?

Offline

#7 2020-06-04 16:20:23

aminvakil
Member
From: Tehran
Registered: 2019-08-01
Posts: 21
Website

Re: [SOLVED] Cannot build telegram-desktop

I had changed PKGBUILD and put a # at beginning of line  -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF, so it became:

...
        -DDESKTOP_APP_USE_PACKAGED_GSL=OFF \
#        -DDESKTOP_APP_USE_PACKAGED_FONTS=OFF \
        -DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON \

I didn't think it mattered, so I haven't mentioned it in my question, that was the problem, sorry to take your time.

Offline

Board footer

Powered by FluxBB