Android [SOLVED] Can't compile to Android

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Tom_SavePointsGames, Jul 14, 2019.

  1. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    Alright so I compiled to android like a week ago. Took some setting up but it worked. First time took almost 2 hours and then subsequent compiles only took about 5 minutes.

    Now it's not working. Error Message

    Code:
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [obj/local/arm64-v8a/libyoyo.so] Error 1
    Stats : GMA : Elapsed=62778.8222
    Stats : GMA : sp=98,au=0,bk=6,pt=0,sc=145,sh=3,fo=3,tl=0,ob=98,ro=15,da=0,ex=0,ma=933,fm=0xE000B21D7FEA22B4
    X://bin/GMAssetCompiler.exe exited with non-zero status (2)
    
    I read somewhere that if you add device mouse presses (which I did since last week) that it can mess with it. So I commented them all out and tried again and it still didn't work.

    The internet also said to clean my build cache with that brush icon. When I try it says it can't delete any cache. I found what I feel like is the cache in a runtime folder so I backed that data up and then deleted it from that folder and tried again and it gave the exact same error. It only rebuilt one of the runtime folders I deleted though, not sure if that means anything. I assume its just my most recent one.

    Heeeelp. Please. Thank You.
     
  2. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    When you try this, is your device connected via USB and you have Android selected as the target in the IDE?
    Has Android Studio been updated at any point in the last week, or any other updates that have changed things since it last worked?

    Can you compile a new empty room project to the device?
     
  3. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    So my device is not connected. I never had to set that up. Which is weird because I did for 1.4x. But Last week with GMS2 I was exporting without a device. I do have android and YYC selected which is what I want and what I was doing. I do not believe android studio has been updated but I will check to see if it has an auto updater. I did update GMS2 in the last week though.

    I didn't think to do the empty room. Will do now and see.
     
  4. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    I assumed you were compiling to your device - are you trying to create a local APK?
    Also, is that the full output from the error message?

    Yeah test the empty room project and let us know how it goes.
     
  5. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    So empty room project came back with. Yes I am trying to make an apk.

    Code:
    FAILURE: Build failed with an exception.
    * What went wrong:
    A problem occurred configuring project ':com.company.game'.
    > Could not resolve all dependencies for configuration ':com.company.game:_debugApkCopy'.
       > Could not find com.android.support:support-v4:29.0.0.
         Required by:
             project :com.company.game
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    BUILD FAILED
    
    It was just the end part of the compile where the error happens. Do you want the whole thing? I could run it again.
     
  6. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    GMS2 doesn't support API 29 yet as per the GMS2 Required SDKs Article.

    Go into Resource Tree > Options > Android > General and change the "Build Settings" dropdown to "API Level 28", then hit "Apply".
    Then clean your cache (broom icon at the top of the IDE) and try recompiling.

    This assumes you have API 28 installed in Android Studio, if you don't you will get another error stating it can't be found.
     
  7. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    Okay so my main project was set to 28. I guess it defaults to 29 when you start a new project despite it not being supported... lol

    Okay so the test project let me clean the cache and then also successfully created an apk. hmmmm...
     
  8. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Clean the cache on your main project (if it let's you) then clear the output console at the bottom of the IDE (right click > clear).

    The try and compile, and post the FULL output log inside code tags like above.
    If it's super long add spoiler tags around the code box also.
     
  9. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    Okay so it still won't let me clean it. This is the output for trying to clean.

    Code:
    "cmd"  /c subst Z: "C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"
    elapsed time 00:00:00.1279207s for command "cmd" /c subst Z: "C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 07/14/2019 18:28:21
    "cmd"  /c subst Y: "C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP"
    elapsed time 00:00:00.1399126s for command "cmd" /c subst Y: "C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 07/14/2019 18:28:21
    "cmd"  /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.3.344"
    elapsed time 00:00:00.1289217s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.3.344" started at 07/14/2019 18:28:21
    "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.3.344/bin/Igor.exe"  -j=8 -options="C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- android Clean
    Loaded Macros from C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Rectar_Hat_B215D740_62D125FB\macros.json
    Options: X:/bin\platform_setting_defaults.json
    Options: C:\Users\Tom\AppData\Roaming/GameMakerStudio2\tombishopusa_238762\local_settings.json
    Options: C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Rectar_Hat_B215D740_62D125FB\targetoptions.json
    X://bin/GMAssetCompiler.exe  /c /zpex /mv=1 /iv=0 /rv=0 /bv=0 /j=8  /gn="Rectar Hatched" /td="Y:/" /cd="Z:/Rectar_Hat_B215D740_62D125FB" /zpuf="C:\Users\Tom\AppData\Roaming/GameMakerStudio2\tombishopusa_238762" /m=llvm-android /tgt=8 /llvmSource="X://yyc/"  /nodnd /cfg="default" /fU="Z:/Rectar_Hat_B215D740_62D125FB\functionsUsed.txt" /o="Y:/Rectar_Hatched_3CF098FE_YYC" /optionsini="Y:/Rectar_Hatched_3CF098FE_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\Rectar Hatched.yyp" /preprocess="Z:/Rectar_Hat_B215D740_62D125FB"
    Reading project file....C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched
    Reading project file....X:\BaseProject
    Reading config delta 'C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\options\main\inherited\options_main.inherited.yy'
    finished.
    X://bin/GMAssetCompiler.exe DONE (0)
    Release build
    Cleaning Z:/Rectar_Hat_B215D740_62D125FB
    Failed deleting file - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4\media\session\MediaControllerCompat$MediaControllerImplApi21$ExtraBinderRequestResultReceiver.class with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4\media\session with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4\media\session with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4\media with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4\media with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4 with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support\v4 with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android\support with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730\android with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730 with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives\classes.jar_4xm4av3h1adkcl0plo7qrq730 with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp\expandedArchives with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build\tmp with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched\build with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default\com.jumpmengamingllc.RectarHatched with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android\default with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB\Android with error 00000003
    Failed deleting directory - Z:/Rectar_Hat_B215D740_62D125FB with error 00000003
    Compile Error : Cache directory could not be deleted, perhaps a process is locking the directory? Please try again.
    Igor complete.
    Igor complete.
    elapsed time 00:00:03.2424641s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.3.344/bin/Igor.exe" -j=8 -options="C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- android Clean started at 07/14/2019 18:28:22
    "cmd"  /c subst Z: /d
    elapsed time 00:00:00.1469086s for command "cmd" /c subst Z: /d started at 07/14/2019 18:28:25
    "cmd"  /c subst Y: /d
    elapsed time 00:00:00.1429122s for command "cmd" /c subst Y: /d started at 07/14/2019 18:28:25
    "cmd"  /c subst X: /d
    elapsed time 00:00:00.1329185s for command "cmd" /c subst X: /d started at 07/14/2019 18:28:25
    SUCCESS : Clean Program Complete
    

    This is the fresh output from trying to compile an apk. Not sure if this gives away anything about my computer... please no one hack me lol

    Code:
    Saving project to: C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\Rectar Hatched.yyp
    "cmd"  /c subst Z: "C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"
    elapsed time 00:00:00.1858861s for command "cmd" /c subst Z: "C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 07/14/2019 18:30:30
    "cmd"  /c subst Y: "C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP"
    elapsed time 00:00:00.1599031s for command "cmd" /c subst Y: "C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 07/14/2019 18:30:31
    "cmd"  /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.3.344"
    elapsed time 00:00:00.1269306s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.3.344" started at 07/14/2019 18:30:31
    "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.3.344/bin/Igor.exe"  -j=8 -options="C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package
    Loaded Macros from C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Rectar_Hat_B215D740_62D125FB\macros.json
    Options: X:/bin\platform_setting_defaults.json
    Options: C:\Users\Tom\AppData\Roaming/GameMakerStudio2\tombishopusa_238762\local_settings.json
    Options: C:\Users\Tom\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Rectar_Hat_B215D740_62D125FB\targetoptions.json
    X://bin/GMAssetCompiler.exe  /c /zpex /mv=1 /iv=0 /rv=0 /bv=0 /j=8  /gn="Rectar Hatched" /td="Y:/" /cd="Z:/Rectar_Hat_B215D740_62D125FB" /zpuf="C:\Users\Tom\AppData\Roaming/GameMakerStudio2\tombishopusa_238762" /m=llvm-android /tgt=8 /llvmSource="X://yyc/"  /nodnd /cfg="default" /fU="Z:/Rectar_Hat_B215D740_62D125FB\functionsUsed.txt" /o="Y:/Rectar_Hatched_11A1AC8C_YYC" /optionsini="Y:/Rectar_Hatched_11A1AC8C_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\Rectar Hatched.yyp" /preprocess="Z:/Rectar_Hat_B215D740_62D125FB"
    Reading project file....C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched
    Reading project file....X:\BaseProject
    Reading config delta 'C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\options\main\inherited\options_main.inherited.yy'
    finished.
    X://bin/GMAssetCompiler.exe DONE (0)
    Release build
    PlatformOptions
    Options: Z:/Rectar_Hat_B215D740_62D125FB\PlatformOptions.json
    Options: Z:/Rectar_Hat_B215D740_62D125FB\MainOptions.json
    runtime
    OptionsIni
    PlatformOptions
    X://bin/GMAssetCompiler.exe  /c /zpex /mv=1 /iv=0 /rv=0 /bv=0 /j=8  /gn="Rectar Hatched" /td="Y:/" /cd="Z:/Rectar_Hat_B215D740_62D125FB" /zpuf="C:\Users\Tom\AppData\Roaming/GameMakerStudio2\tombishopusa_238762" /m=llvm-android /tgt=8 /llvmSource="X://yyc/"  /nodnd /cfg="default" /fU="Z:/Rectar_Hat_B215D740_62D125FB\functionsUsed.txt" /o="Y:/Rectar_Hatched_11A1AC8C_YYC" /optionsini="Y:/Rectar_Hatched_11A1AC8C_YYC\options.ini" /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\Rectar Hatched.yyp" /arch=16 /bt=exe /rt=yyc
    Reading project file....C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched
    Reading project file....X:\BaseProject
    Reading config delta 'C:\Users\Tom\Documents\GameMakerStudio2\Rectar Hatched\options\main\inherited\options_main.inherited.yy'
    finished.
    Compile Constants...finished.
    Remove DnD...finished.
    Compile Scripts...finished.
    Compile Objects...finished.
    Compile Timelines...finished.
    Compile Triggers...finished.
    Compile Rooms...finished.
    Compile Extensions...finished.
    Global scripts...finished.
    finished.
    collapsing enums.
    Final Compile...finished.
    Writing Chunk... GEN8
    option_game_speed=60
    Writing Chunk... OPTN
    Writing Chunk... LANG
    Writing Chunk... EXTN
    Writing Chunk... SOND
    Writing Chunk... AGRP
    Writing Chunk... SPRT
    Writing Chunk... BGND
    Writing Chunk... PATH
    Writing Chunk... SCPT
    Writing Chunk... GLOB
    Writing Chunk... SHDR
    Writing Chunk... FONT
    Writing Chunk... TMLN
    Writing Chunk... OBJT
    Writing Chunk... ROOM
    Writing Chunk... DAFL
    Writing Chunk... EMBI
    Writing Chunk... TPAGE
    Texture Group - Default
    Writing Chunk... TGIN
    Writing Chunk... STRG
    Writing Chunk... TXTR
    0 Compressing texture... writing texture texture_0.png... 
    1 Compressing texture... writing texture texture_1.png... 
    2 Compressing texture... writing texture texture_2.png... 
    3 Compressing texture... writing texture texture_3.png... 
    Writing Chunk... AUDO
    ClangExeLocation=C:\Users\Tom\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe
    Using NDKDir = C:\Users\Tom\AppData\Local\Android\Sdk\ndk-bundle
    Using PlatformDir = C:\Users\Tom\AppData\Local\Android\Sdk\ndk-bundle\platforms\android-29
    Using ARM64ToolChain = C:\Users\Tom\AppData\Local\Android\Sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64
    saving file Y:/Rectar_Hatched_11A1AC8C_YYC\Rectar Hatched.droid
    Android NDK: android-14 is unsupported. Using minimum supported version android-16.   
    Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 14 in ./AndroidManifest.xml. NDK binaries will *not* be compatible with devices older than android-16. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.   
    [arm64-v8a] Compile++      : yoyo <= Rectar_Hatched.vars.cpp
    [arm64-v8a] Install        : libc++_shared.so => Y:/Rectar_Hatched_11A1AC8C_YYC/lib/arm64-v8a/libc++_shared.so
    [arm64-v8a] SharedLibrary  : libyoyo.so
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc28): undefined reference to `gml_Object_o_touch_input_Create_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc38): undefined reference to `gml_Object_o_touch_input_Step_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc48): undefined reference to `gml_Object_o_touch_input_Other_4(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc58): undefined reference to `gml_Object_o_touch_input_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc68): undefined reference to `gml_Object_o_mb0_Create_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc78): undefined reference to `gml_Object_o_mb0_Step_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc88): undefined reference to `gml_Object_o_mb0_Collision_00f82aaf_7e52_4deb_ba0f_931566dd06a3(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xc98): undefined reference to `gml_Object_o_mb0_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xca8): undefined reference to `gml_Object_o_mb1_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xcb8): undefined reference to `gml_Object_o_mb2_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0xcc8): undefined reference to `gml_Object_o_mb3_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1d28): undefined reference to `gml_Object_o_dragon_fruit_Alarm_1(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1d38): undefined reference to `gml_Object_o_dragon_fruit_Collision_8fd86a38_e5fa_4a6c_b67c_d73812568d1e(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1d48): undefined reference to `gml_Object_o_dragon_fruit_PreCreate_0(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1f68): undefined reference to `gml_RoomCC_rm_world_volcano_2_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1f78): undefined reference to `gml_RoomCC_rm_world_volcano_3_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1f88): undefined reference to `gml_RoomCC_rm_world_volcano_4_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x1f98): undefined reference to `gml_RoomCC_rm_world_volcano_5_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x25d8): undefined reference to `gml_Room_rm_volcano_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x25e8): undefined reference to `gml_Room_rm_volcano_blitz_Create(CInstance*, CInstance*)'
    ./obj/local/arm64-v8a/objs/yoyo/Rectar_Hatched.vars.o:(.data.g_GMLFuncs+0x25f8): undefined reference to `gml_Room_rm_volcano_boss_Create(CInstance*, CInstance*)'
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [obj/local/arm64-v8a/libyoyo.so] Error 1
    Stats : GMA : Elapsed=62502.9583
    Stats : GMA : sp=98,au=0,bk=6,pt=0,sc=145,sh=3,fo=3,tl=0,ob=98,ro=15,da=0,ex=0,ma=933,fm=0xE000B21D7FEA22B4
    X://bin/GMAssetCompiler.exe exited with non-zero status (2)
    "cmd"  /c subst Z: /d
    elapsed time 00:01:54.2150262s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.3.344/bin/Igor.exe" -j=8 -options="C:\Users\Tom\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package started at 07/14/2019 18:30:31
    elapsed time 00:00:00.1249232s for command "cmd" /c subst Z: /d started at 07/14/2019 18:32:25
    "cmd"  /c subst Y: /d
    elapsed time 00:00:00.1519065s for command "cmd" /c subst Y: /d started at 07/14/2019 18:32:25
    "cmd"  /c subst X: /d
    elapsed time 00:00:00.1269218s for command "cmd" /c subst X: /d started at 07/14/2019 18:32:25
    ---------- STOPPING ----------
    FAILED: Package Program Complete
    

    In an attempt to solve my own problems I did read through it. The Android NDK error was also on the blank project. But it was blank so maybe that does mean something. Also there is a bunch of undefined messages but I checked those objects and everything should be fine. Definitely nothing undefined.

    Also after the "non-zero status" line is where I actually hit stop. It doesn't actually stop itself. First time I left it over night and it kept trying to compile for like 9 hours.
     
  10. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    OK so first things I'd try to pick the low hanging fruit:

    1) Does the project compile if you use the Windows export? (if you own it and there are no mobile specific things that would prevent it) or the Windows Test VM export if you don't.
    2) The mention of a folder being locked in your first output - try rebooting your PC, opening the project in GMS2 and then cleaning the cache and see if it says the same thing.
    3) Remove the space from the name of your project. Use File > Save As and choose a name with standard a-z/A-z/0-9 characters, no spaces, hyphens or unusual characters.

    Try the above one at at time.

    Other things I noticed:
    Code:
    Using PlatformDir = C:\Users\Tom\AppData\Local\Android\Sdk\ndk-bundle\platforms\android-29
    This could be cached from the old attempts to build, but should be 28, although you can't clean the cache at the moment.

    Code:
    Android NDK: WARNING: APP_PLATFORM android-16 is higher than android:minSdkVersion 14
    Are you using any extensions that require v16?
    If so change your minSDKVersion setting to match this in the build settings.
     
    Last edited: Jul 15, 2019
    Nocturne likes this.
  11. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    Okay so the first thing I did was try windows. Windows YYC is not working. I can't remember if it worked before but I feel like it did. Now I'm getting a visual studio error (fun fact I googled it real quick and it lead me to another forum post from 2016 where you were helping someone lol clearly you are generous to the comunity). BUT either way the VM export did work for windows.

    Then I renamed the file to remove the space and was going to restart but just to see it let me clean the cache now that it was technically a new project I guess. Its now about 4 minutes into compiling and no errors so this might take a while if its going to work. Before it error'd out at about 45 seconds.

    Lastly I don't think I am using anything that need ndk 16. I just don't like to mess with things that were/are working. If it compiles now I will probably just leave it at 16. I don't actually know which versions i need lol.
     
  12. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    OK I'm confused haha - does it fail at 45secs or is it still compiling but taking a while?

    The error says that something requires 16 but your minimum SDK is set to 14 - have you checked and confirmed the build settings for the newly saved project?

    The recommended settings are usually filled in when you use dropdown to choose the API Level in the Build Settings, this is taken from the Required SDK Guide I linked earlier:

    [​IMG]

    So where are we at right now?
    You last message was a bit all over the place with regards to what progress has been made, if any.

    edit:
    Re-reading your message, you were saying that it errored out at 45sec previously, but is now compiling.
    The first time I read it as you saying it was compiling, before it errored out at 45secs.

    Keep us updated, we'll get there in the end lol. :)
     
  13. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    17 minutes. Still Compiling. Will let you know what happens. First time compiles take me almost 2 hours for some reason.
     
  14. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Jesus, how big is your project?

    Pedal faster please! :D
     
  15. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    lol Well it's going to be like a real full platformer game, about 25% done. Compiles for windows are still pretty fast but android takes forever.
     
  16. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Alright well hopefully it works, although I might not be around in 2hrs, not sure.

    If it errors out just do the same as before and post the full output and if I don't catch it tonight I'll check it tomorrow unless someone else can jump in and help first.
     
  17. Tom_SavePointsGames

    Tom_SavePointsGames Member

    Joined:
    Jul 6, 2016
    Posts:
    83
    It compiled. I didn't see exactly how long but odd enough it then told me it only took 1 minute to compile.... Whatever. Now i have to test it but I guess your work is done! Thank you sir!
     
  18. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,452
    Awesome, no problem glad we got it sorted! :)
     
    Last edited: Jul 15, 2019

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice