1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 09:09:47 +02:00

64 Commits

Author SHA1 Message Date
lllucius
07661c186f Fixes detection problems on Mac and possibly Windows (Bug #290)
This should fix the detection problems on the Mac and may even help with issues
on Windows and Linux.

On any of the platforms, the main issue is the search path for libraries and
how absolute path names are handled.  The Mac seems to be especially
susceptible since there isn't one concrete location where libraries are stored.

Windows handles absolute paths differently and allows runtime updates to the
environment variables (and if push comes to shove, provides the
SetDllDirectory() function), so if problems still exist, they should be easy to
circumvent.

This patch does three things:

1)  It adds a shell script on OSX that takes care of starting Audacity after
reassigning and clearing the DYLD_LIBRARY_PATH environment variable.  This will
allow loading of libraries from their absolute path rather than searching
DYLD_LIBRARY_PATH first.  This script should be transparent to the user, but it
will affect people running Audacity with gdb as they will have to specifically
target Audacity.app/Contents/MacOS/Audacity instead of the Audacity.app bundle.
 Not big deal really.  If ppl no enough to use gdb from the command line, they
should be able to figure it out.

2)  It corrects detection of a monolithic FFmpeg library.  This is one where
avformat, avcodec, and avutil have all been linked into one large library.  The
main issue here was that under OSX and Linux, looking for symbols that should
reside in avutil and avcodec, would always succeed since dlsym() on these
platforms not only scans the requested library, but any dependent libraries as
well.  And when avformat was loaded, it would pull in it's dependent libraries
as well.

Another issue here was the if it was determined that the library was not
monolithic, the library was never unloaded, so those dependent libraries may
have come from the wrong location since they would have been loaded via the
normal search paths and not by absolute path name.

3)  It adds a method to FileNames which returns the full path name of a loaded
module that contains an address.  In the case of FFmpeg, it is used to verify
that a routine from a specific library is actually being used from that library
or not.  It is also used to show (in Help->Show log) the directory from which a
library was actually loaded.
2011-02-23 01:41:40 +00:00
mchinen
c4609d6c58 add DeviceManager.cpp/h to mac project 2011-02-13 19:18:14 +00:00
mchinen
b0e7ceb04d Add EQDefaultCurves.xml to mac project 2011-01-02 18:56:31 +00:00
rbdannenberg
576dfe6653 Restore Audacity xcode project (undoing accidentally committed OS X 10.6 changes in revision 10695). Fix some midi playback problems. 2010-10-01 15:26:46 +00:00
rbdannenberg
e76bfa39ef Fix compiler warnings (string constant to char *) from allegro.h. Also implements play at speed for MIDI, but some MIDI playback problems remain. 2010-09-27 05:51:41 +00:00
prlivesey
3db9b4db68 Changes to fix compilation problems on a Mac after extensive changes to improve NoteTrack display. 2010-09-19 21:46:40 +00:00
prlivesey
7d1837859e Removed obsolete reference to pitch.cpp in sbsms. 2010-06-12 11:26:49 +00:00
prlivesey
d298bf57d9 Added ExtImportPrefs.cpp and ExtImportPrefs.h to the Mac project file. 2010-04-07 12:11:48 +00:00
mchinen
ece5a9e51e adding ODDecodeFFmpegTask files to the mac project. Please add to other platforms. 2010-03-19 14:58:22 +00:00
prlivesey
68fb0816d0 Changes to remove (the now unused and unconfigured) taglib from the Mac project file and build process. 2010-03-08 12:41:34 +00:00
windinthew
27767ebf5a CVS > SVN and wxMac 2.8.8 > 2.8.10 2010-02-12 14:16:14 +00:00
lllucius
7945e8723d Added hi and my translations to the Xcode project. 2010-01-27 15:17:10 +00:00
lllucius
9dd39ae427 Handle .svn directories instead of CVS ones. 2010-01-25 09:36:40 +00:00
ra
e74978ba77 Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches 2010-01-23 19:44:49 +00:00