Unigram icon indicating copy to clipboard operation
Unigram copied to clipboard

notable to compile on vs2022 17.5.0

Open mzayarnyuk opened this issue 2 years ago • 19 comments

error on x64 config (x86 and arm) (tdlib 1.8.0 builded in vsix and installed) #include "flatbuffers/flatbuffers.h" at \Unigram\Libraries\libtextclassifier\lang_id\common\flatbuffers\embedding-network_generated.h hav downloaded packages that vs adviced with vcpckg but still that error....

pls add it to src; or make lookup uni or add intro move/install where and what version....

mzayarnyuk avatar Mar 04 '23 10:03 mzayarnyuk

@mzayarnyuk You can try to install flat buffers from vcpkg

FrayxRulez avatar Mar 04 '23 10:03 FrayxRulez

I tried develop branch; missed that it' fork; but to be sure with fresh trie ddiff. uwp versions; looks like it feet; but table func need 3 params; - not sure what that align do.... will try 16, if will not work or crash will try that old commit; tgcalls is outdated too - tryied fork commit from main branch for now;


currently lookup where actual libutf with needed files; fork links is dead....

mzayarnyuk avatar Mar 04 '23 13:03 mzayarnyuk

found similar hash on android

mzayarnyuk avatar Mar 04 '23 13:03 mzayarnyuk

now lookup

mzayarnyuk avatar Mar 04 '23 13:03 mzayarnyuk

'libavformat/avformat.h': No such file or directory (compiling source file CachedVideoAnimation.cpp) Unigram.Native \VideoAnimation.h 15 'libavformat/avformat.h': No such file or directory (compiling source file VideoAnimation.cpp) Unigram.Native \VideoAnimation.h 15 'opus/opus_defines.h': No such file or directory (compiling source file Opus\OpusOutput.cpp) Unigram.NativeOpus\OpusOutput.h 5

ineterst 'main' branch in same state or not

mzayarnyuk avatar Mar 04 '23 13:03 mzayarnyuk

@mzayarnyuk Did you follow build instructions?

FrayxRulez avatar Mar 04 '23 13:03 FrayxRulez

this steps go before compile ffmpeg or webrtc is nt described in intro; added ffmpeg - later will try special config replace; looks like it should resolve libav format and opus issues;

mzayarnyuk avatar Mar 04 '23 15:03 mzayarnyuk

open this https://github.com/UnigramDev/Unigram/tree/develop/Unigram/Libraries and ypu will see in develop only latboofers commit exists; libutf and tgcalls moved; in 'main' branch exists tgcalls fork commit link;

mzayarnyuk avatar Mar 04 '23 16:03 mzayarnyuk

with new vcpkg name of libs src to install is diff

vcpkg.exe install ffmpeg[opus,vpx]:$arch$-uwp lz4:$arch$-uwp openssl:$arch$-uwp zlib:$arch$-uwp libwebp:$arch$-uwp libogg:$arch$-uwp opus:$arch$-uwp :1:18: error: expected triplet name (must be lowercase, digits, '-') on expression: ffmpeg[opus,vpx]:$arch$-uwp ^Example: vcpkg install zlib zlib:x64-windows curl boost

mzayarnyuk avatar Mar 10 '23 17:03 mzayarnyuk

not a issue forgot to replace $arch$

mzayarnyuk avatar Mar 10 '23 17:03 mzayarnyuk

good zlib and openssl already cached

mzayarnyuk avatar Mar 10 '23 17:03 mzayarnyuk

@mzayarnyuk Very good

FrayxRulez avatar Mar 10 '23 17:03 FrayxRulez

fresh vcpkg error on build release ffmpeg x64-uwp -- Building Release Options: --enable-optimizations -- Building ffmpeg for Release CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: D:/src/vcpkg/downloads/tools/msys2/893f8801e7c30cbd/usr/bin/bash.exe ./build.sh Working Directory: D:/src/vcpkg/buildtrees/ffmpeg/x64-uwp-rel Error code: 2 See logs for more information: D:\src\vcpkg\buildtrees\ffmpeg\build-x64-uwp-rel-config.log D:\src\vcpkg\buildtrees\ffmpeg\build-x64-uwp-rel-out.log D:\src\vcpkg\buildtrees\ffmpeg\build-x64-uwp-rel-err.log

Call Stack (most recent call first): ports/ffmpeg/portfile.cmake:596 (vcpkg_execute_required_process) scripts/ports.cmake:147 (include)

mzayarnyuk avatar Mar 10 '23 18:03 mzayarnyuk

maybe bash problems or I run main like vcpkg.exe install ffmpeg[opus,vpx]:x64-uwp lz4:x64-uwp openssl:x64-uwp zlib:x64-uwp libwebp:x64-uwp libogg:x64-uwp opus:x64-uwp

mzayarnyuk avatar Mar 10 '23 18:03 mzayarnyuk

There are lucky people who were able to assemble the project. Do not share the instructions. Since the assembly instructions are old. Some files are no longer there, for example Views/VoIPPage.xaml

atrdev-rgb avatar Jun 08 '23 17:06 atrdev-rgb

@atrdev-rgb Views/Calls

FrayxRulez avatar Jun 08 '23 17:06 FrayxRulez

Screenshot_2023-06-08-20-27-03-189_com android chrome Voippage.xaml not found. Please update your instructions

atrdev-rgb avatar Jun 08 '23 17:06 atrdev-rgb

@atrdev-rgb Remove the whole folder

FrayxRulez avatar Jun 08 '23 17:06 FrayxRulez

Telegram.Native.Calls remove too?

atrdev-rgb avatar Jun 08 '23 17:06 atrdev-rgb