Bug Issue: Failed to prepare Stencyl for building games


Pages: 1

makaydenko

  • Subscriber - Stencyl Studio
  • *
August 15, 2022, 04:55:52 am
Stencyl 4.1.0-beta (b11100)
macOS 10.13.6 HighSierra

Log:

Code: [Select]
ERROR stencyl.sw.util.dg.MessageDialog Error: Failed to prepare Stencyl for building games.
ERROR stencyl.sw.app.tasks.buildgame.GameBuilder: Failed to rebuild hxcpp tools
DEBUG stencyl.sw.util.platform.haxe.HXCPP: Process 'haxe' exited with code: 134
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] Expected in: /usr/lib/libSystem.B.dylib
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] Referenced from: ~/Library/Application Support/Stencyl/runtimes/HaxeFoundation/haxe/4.2.5-osx/haxe
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] dyld: Symbol not found: ____chkstk_darwin
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] Expected in: /usr/lib/libSystem.B.dylib
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] Referenced from: ~/Library/Application Support/Stencyl/runtimes/HaxeFoundation/haxe/4.2.5-osx/haxe
INFO stencyl.sw.util.platform.haxe.HXCPP: [haxe] dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
DEBUG stencyl.sw.util.platform.haxe.HXCPP: Running command: > "~/Library/Application Support/Stencyl/runtimes/HaxeFoundation/haxe/4.2.5-osx/haxe" compile.hxml
INFO stencyl.sw.util.platform.haxe.HXCPP: Rebuilding hxcpp tools
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 1
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall ios-sim
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 1
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall tail
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 1
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall cc1plus
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 1
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall arm-linux-androideabi-g++
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 0
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall adb
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Process 'killall' exited with code: 1
DEBUG stencyl.sw.app.filewatcher.ExternalAppLauncher: Running command: > killall neko
ERROR stencyl.sw.util.platform.android.AndroidToolchain: Can't parse android build-tools version .DS_Store
INFO stencyl.sw.app.tasks.buildgame.GameBuilder: Building game with arguments: Android, TESTING
« Last Edit: August 16, 2022, 09:00:11 am by Justin »


Justin

  • Master Stencyler
  • *
August 16, 2022, 08:59:37 am
Looks like the current default version of Haxe doesn't work on High Sierra? This is a new issue that you weren't running into in previous builds, right? (That is, you were successfully able to compile games with a previous Stencyl build, with the same OS.)

If you open [Stencyl install]/ext-tools/runtimes/haxe.component, and change the version to 4.2.1 (the last version that was being used), does it work?
« Last Edit: August 16, 2022, 09:03:38 am by Justin »


makaydenko

  • Subscriber - Stencyl Studio
  • *
August 16, 2022, 12:10:27 pm
Yes, I was able to successfully compile game with a previous build of Stencyl on macOS 10.13.6. I've changed Haxe version to 4.2.1 and compiling process has been started.

But I can't compile game with Android target version API 32 in the settings. There is an error:
Code: [Select]
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] > Manifest merger failed : android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] Execution failed for task ':app:processDebugMainManifest'.
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] * What went wrong:
ERROR stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] FAILURE: Build failed with an exception.

For Android target version API 30 it works fine.
« Last Edit: August 17, 2022, 02:42:12 pm by Justin »


makaydenko

  • Subscriber - Stencyl Studio
  • *
August 17, 2022, 05:52:31 am
And build failed for iOS:

Code: [Select]
ERROR stencyl.sw.app.tasks.buildgame.GameBuilder Failed: Running iOS. (Return code: 1)
DEBUG stencyl.sw.app.tasks.buildgame.GameBuilder$2 Process 'haxelib' exited with code: 1
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] (1 failure)
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] ExternalBuildToolExecution Build\ Haxe (in target 'Build Haxe' from project 'Bugs')
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] The following build commands failed:
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] ** BUILD FAILED **
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] ~/stencylworks/games-generated/Bugs/Export/ios/Bugs.xcodeproj: warning: OpenGLES is deprecated. Consider migrating to Metal instead.
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib]     /bin/mkdir -p ~/stencylworks/games-generated/Bugs/Export/ios/DerivedData/Build/Products/Release-iphoneos/Bugs.app
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib]     cd ~/stencylworks/games-generated/Bugs/Export/ios
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] MkDir ~/stencylworks/games-generated/Bugs/Export/ios/DerivedData/Build/Products/Release-iphoneos/Bugs.app (in target 'Bugs' from project 'Bugs')
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] Command ExternalBuildToolExecution failed with a nonzero exit code
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] make: *** [build-haxe-armv7] Error 1
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] cp: build/Release-iphoneos-armv7/libApplicationMain.iphoneos-armv7.a: No such file or directory
INFO stencyl.sw.app.tasks.buildgame.GameBuilder$2 [haxelib] cp build/Release-iphoneos-armv7/libApplicationMain.iphoneos-armv7.a ../lib/armv7/libApplicationMain.a

I've changed the Haxe version to 4.2.1 but it didn't help.

P.S. Tested on:
- macOS 10.13.6 High Sierra
- macOS 12.4 Monterey
« Last Edit: August 18, 2022, 04:03:19 am by makaydenko »


Justin

  • Master Stencyler
  • *
August 18, 2022, 06:36:42 pm
Thanks, the Android issue is tracked here: https://community.stencyl.com/index.php?issue=2073.0

I'll try to have all three issues fixed soon.
« Last Edit: August 18, 2022, 06:37:24 pm by Justin »


Issue updated by Justin - August 19, 2022, 11:49:58 am
  • Status changed from New to Confirmed


Justin

  • Master Stencyler
  • *
August 22, 2022, 05:24:10 pm
I've submitted a fix for macOS High Sierra support to the Haxe repository, so once a new release is made I'll update us to that.
https://github.com/HaxeFoundation/haxe/pull/10778

Until then, I'm rolling us back to 4.2.1. All three issues mentioned here are fixed in 4.1.0-beta3/b11106.
  • Status changed from Confirmed to Resolved


Pages: 1

Details

  • Reported
    August 15, 2022, 04:55:52 am
  • Updated
    August 22, 2022, 05:24:10 pm

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

Tags