Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / YAML problems when building an osx app w/ gosu + releasy
- By indspenceable Date 2014-03-04 17:16 Edited 2014-03-04 19:21
I'm running into YAML problems every time I try to build my game into a .app. Depending on the version of the wrapper, it gives me a different issue. I use YAML for both important configs and (more problematically) saving gamestate so it's important that I'm able to use it.

0.7.44: When I load a serialized object w/ references, it turns (some) of the references into nulls. Looking at the YAML that's being loaded confirms that it is incorrect.
0.7.47: First, I have to do the lipo thing from here: http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?tid=887 . This breaks monospaced fonts. Regardless: When I serialize my gamestate, it for some cases appears to do so incorrectly. I get a syntax error when I do YAML.load(YAML.dump(gamestate))
0.7.48: I built this app wrapper out of the ruby wrapper project here: https://github.com/jlnr/ruby_app . I renamed Ruby -> RubyGosu\ App, and tar.gz'd it. Actually, everything works fine for me, but it looks like it's dynamically linked against psych and fails on my friends computer:

/Users/BigDaddy/Desktop/Frost.app/Contents/Resources/lib/yaml.rb:4:in <top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/Users/BigDaddy/Desktop/Frost.app/Contents/Resources/lib/psych.rb:1:in
require': dlopen(/Users/BigDaddy/Desktop/Frost.app/Contents/Resources/lib/psych.bundle, 9): Library not loaded: /usr/local/lib/libyaml-0.2.dylib (LoadError)

I can't build my own version of the app wrapper because it fails when trying to build a non-existant .xcodeproj. I'm not sure what should actually be in that project, and it's not really documented, so I'm not sure how to proceed.

Thanks for the help.

EDIT: looking at when it was deleted (a394ae853e4b1319508c849aa79c109fab4a0df2) suggests how to fix it... I'll give it a shot today.
EDIT2: No luck on that front. trying to switch from YAML to JSON just caused a segfault when I run the program using 0.7.48, as well.
Up Topic Gosu / Gosu Exchange / YAML problems when building an osx app w/ gosu + releasy

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill