From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Svg mode Date: Fri, 15 Oct 2010 17:21:47 +0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287153385 8057 80.91.229.12 (15 Oct 2010 14:36:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 14:36:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 16:36:24 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6lOP-0005Wu-H6 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 16:36:21 +0200 Original-Received: from localhost ([127.0.0.1]:53427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6lOO-0007Cf-NO for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 10:36:20 -0400 Original-Received: from [140.186.70.92] (port=42460 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6lAM-000638-V8 for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 10:21:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6lAK-00049f-Vq for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 10:21:50 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6lAK-00048q-Kq for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 10:21:48 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6lAI-0007Ej-A8 for help-gnu-emacs@gnu.org; Fri, 15 Oct 2010 16:21:46 +0200 Original-Received: from 91.193.68.214 ([91.193.68.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 16:21:46 +0200 Original-Received: from gavenko by 91.193.68.214 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 16:21:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91.193.68.214 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75134 Archived-At: On 15.10.2010 16:22, Andrea Crotti wrote: > Oleksandr Gavenko 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.