Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notable to compile on vs2022 17.5.0 #2982

Open
mzayarnyuk opened this issue Mar 4, 2023 · 19 comments
Open

notable to compile on vs2022 17.5.0 #2982

mzayarnyuk opened this issue Mar 4, 2023 · 19 comments

Comments

@mzayarnyuk
Copy link

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

@FrayxRulez
Copy link
Collaborator

@mzayarnyuk You can try to install flat buffers from vcpkg

@mzayarnyuk
Copy link
Author

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
Copy link
Author

found similar hash on android

@mzayarnyuk
Copy link
Author

now lookup

@mzayarnyuk
Copy link
Author

'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

@FrayxRulez
Copy link
Collaborator

@mzayarnyuk Did you follow build instructions?

@mzayarnyuk
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

not a issue forgot to replace $arch$

@mzayarnyuk
Copy link
Author

good zlib and openssl already cached

@FrayxRulez
Copy link
Collaborator

@mzayarnyuk Very good

@mzayarnyuk
Copy link
Author

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
Copy link
Author

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

@atrdev-rgb
Copy link

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

@FrayxRulez
Copy link
Collaborator

@atrdev-rgb Views/Calls

@atrdev-rgb
Copy link

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

@FrayxRulez
Copy link
Collaborator

@atrdev-rgb Remove the whole folder

@atrdev-rgb
Copy link

Telegram.Native.Calls remove too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants