overtake / TelegramSwift

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

Error compiling the latest master branch #889

Open bossman1999 opened 1 year ago

bossman1999 commented 1 year ago

Line 207 of the OngoingCallContext.swift

let context = OngoingCallThreadLocalContextWebrtc(version: version, queue: OngoingCallThreadLocalContextQueueImpl(queue: queue), proxy: voipProxyServer, networkType: ongoingNetworkTypeForTypeWebrtc(initialNetworkType), dataSaving: ongoingDataSavingForTypeWebrtc(dataSaving), derivedState: derivedState.data, key: key, isOutgoing: isOutgoing, connections: filteredConnections, maxLayer: maxLayer, allowP2P: allowP2P, allowTCP: enableTCP, enableStunMarking: enableStunMarking, logPath: tempLogPath, statsLogPath: tempStatsLogPath, sendSignalingData: { [weak callSessionManager] data in callSessionManager?.sendSignalingData(internalId: internalId, data: data) }, videoCapturer: video?.impl, preferredVideoCodec: preferredVideoCodec, inputDeviceId: inputDeviceId ?? "", outputDeviceId: outputDeviceId ?? "")

../TelegramSwift/Telegram-Mac/OngoingCallContext.swift:612:88 Missing argument for parameter 'audioInputDeviceId' in call

The problem should be tgcalls, the newly modified code cannot find the corresponding branch, can you solve it? thanks

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