On 1/30/12 11:33 AM, bzink wrote:
> Hello,
>
> When installing packages on the OS X 3.4.3 binary release, I find
> that mkoctfile fails to correctly construct the required LDFLAGS.
> Here is a sample attempt (note that the path to the Octave.app
> directory is /Applications/octave/Octave.app)
>
> octave-3.4.0:1> getenv('LDFLAGS') ans =
> -L/Applications/octave/Octave.app/Contents/Resources/lib
> -L/Applications/octave/Octave.app/Contents/Resources/lib/octave-3.4.0
> octave-3.4.0:2> cd octave/packages octave-3.4.0:3> pkg install
> -verbose -global struct-1.0.9.tar.gz mkoctfile: stripping disabled
> on this platform ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/lib' following -L not
> found ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/lib/gcc/i686-apple-darwin9/4.2.1'
>
>
following -L not found
> ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/lib/gcc' following -L
> not found ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin9/4.2.1'
>
>
following -L not found
> ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/bin/../lib/gcc'
> following -L not found ld: warning: directory
> '/Applications/Octave.app/Contents/Resources/bin/../lib/gcc/i686-apple-darwin9/4.2.1/../../..'
>
>
following -L not found
> ld: library not found for -lgfortranbegin collect2: ld returned 1
> exit status
>
> (All of the ld -L flags have the wrong paths, even though the
> getenv('LDFLAGS') seems correct.) Is there a corrective action I
> can take?
>
> My mac runs OS 10.6.8 and I'm using the Xcode developer tools.
>
> Thanks.
>
>
Try editing
/Applications/octave/Octave.app/Contents/Resources/bin/mkoctfile-3.4.0
and set LDFLAGS there to match what you're getting from getenv(). You
may need to set some of the other variables, too. You might a
Either that or move Octave.app out of the octave/ directory and into
the top-level /Applications/ directory.
Unfortunately, the mkoctfile-3.4.0 in Octave.app isn't quite set up
properly to cope with allowing the app to be moved.
--
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev