31.03.2017 23:01, Graham Inggs пишет:
FWIW, I've just tried building telegram-desktop with your patch on the Ubuntu PPA builders and it was successful on arm64, armhf and ppc64el.
Very good! Does the program really work? You can run it or send a message? 31.03.2017 15:51, Boyuan Yang пишет:
It seems that upstream code would give up when compiling if the host is not x86 or x86_64. However, such information and defined macros were not used anywhere in the source code. Thus I think we could simply patch away the blocking #error macro.
One of these macros is used in Telegram/SourceFiles/ui/animation.h:169 #ifdef ARCH_CPU_32_BITS #define SHIFTED_USE_32BIT #endif // ARCH_CPU_32_BITS #ifdef SHIFTED_USE_32BIT ... Also have a look at Telegram/SourceFiles/config.h:276 #if Q_BYTE_ORDER == Q_BIG_ENDIAN #error "Only little endian is supported!" #endif // Q_BYTE_ORDER == Q_BIG_ENDIAN