{"id":198,"date":"2009-02-21T12:43:32","date_gmt":"2009-02-21T18:43:32","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/?p=198"},"modified":"2009-02-21T12:49:34","modified_gmt":"2009-02-21T18:49:34","slug":"bundling-sdl_imageframework-and-sdl_mixerframework","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2009\/02\/21\/bundling-sdl_imageframework-and-sdl_mixerframework\/","title":{"rendered":"Bundling SDL_image.framework and SDL_mixer.framework"},"content":{"rendered":"<p>So if you are trying to build a SDL + SDL_mixer + SDL_image + OS\/X + Xcode game .. well .. when you build it using the SDL Application Templates, you&#8217;ll find that it includes the SDL.framework in the application bundle but it does NOT include the SDL_image.framework and SDL_mixer.framework in the bundle.<\/p>\n<p>Which means, it will work on your computer if you&#8217;ve installed the SDL_image and SDL_mixer frameworks in \/Library\/Frameworks .. but it won&#8217;t work on any computer that does not have those frameworks installed.<\/p>\n<p>The error they will see if they happen to run your app from the command line will look something like:<\/p>\n<p>\u00a0<\/p>\n<p>dyld: Library not loaded: @executable_path\/..\/Frameworks\/SDL_image.framework\/Versions\/A\/SDL_image<\/p>\n<p>\u00a0\u00a0Referenced from: \/Users\/phil\/tmp\/ibeast_osx.app\/Contents\/MacOS\/ibeast_osx<\/p>\n<p>\u00a0\u00a0Reason: image not found<\/p>\n<div>This blog has some instructions on how to deal with <a href=\"http:\/\/overooped.com\/post\/42240519\/properly-bundling-frameworks-in-your-application\">this<\/a>. \u00a0However I still found it confusing that I had no idea where these &#8220;New Copy Files&#8221; rules were being placed. \u00a0Especially since I knew the SDL template had one already and I wanted to just modify that rule, or duplicate it.<\/div>\n<div>Here&#8217;s where to find those rules from your SDL template project:<\/div>\n<div>Groups &amp; Files &gt; Targets &gt; (name of your project) &gt; Copy Frameworks into .app bundle &gt;<\/div>\n<div>And you can drag your SDL_mixer and SDL_image frameworks onto that list.<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>So if you are trying to build a SDL + SDL_mixer + SDL_image + OS\/X + Xcode game .. well .. when you build it using the SDL Application Templates, you&#8217;ll find that it includes the SDL.framework in the application bundle but it does NOT include the SDL_image.framework and SDL_mixer.framework in the bundle. Which means, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[107,94,109,108,106],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-development","tag-bundling","tag-osx","tag-sdl_image","tag-sdl_mixer","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":0,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}