overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
4.99k stars 841 forks source link

Trouble building #809

Open n690rp opened 2 years ago

n690rp commented 2 years ago

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?

phatnhse commented 2 years ago

has the same concern

wweevv-johndpope commented 2 years ago

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

d8vjork commented 1 year ago

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)

n690rp commented 1 year ago

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.

d8vjork commented 1 year ago

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

gatesyp commented 1 year ago

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 commented 1 year ago

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

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

IvanPetrovMck commented 1 year ago

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
xiky commented 9 months ago

@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. 😂