TelegramSwift icon indicating copy to clipboard operation
TelegramSwift copied to clipboard

Trouble building

Open n690rp opened this issue 2 years ago • 9 comments

Hello,

my name is Andrew Foss. I am prototyping integrating VPN into Telegram and having trouble getting the project to build.

  1. submodule URLs permissions errors - Sparkle, tgcalls - resolved cloning with https
  2. openssl, I resolved manually using openssl-1.1.1q
  3. YuvConversion and ManageFile packages are not found
  4. webrtc source is not found or building.

Is there a more complete set of instructions available, or a tag that is known to work following the INSTALL.md?

n690rp avatar Aug 05 '22 08:08 n690rp

has the same concern

phatnhse avatar Aug 18 '22 14:08 phatnhse

did you try cloning with recursive? you could try passing the git clone --recursive -j8

FOR ios git clone --recursive -j8 https://github.com/TelegramMessenger/Telegram-iOS.git

wweevv-johndpope avatar Aug 31 '22 06:08 wweevv-johndpope

This project doesn't get updates anyway, so don't know what's the reason behind cloning an outdated project that clearly isn't open source anymore

Wait till this repo closes as the one before (in Objective-C)

d8vjork avatar Sep 21 '22 11:09 d8vjork

bummer, when did telegram close source?

who do we want to talk with about supporting our users with integrated vpn?

Sent from my iPhone

On 21 Sep 2022, at 12:29, Ruben Robles @.***> wrote:

 This project doesn't get updates anyway, so don't know what's the reason behind cloning an outdated project that clearly isn't open source anymore

Wait till this repo closes as the one before (in Objective-C)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

n690rp avatar Sep 30 '22 17:09 n690rp

I think it is since Telegram Swift got officially adopted by the Telegram company

d8vjork avatar Sep 30 '22 17:09 d8vjork

hello, I just fixed it! it builds successfully now.

here is what I did:

cd submodules/
git clone https://github.com/TelegramMessenger/tgcalls
cd ../
rm -rf core-xprojects/webrtc/build
cd submodules/tg_owt
git submodule update --init --recursive
cd ../../
sh scripts/configure_frameworks.sh

gatesyp avatar Jan 16 '23 18:01 gatesyp

for any missing packages, cd into the submodule's directory and do:

git submodule update --force --recursive --init --remote

gatesyp avatar Jan 17 '23 09:01 gatesyp

Had similar problem both with 'tgcalls' and 'Sparkle'

Followed recommendations above:

cd submodules/
git clone https://github.com/TelegramMessenger/tgcalls
git clone https://github.com/overtake/Sparkle
cd ..
git submodule update --force --recursive --init --remote

IvanPetrovMck avatar May 18 '23 20:05 IvanPetrovMck

@gatesyp @IvanPetrovMck @zweeltow

Thanks for your recommendations, i build successfully

but when i build in Xcode always error in

#include "rtc_base/location.h"

told me 'rtc_base/location.h' file not found

will you please help me?

i'm using Xcode 14.3.1, Intel Mac Ventura 13.2

I found that the tgcalls within the submodules on the master branch.

However, after switching to the origin/tdesktop branch, the error disappeared, but a lot of other errors followed.

I want to get it up and running, there are too many troubles.

Perhaps I can make it run, or maybe I can't. 😂

xiky avatar Dec 10 '23 14:12 xiky