How to compile Android TPT correctly

  • Dragonrster
    17th May 2023 Member 0 Permalink

    I am based on https://gist.github.com/jacob1/7556fd14c3589818c4d2 Performing operation, but executing/ An error will be generated when ./build.sh
    The error is as follows (not just this short paragraph):

     

     

    Make: * * * [/home/dai/android ndk r11c/build/core/build binary. mk: 461: obj/local/armeabi v7a/objs/sdl-1.2/src/SDL_fatal. o] Error 1

    Make: * * * Waiting for unfinished tasks

    Make: * * * [/home/dai/android ndk r11c/build/core/build binary. mk: 461: obj/local/armeabi v7a/objs/sdl-1.2/src/SDL_error. o] Error 1

    [armeabi-v7a] Compile thumb : sdl-1.2 <= SDL_ audiodev.c

  • jacob1
    19th May 2023 Developer 0 Permalink
    You did find the correct compile instructions. But, this error message doesn't tell me anything about what went wrong or where. I would need a more complete compile log or errors to help. You could use a paste site like https://bpa.st/ to paste the full log.
  • Dragonrster
    19th May 2023 Member 0 Permalink

    @jacob1 (View Post)

     I am using :
    SDK 23.0.3
    NDK R11C
    android-R 


    https://bpa.st/HBZGS

  • jacob1
    20th May 2023 Developer 1 Permalink
    @Dragonrster (View Post)
    ok, so the actual error is

    cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'

    It doesn't like the -Oz in your compile command. It must be unsupported by the compiler.

    Anyway ... I see you're using NDK R11C, but the latest version is R25C. This seems to be severely out of date. That SDK is also old, the latest one is in the 30s now I believe. If you update these, it may fix your build environment. There are links in the compile guide you were using to the latest NDK / SDK downloads.
  • Dragonrster
    20th May 2023 Member 0 Permalink

    @jacob1 (View Post)

    Thank you for your help!

     

    I have switched to SDK 29.0.3

     

    NDK R18C

     

    android-29

     

    Here are all the logs from beginning to end:

     

     

    https://bpa.st/AMQIE

     

    Edited 9 times by Dragonrster. Last: 20th May 2023