When I compile the frameworks for SDL2 I'm having no problems, except when I compile the SDL2\_mixer.framework. 

Here is the code for the compiler, I use rpath to a custom location/directory because I want to be able to move it between computers with no compiler errors, and it works, although like I mentioned before it is having problems with the mixer (Audio) framework in SDL2.

```
echo "OSX/Darwin"
FLAGS=""
FLAGS+="-framework OpenGL -framework GLUT "
FLAGS+="-F $(pwd)/SDL_runner/SDL_frameworks/OSX/ "
FLAGS+="-framework SDL2 "
FLAGS+="-framework SDL2_mixer "
FLAGS+="-framework SDL2_image "
FLAGS+="-framework SDL2_ttf "
FLAGS+=-"rpath $(pwd)/SDL_runner/SDL_frameworks/OSX/ "

```

The GCC compiler code, The $compilecpp $compilec and $compileo are just all the cpp, o, and hpp files in the directory and subdirectories. Those three variables are also not causing the problem.

```
g++ -Wall $compilecpp $compilec $compileo -o run -DMAC $FLAGS

```

The includes.

```
#ifdef MAC
#include <SDL2/SDL.h>
#include <SDL2_mixer/SDL_mixer.h>
#endif

```

And lastly the error I'm getting from it, is only pertaining to SDL2\_mixer.framwork saying that the image doesn't exist, even though I implemented it in the exact same fashion as the rest of the frameworks.

```
dyld: Library not loaded: @executable_path/../Frameworks/SDL2.framework/
Versions/A/SDL2
  Referenced from: /Users/jordan/Documents/GaleFoxGames/graphic_render/
OpenGL_dis4/SDL_runner/SDL_frameworks/OSX/SDL2_mixer.framework/Versions/
A/Frameworks/smpeg2.framework/Versions/A/smpeg2
  Reason: image not found
Trace/BPT trap: 5

```