Solution
The bug with the LDFlags still exists. I guess I must of did this last time when I compiled Mplayer and just forgot. To compile you need to edit the LDFlags option in Mplayer like so:
Code:
./configure --extra-ldflags="-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
Original Problem
Is there a way to restore default applications?
I installed XQuartz as per a recommendation by GIMP and I'm pretty sure it's the cause of my problems with Mplayer. With XQuartz I could compile the Mplayer SVN, but Mplayer would crash when using corevideo. If I used quartz it would work fine, which is obviously a problem since corevideo is a lot better.
I installed X11 off my Leopard DVD, and now Mplayer doesn't install with corevideo. Is there anything else off the Leopard DVD I can install? I'm about to reinstall 10.5.7 (if it'll let me since I'm already on 10.5.7) to see if that'll work.
If I use ./configure --enable-corevideo with the X11 off the Leopard DVD it would fail to compile with:
Code:
ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
I did a little searching on that error and it seems it's an old error which was already fixed in newer versions of Mac OS X. It was a problem with the linker and you had to manually override the LDFLags. Since this isn't my program I really don't know how to override the LDFlags.
Reference
So I'm pretty sure the problem is with XQuartz. The XQuartz website doesn't provide any method to uninstall XQuartz. Is there anything else I can try if reinstalling 10.5.7 doesn't work? Is my only option reinstalling Leopard?