[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gimp-developer
Subject:    Re: [gimp-devel] multi-platform gimp
From:       Benjamin Lewis <bclewis () cs ! sfu ! ca>
Date:       1998-08-27 16:06:06
[Download RAW message or body]

On Thu, 27 Aug 1998, David Hoover wrote:

> Hi,
> 
> I compiled gimp for sparc-sun-solaris and powerpc-unknown-linux
> using the
>        --prefix=/share/gtk --exec-prefix=/share/gtk/<platform>
> configure options.  Now when I run gimp on one of the platforms,
> it complains for every plug-in:
> 
>         /share/gtk/sparc-sun-solaris/lib/gimp/1.0/plug-ins/MapObject:
>         /share/gtk/sparc-sun-solaris/lib/gimp/1.0/plug-ins/MapObject:
> cannot execute binary file
>         wire_read: unexpected EOF (plug-in crashed?)
> 
> This is because it is trying to run sparc plug-ins while running on
> powerpc.
> 
> I looked into why it was trying to run these plug-ins for the wrong
> architecture, and noticed
> that the /share/gtk/share/gimp/gimprc file (which should be
> architecture-independent)
> contains architecture-dependent stuff in it (namely the exec_prefix
> variable).
> 
>     (exec_prefix "/share/gtk/sparc-sun-solaris")
>     (gimp_plugin_dir "${exec_prefix}/lib/gimp/1.0")

One workaround is to use an environment variable in the gimprc file, e.g.

(exec_prefix "/share/gtk/${MACHINE}")

where MACHINE is set to be whatever you're running at the time.

n.b. the curly braces are necessary.

Ben.

-------------------------------------------------------------------------------
     Benjamin Lewis                                 frogstar@earthling.net     
-------------------------------------------------------------------------------
Basic Definitions of Science:
        If it's green or wiggles, it's biology.
        If it stinks, it's chemistry.
        If it doesn't work, it's physics.
-------------------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic