tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Can't build android tdlib #3016

Closed ranjitsingha closed 2 months ago

ranjitsingha commented 2 months ago

I am getting this error while running the command ./fetch-sdk.sh

Downloading SDK Manager... Installing required SDK tools... yes: standard output: Broken pipe

levlam commented 2 months ago

Do you use Windows and mintty/Bash?

ranjitsingha commented 2 months ago

Do you use Windows and mintty/Bash?

i am able to build the sdk using ./fetch-sdk.sh but while ./build-openssl.sh i get error

levlam commented 2 months ago

What error? Did you run ./check-environment.sh first?

ranjitsingha commented 2 months ago

What error? Did you run ./check-environment.sh first?

it keeps running on loop

Screenshot_20240810-124544_1

Screenshot_20240810-124830_1

Here is my github actions workflow code

name: Android SDK & NDK Setup with TDLib Build

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  build-tdlib:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Set up JDK 17
      uses: actions/setup-java@v3
      with:
        distribution: 'zulu'
        java-version: '17'  

    - name: Install dependencies
      run: |
        sudo apt-get update
        sudo apt-get install -y gperf php

    - name: Download TDLib
      run: |
        git clone https://github.com/tdlib/td.git

    - name: Build TDLib for Android
      run: |
        cd td/example/android/
        chmod +x *
        ./check-environment.sh
        ./fetch-sdk.sh
        ./build-openssl.sh
        ./build-tdlib.sh

    - name: Zip the TDLib Android folder
      run: |
        cd td/example/android/
        zip -r tdlib-android.zip ./

    - name: Upload the artifact
      uses: actions/upload-artifact@v3
      with:
        name: tdlib-android
        path: td/example/android/tdlib-android.zip
levlam commented 2 months ago

There are no errors on the screenshots.

ranjitsingha commented 2 months ago

There are no errors on the screenshots.

Oh ya sorry i mistook. it was my fault. I am sorry. Its working fine now :) And thank you very much