Latest stencyl not compiling flash builds [Logs]

Max Finch

  • *
  • Posts: 2187
Code: [Select]
Last login: Thu Aug  6 12:00:23 on ttys000
Maxs-MacBook:~ maxglockling$ cd /Users/maxglockling/Desktop/Stencyl/plaf/haxe
Maxs-MacBook:haxe maxglockling$ otool -L haxelib
haxelib:
@executable_path/libneko.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
Maxs-MacBook:haxe maxglockling$ cd ..
Maxs-MacBook:plaf maxglockling$ export DIR="$( cd "$( dirname "$0" )" && pwd )"
dirname: illegal option -- b
usage: dirname path
Maxs-MacBook:plaf maxglockling$ export HAXEPATH="$DIR/haxe"
Maxs-MacBook:plaf maxglockling$ export HAXE_STD_PATH="$HAXEPATH/std"
Maxs-MacBook:plaf maxglockling$ export HAXELIB_PATH="$HAXEPATH/lib"
Maxs-MacBook:plaf maxglockling$ export NEKO_INSTPATH="$DIR/neko-mac"
Maxs-MacBook:plaf maxglockling$ export NEKOPATH="$DIR/neko-mac"
Maxs-MacBook:plaf maxglockling$ export LD_LIBRARY_PATH="$NEKO_INSTPATH":"$HAXE_LIBRARY":"$LD_LIBRARY_PATH"
Maxs-MacBook:plaf maxglockling$ export PATH="$HAXEPATH":"$DIR":"$NEKO_INSTPATH":"$PATH"
Maxs-MacBook:plaf maxglockling$ cd haxe
Maxs-MacBook:haxe maxglockling$ otool -L haxelib
haxelib:
@executable_path/libneko.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
Maxs-MacBook:haxe maxglockling$ haxelib
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/maxglockling/Desktop/Stencyl/plaf/haxe/haxelib
  Reason: image not found
Trace/BPT trap: 5
Maxs-MacBook:haxe maxglockling$

Justin

  • *
  • Posts: 4403
Whoops again. >_<

Code: [Select]
cd /Users/maxglockling/Desktop/Stencyl/plaf/haxe
otool -L haxelib
cd ..
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export HAXEPATH="$DIR/haxe"
export HAXE_STD_PATH="$HAXEPATH/std"
export HAXELIB_PATH="$HAXEPATH/lib"
export NEKO_INSTPATH="$DIR/neko-mac"
export NEKOPATH="$DIR/neko-mac"
export DYLD_LIBRARY_PATH="$NEKO_INSTPATH":"$HAXE_LIBRARY":${DYLD_LIBRARY_PATH}
export PATH="$NEKO_INSTPATH":"$HAXEPATH":"$DIR":${PATH}
cd haxe
otool -L haxelib
./haxelib

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)

Max Finch

  • *
  • Posts: 2187
Code: [Select]
Last login: Thu Aug  6 14:36:15 on ttys000
Maxs-MacBook:~ maxglockling$ cd /Users/maxglockling/Desktop/Stencyl/plaf/haxe
Maxs-MacBook:haxe maxglockling$ otool -L haxelib
haxelib:
@executable_path/libneko.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
Maxs-MacBook:haxe maxglockling$ cd ..
Maxs-MacBook:plaf maxglockling$ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Maxs-MacBook:plaf maxglockling$ export HAXEPATH="$DIR/haxe"
Maxs-MacBook:plaf maxglockling$ export HAXE_STD_PATH="$HAXEPATH/std"
Maxs-MacBook:plaf maxglockling$ export HAXELIB_PATH="$HAXEPATH/lib"
Maxs-MacBook:plaf maxglockling$ export NEKO_INSTPATH="$DIR/neko-mac"
Maxs-MacBook:plaf maxglockling$ export NEKOPATH="$DIR/neko-mac"
Maxs-MacBook:plaf maxglockling$ export DYLD_LIBRARY_PATH="$NEKO_INSTPATH":"$HAXE_LIBRARY":${DYLD_LIBRARY_PATH}
Maxs-MacBook:plaf maxglockling$ export PATH="$NEKO_INSTPATH":"$HAXEPATH":"$DIR":${PATH}
Maxs-MacBook:plaf maxglockling$ cd haxe
Maxs-MacBook:haxe maxglockling$ otool -L haxelib
haxelib:
@executable_path/libneko.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
Maxs-MacBook:haxe maxglockling$ ./haxelib
Haxe Library Manager 3.2.0-rc.3 - (c)2006-2015 Haxe Foundation
  Usage: haxelib [command] [options]
  Basic
    install   : install a given library, or all libraries from a hxml file
    upgrade   : upgrade all installed libraries
    update    : update a single library
    remove    : remove a given library/version
    list      : list all installed libraries
    set       : set the current version for a library
  Information
    search    : list libraries matching a word
    info      : list information on a given library
    user      : list information on a given user
    config    : print the repository path
    path      : give paths to libraries
    version   : print the currently using haxelib version
    help      : display this list of options
  Development
    submit    : submit or update a library package
    register  : register a new user
    local     : install the specified package locally
    dev       : set the development directory for a given library
    git       : use Git repository as library
    hg        : use Mercurial (hg) repository as library
  Miscellaneous
    setup     : set the haxelib repository path
    newrepo   : [EXPERIMENTAL] create a new local repository
    deleterepo: delete the local repository
    selfupdate: update haxelib itself
    convertxml: convert haxelib.xml file to haxelib.json
    run       : run the specified library with parameters
    proxy     : setup the Http proxy
  Available switches
    --flat    : do not use --recursive cloning for git
    --always  : answer all questions with yes
    --debug   : run in debug mode
    --never   : answer all questions with no
    --global  : force global repo if a local one exists
