help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Svg mode


From: Oleksandr Gavenko
Subject: Re: Svg mode
Date: Fri, 15 Oct 2010 17:21:47 +0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4

On 15.10.2010 16:22, Andrea Crotti wrote:
Oleksandr Gavenko<gavenko@bifit.com.ua>  writes:
May be.

Try run

   $ otool -L /path/to/emacs

to see what libs use Emacs.

But I thunk this not help. On Windows Emacs I run

   $ depends runemacs

and no see any image specific libs. After run Emacs in depends.exe and open
.png file I get in log:

Loaded "LIBPNG12.DLL" at address 0x6CC40000.  Successfully hooked module.
Loaded "ZLIB1.DLL" at address 0x02190000.  Successfully hooked module.

And Emacs show png.

So Emacs load shared library on fly.

Mm here is very different, since it uses the OSX system if I understand
correctly

--8<---------------cut here---------------start------------->8---
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility 
version 45.0.0, current version 1038.29.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 
5.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
125.0.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 
(compatibility version 1.0.0, current version 44.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 
(compatibility version 150.0.0, current version 550.19.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
 (compatibility version 1.0.0, current version 38.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 
(compatibility version 300.0.0, current version 751.21.0)
--8<---------------cut here---------------end--------------->8---

MS Windows:

  $ strings emacs.exe | grep png
libpng12d.dll
libpng12.dll
libpng.dll
libpng13d.dll
libpng13.dll

But 'depends.exe' show that 'libpng12.dll' come from third party:

  c:\opt\graphviz2.26.3\bin\LIBPNG12.DLL

Emacs from ftp.gnu.org is come only with 'libXpm.dll'.

With 'grep svg' on Windows:

  $ strings emacs.exe | grep svg
librsvg-2-2.dll

I download 'librsvg-2-2.dll' from
http://ftp.gnome.org/pub/gnome/binaries/win32/librsvg/2.22/

and put it to PATH. Emacs on open .svg say:

byte-code: Cannot display image: (Invalid image type `svg')
image-type: Cannot determine image type

Linux:

  $ strings `which emacs` | grep png
libpng12.so.0

For

  $ strings `which emacs` | grep svg

no match. Need upgrade Emacs to 23.x from 22.2.

So try search svg string in emacs executable and install appropriate lib.




reply via email to

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