octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOsX: can not use flak toolkit


From: Alexander Hansen
Subject: Re: MacOsX: can not use flak toolkit
Date: Wed, 06 Feb 2013 10:27:46 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 2/6/13 10:04 AM, CdeMills wrote:
> Hello,
> 
> I looked back and forth with octave-devel maintainer on MacPorts. The issue
> is about "graphics_system('fltk')" not working, yet
> 'available_graphics_toolkit' shows it could be used.
> 
> I nailed the problem down: "which __init_gnuplot__" returns the path of a
> .oct file; while "which __init_fltk__" returns nothing. Yet the file
> __init_fltk__.oct" exists in the same dir as "__init_gnuplot__.oct", and
> 'tool -L', the equivalent of ldd, shows its a dynamic library, whose all
> pre-requisite are available.

The ability to run "otool -L" on something just tells you that it's
_some_ kind of Mach-O binary:

$ otool -L
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_fltk__.oct # bundle
(see below)
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_fltk__.oct:
        /sw/lib/octave/3.6.3/liboctinterp.1.dylib (compatibility version 2.0.0,
current version 2.2.0)
        /sw/lib/octave/3.6.3/liboctave.1.dylib (compatibility version 3.0.0,
current version 3.0.0)
...

$ otool -L /sw/lib/octave/3.6.3/liboctave.1.dylib # dynamic library
/sw/lib/octave/3.6.3/liboctave.1.dylib:
        /sw/lib/octave/3.6.3/liboctave.1.dylib (compatibility version 3.0.0,
current version 3.0.0)
        /sw/lib/octave/3.6.3/libcruft.1.dylib (compatibility version 2.0.0,
current version 2.1.0)
...

$ otool -L /sw/bin/octave-3.6.3 # executable
/sw/bin/octave-3.6.3:
        /sw/lib/octave/3.6.3/liboctinterp.1.dylib (compatibility version 2.0.0,
current version 2.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 169.3.0)


One way to tell that the second item is, in fact, a dynamic library is
that the first entry refers to itself (or a symlink to itself, possibly).

> 
> Any idea of how to debug the fact that, inside octave, "__init_fltk__.oct"
> is not recognised as a valid dynamic lib ?
> 
> Regards
> 
> Pascal
> 
> 
> 
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/MacOsX-can-not-use-flak-toolkit-tp4649578.html
> Sent from the Octave - Maintainers mailing list archive at Nabble.com.
> 

>From my own packaging (Octave-3.6.3, and fltk plotting works here):

octave:1> which __init_gnuplot__
`__init_gnuplot__' is a function from the file
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_gnuplot__.oct
octave:2> which __init_fltk__
`__init_fltk__' is a function from the file
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_fltk__.oct

$ file /sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_fltk__.oct
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_fltk__.oct: Mach-O
64-bit bundle

$ file /sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_gnuplot__.oct
/sw/lib/octave/3.6.3/oct/x86_64-apple-darwin/__init_gnuplot__.oct:
Mach-O 64-bit bundle

If __init_fltk__.oct is indeed a dynamic library rather than a bundle,
that might be the source of the problem.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]