#14424: libsdl_mixer cannot load libvorbisfile.dylib even though it is installed ------------------------------------+--------------------------------------- Reporter: dbruce@tampabay.rr.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | ------------------------------------+--------------------------------------- My new port (tuxmath) uses libsdl_mixer and libvorbis to play title music while the menus are visible. It fails to play the music - the tuxmath source for the port just says the ogg file is not found, although it is present. After modifying the tuxmath source slightly to generate more helpful output (namely by calling libsdl_mixer's Mix_GetError()) I get the following: janis-lehtinens-imac:tuxmath_w_fonts-1.6.1 dbruce$ tuxmath 2008-02-21 12:02:15.474 tuxmath[55393:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. LoadMusic(): /usr/local/share/tuxmath/sounds/tuxi.ogg not loaded successfully Error was: Mix_LoadMUS(fn): Failed loading libvorbisfile.dylib: dlopen(libvorbisfile.dylib, 2): image not found Looking in /opt/local/lib I find that libvorbisfile.dylib does in fact exist (as a symlink to libvorbisfile.3.2.0.dylib): janis-lehtinens-imac:lib dbruce$ ls -l total 60952 (...) -rwxr-xr-x 2 root admin 82732 Feb 9 20:55 libvorbisfile.3.2.0.dylib lrwxr-xr-x 1 root admin 25 Feb 9 20:55 libvorbisfile.3.dylib -> libvorbisfile.3.2.0.dylib -rw-r--r-- 2 root admin 175064 Feb 9 20:55 libvorbisfile.a lrwxr-xr-x 1 root admin 25 Feb 18 13:00 libvorbisfile.dylib -> libvorbisfile.3.2.0.dylib -rwxr-xr-x 2 root admin 936 Feb 9 20:55 libvorbisfile.la (...) janis-lehtinens-imac:lib dbruce$ if I cd to /opt/local/lib and run tuxmath from there, it finds the lib and plays the music properly. This is on an Intel iMac with Leopard 10.5.2 (this is my first bug ticket - sorry if I haven't completed it quite properly) David Bruce dbruce@tampabay.rr.com -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14424> MacPorts </projects/macports> Ports system for Mac OS