Skip to content

Builds fail (** BUILD FAILED **) #1342

@kopyl

Description

@kopyl

Initially i got a build error related to nasm not being installed.
It was fixed by brew install nasm

Then came an error about mozjpeg.
This was due to cmake being version 4.x, but the build script required something like 3.5 or lower.
I fixied it by adjusting core-xprojects/Mozjpeg/Mozjpeg/build.sh file:
I replaced this line:

cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_OSX_SYSROOT=${MACOS_SYSROOT[0]} -DPNG_SUPPORTED=FALSE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 ../../$SOURCE_DIR

with this:

cmake -G"Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -DCMAKE_OSX_SYSROOT=${MACOS_SYSROOT[0]} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DPNG_SUPPORTED=FALSE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 ../../$SOURCE_DIR

(codex suggestion)

Then I got another error related to ffmpeg.
Last lines containing ffmpeg: https://pastes.io/i-i10-fwna

At this point I just gave up trying to build Telegram.

Please fix it or provide a detailed guide (to the point a mentally disabled person would be able to build it) on how to successfully build Telegram for macOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions