Testing Games/Scenes take forever to compile (MacOS Catalina) [ haxelib - nekovm

somethingisone

  • Posts: 4
Notes: I am trying to test the game on flash (either web/browser) or html

When I first downloaded Stencyl, it instructed me to download NekoVm to be able to test games. When i downloaded NekoVm the game started to save and compile however its stuck on compile. Reading the logs it says cannot run program haxelib. So I tried running the program haxe in /Applications/Stencyl-4.0.2-mac/plaf/haxe-bin/mac, but it still wont let me test the game.

I tried simply updating nekovm and even deleting nekoVM and reinstalling it, but the result is still the same

(I tried reading other posts relating to nekovm and haxelib, however, whenever i tried doing the suggestions, my problem is still not resolved or I simply dont understand the suggestion)

yoplalala

  • *
  • Posts: 1632
Try to read this thread  http://community.stencyl.com/index.php/topic,45403.0.html


Justin posted this script which worked for me when I had a similar problem
Code: [Select]
cd /Applications/Stencyl/plaf
sudo -S mkdir -p /usr/local/lib/neko
sudo -S cp -r neko-mac/* /usr/local/lib/neko

sudo -S mkdir -p /usr/local/bin
sudo -S ln -s /usr/local/lib/neko/libneko.dylib /usr/local/lib/libneko.dylib
sudo -S ln -s /usr/local/lib/neko/neko /usr/local/bin/neko
sudo -S ln -s /usr/local/lib/neko/nekoc /usr/local/bin/nekoc
sudo -S ln -s /usr/local/lib/neko/nekotools /usr/local/bin/nekotools

Wowlex

  • Posts: 26
I'm  teaching a student online that is having this exact same issue. He's on a Mac and I'm on a PC though, so troubleshooting is difficult. We tried some things on that other thread but they didn't quite work.

somethingisone - did yopolalala's solution work for you?

Yopololalala - Do you basically just open the Mac terminal, then copy and paste that text?

Thanks for the help.

somethingisone

  • Posts: 4
Well, the solution did not work for me (or I may have performed it improperly). Instead, I deleted all files related to stencyl and the application itself and redownloaded the app, however I have a different problem once more about haxelib and its libraries not loading

Wowlex

  • Posts: 26
We tried putting that code into the terminal and nothing changed.

Any other suggestions besides deleting everything and reinstalling Stencyl?

yoplalala

  • *
  • Posts: 1632
Looked at the logs. The problem doesn't seem with stencyl .

it says

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
2020-04-16 17:32:54,178 DEBUG [Thread-3] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer
2020-04-16 17:32:54,184 DEBUG [Thread-4] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer
2020-04-16 17:32:54,190 DEBUG [Thread-5] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: missing DEVELOPER_DIR path: /Developer
2020-04-16 17:32:54,245 DEBUG [Thread-6] stencyl.sw.util.StreamGobbler: [xcodebuild] xcrun: error: unable to exec Xcode native xcrun (Not a directory).
2020-04-16 17:32:54,245 WARN  [AWT-EventQueue-0] stencyl.sw.util.platform.XCode: No Xcode found.

Did you install XCode ?

Wowlex

  • Posts: 26
So, Xcode is required even when compiling to Flash or HTML5? Other students in my class have been able to test games on their mac without installing it.

yoplalala

  • *
  • Posts: 1632
Humm, normally no.
I just tried to find errors in the logs and saw this one. I forgot somethingisone was only talking about html/ flash...
But I don't think you need nekovm neither..

I see this error.

2020-04-17 16:43:02,942 ERROR [pool-1-thread-2] stencyl.sw.util.Util: Cannot run program "haxelib" (in directory "/Users/Waki/stencylworks/games-generated/project4xtra"): error=2, No such file or directory
java.io.IOException: Cannot run program "haxelib" (in directory "/Users/Waki/stencylworks/games-generated/project4xtra"): error=2, No such file or directory

Does "/Users/Waki/stencylworks/games-generated/project4xtra" exist ?
Do you have the permissions to use   "/Users/Waki/stencylworks" ?
( you can try opening stencyl as an administrator    or doing chmod 777  on the directory)