Maxs-MacBook:haxe maxglockling$

Justin

  • *
  • Posts: 4403
What about

Code: [Select]
cd "/Users/maxglockling/stencylworks/games-generated/New Platformer"
/Users/maxglockling/Desktop/Stencyl/plaf/openfl -verbose build -debug project.xml flash

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)

Max Finch

  • *
  • Posts: 2187
Code: [Select]
Last login: Thu Aug  6 14:37:10 on ttys000
Maxs-MacBook:~ maxglockling$ cd "/Users/maxglockling/stencylworks/games-generated/New Platformer"
Maxs-MacBook:New Platformer maxglockling$ /Users/maxglockling/Desktop/Stencyl/plaf/openfl -verbose build -debug project.xml flash
dyld: Library not loaded: @executable_path/libneko.dylib
  Referenced from: /Users/maxglockling/Desktop/Stencyl/plaf/haxe/haxelib
  Reason: image not found
Maxs-MacBook:New Platformer maxglockling$

Image not found :(

Justin

  • *
  • Posts: 4403
Okay try replacing some neko scripts and see what happens. I'd expect that at least one message will be printed before the error appears again.

1) Stencyl\plaf\haxe\lib\openfl\openfl\run.n

2) Stencyl\plaf\haxe\lib\lime\lime\run.n

3) Stencyl\plaf\haxe\lib\lime\lime\tools\tools.n

And then run the above again and see what happens.

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)

Max Finch

  • *
  • Posts: 2187
Hey Justin, how do I use haxelib install hxcpp? I browsed this forum and came across this:

http://community.stencyl.com/index.php?topic=34491.0

He states that installing hxcpp fixed his issue. I've installed this before I just can't remember what I need to do to install hxcpp or run haxelib scripts...

Justin

  • *
  • Posts: 4403
Quote
Reason: no suitable image found.  Did find:
   /usr/lib/libneko.dylib: mach-o, but wrong architecture
It's a different problem. In that case, the libneko.dylib file was found, but it was the wrong architecture. In your case, the script simply isn't being found at all.

Have you been able to develop on this computer in the past? I'll be away for half an hour soon so I'll ask some more now. Have you made any other changes with your computer recently? Is the only difference that you're using a newer version of Stencyl? Do you know what the last version you used before this was?

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)

Max Finch

  • *
  • Posts: 2187
Yeah, every iPhone game and the flash ports of those games have come from this computer.



Nothing different about this computer, updated to the latest Stencyl today... Don't remember the last version but it was before the haxe, neko, openfl update.

Max Finch

  • *
  • Posts: 2187
Code: [Select]
jar:file:/Users/maxglockling/Desktop/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1438921443082001147 stencyl.sw.util.StreamGobbler [openfl]   Reason: image not found
jar:file:/Users/maxglockling/Desktop/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1438921443082001146 stencyl.sw.util.StreamGobbler [openfl]   Referenced from: /Users/maxglockling/Desktop/Stencyl/plaf/haxe/haxelib
jar:file:/Users/maxglockling/Desktop/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1438921443081001145 stencyl.sw.util.StreamGobbler [openfl] dyld: Library not loaded: @executable_path/libneko.dylib
jar:file:/Users/maxglockling/Desktop/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1438921443063001144 stencyl.sw.util.StreamGobbler [openfl] RunScript.hx:31: Opened openfl run.n

Max Finch

  • *
  • Posts: 2187
I should mention the code above was after I replaced the files you posted from above

Justin

  • *
  • Posts: 4403
Oh, I can tell. Sorry, I got sidetracked and started working on something else.

I'd still like to figure out what's behind this and resolve it, but I imagine you're getting tired of being unable to compile, so here's a way to probably force this to work.

http://hathaway.cc/post/69201163472/how-to-edit-your-path-environment-variables-on-mac

Set ~/.bash_profile to contain the following:

Code: [Select]
DIR="/Users/maxglockling/Desktop/Stencyl/plaf"
export HAXEPATH="$DIR/haxe"
export HAXE_STD_PATH="$HAXEPATH/std"
export HAXELIB_PATH="$HAXEPATH/lib"
export NEKO_INSTPATH="$DIR/neko-mac"
export NEKOPATH="$DIR/neko-mac"
export DYLD_LIBRARY_PATH="$NEKO_INSTPATH":"$HAXE_LIBRARY":${DYLD_LIBRARY_PATH}
export PATH="$NEKO_INSTPATH":"$HAXEPATH":"$DIR":${PATH}

Then if you use "source ~/.bash_profile" or restart, it should start working.

Though this is only recommended if you don't have another haxe install beside Stencyl, and you keep Stencyl in the same location on your computer.

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)

Justin

  • *
  • Posts: 4403
This may be fixed in the latest release.

For Live Support: Join our discord server and ping me @justin.
I'm most often available between 8am and midnight Japan time. (GMT+9)