Bug Issue: Error when testing on Android


Pages: 1

soereide

  • Subscriber - Stencyl Studio
  • *
July 21, 2021, 06:50:48 am
Can't build for Android. Running MacOS 11.4, Stencyl b10769.

Code: [Select]
2021-07-21 15:37:40,328 INFO  [Thread-20] stencyl.sw.util.StreamGobbler: [haxelib]  - Running command: arm-linux-androideabi-g++ -Iinclude --sysroot=/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/platforms/android-16/arch-arm -I/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHX_SMART_STRINGS -DHXCPP_API_LEVEL=400 "-I/Users/tommy/Library/Application Support/Stencyl/libs/haxelib/Stencyl/hxcpp/4.2.0-ef800c1c5e/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=16 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o /Users/tommy/stencylworks/games-generated/Psychofunk/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "/Users/tommy/Library/Application Support/Stencyl/libs/haxelib/Stencyl/hxcpp/4.2.0-ef800c1c5e/include/hxcpp.h"
2021-07-21 15:37:40,332 INFO  [Thread-20] stencyl.sw.util.StreamGobbler: [haxelib] sh: /Users/tommy/stencylworks/android-sdk/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++: Permission denied
2021-07-21 15:37:40,334 INFO  [Thread-20] stencyl.sw.util.StreamGobbler: [haxelib] Error: Error while running command
2021-07-21 15:37:40,334 INFO  [Thread-20] stencyl.sw.util.StreamGobbler: [haxelib] arm-linux-androideabi-g++ -Iinclude --sysroot=/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/platforms/android-16/arch-arm -I/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/tommy/stencylworks/android-sdk/android-ndk-r15c/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHX_SMART_STRINGS -DHXCPP_API_LEVEL=400 "-I/Users/tommy/Library/Application Support/Stencyl/libs/haxelib/Stencyl/hxcpp/4.2.0-ef800c1c5e/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=16 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o /Users/tommy/stencylworks/games-generated/Psychofunk/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "/Users/tommy/Library/Application Support/Stencyl/libs/haxelib/Stencyl/hxcpp/4.2.0-ef800c1c5e/include/hxcpp.h"
2021-07-21 15:37:40,341 DEBUG [pool-1-thread-1] stencyl.sw.util.Util: Process 'haxelib' exited with code: 1
2021-07-21 15:37:40,342 ERROR [pool-1-thread-1] stencyl.sw.app.tasks.buildgame.GameBuilder: Failed: Running Android. (Return code: 1)
« Last Edit: August 02, 2021, 05:31:34 am by Justin »


New attachment added by soereide - July 21, 2021, 06:51:24 am


New attachment added by soereide - July 21, 2021, 06:51:30 am


Justin

  • Master Stencyler
  • *
August 04, 2021, 12:46:26 pm
The issue is that "arm-linux-androideabi-g++" is missing the execute permission. Stencyl sometimes seems to drop permissions in the installation process. I've made some changes to how the tools are installed, so hopefully we won't see any more of this. (Requires you to reinstall the ndk with the latest Stencyl build).

4.1.0-beta3/b10798.
« Last Edit: August 04, 2021, 12:47:08 pm by Justin »


New attachment added by soereide - August 05, 2021, 08:25:48 am


soereide

  • Subscriber - Stencyl Studio
  • *
August 05, 2021, 08:29:52 am
Tried the latest beta (b10798) and reinstalled the ndk and sdk.
Still happening.

I added the latest logs.

I also get this:
Quote
Cannot run program "/Users/tommy/stencylworks/android-sdk/android-sdk-macosx/platform-tools/adb": error=13, Permission denied


Justin

  • Master Stencyler
  • *
August 05, 2021, 12:09:29 pm
Taking another crack at this.


Justin

  • Master Stencyler
  • *
August 05, 2021, 01:37:57 pm
I've made another change here and confirmed that it works with one of the downloads. I suspect that all the rest should be fine now as well. 4.1.0-beta3/b10799.


soereide

  • Subscriber - Stencyl Studio
  • *
August 06, 2021, 03:20:02 am
It's working now. Thanks!


Issue updated by Justin - August 06, 2021, 10:40:16 am
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    July 21, 2021, 06:50:48 am
  • Updated
    August 06, 2021, 10:40:16 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Compiling/Testing Games

Tags


Attachments

* 2021-07-21_15-37-12.log (382.79 kB - downloaded 26 times.)
* SystemProperties.log (4.08 kB - downloaded 28 times.)
* 2021-08-05_16-08-40.log (204.12 kB - downloaded 21 times.)