0

I compile gegl-0.2.0 (needed to compile gimp-2.8) on PowerPC Mac Leopard 10.5.4.

All other programs such as glib-2.38.2, intltool-0.50.2 and babl which are necessary to compile gimp have been compiled fine.

I have this kind of errors while compiling gegl:

GEGL-geglmodule.c-Message: Module '../../operations/common/.libs/layer.so.dSYM
/Contents/Resources/DWARF/layer.so' load error: dlopen(../../operations/common
/.libs/layer.so.dSYM/Contents/Resources/DWARF/layer.so, 10): no suitable image found.
Did find
../../operations/common/.libs/layer.so.dSYM/Contents/Resources/DWARF/layer.so: can't map

I get this for each .so file produced by gegl, such as box-blur.so, brightness-contrast.so, motion-blur.so, contrast-curve.so, etc. Also I get this kind of errors for each of those .so files:

warning: no debug symbols in executable (-arch ppc)
  CC      motion-blur.c
  CCLD    motion-blur.la

The env variables are:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export CPPFLAGS="-I/usr/local/include:/usr/include -fno-inline"
export LIBS=-L/usr/local/lib
export CFLAGS="-Wno-long-double -arch ppc -fno-inline"
export DYLD_LIBRARY_PATH=/usr/X11/lib

If I remove the DYLD_LIBRARY_PATH variable, an error like "libjpeg.dylib,libpng.dylib,libtiff.dylib and libgl.dylib can't be found" comes up.

The compiler I use is (Apple) gcc-3.3, but the same errors come up if I use gcc-4.0 or gcc-4.2. I don't use XCode for anything.

What's the basic problem here and how to solve it? Thanks.

4

1 回答 1

0

经过一番研究,我发现防止此错误发生的唯一方法是阻止 CC 生成 dsym 代码。当然它不像在 Xcode 中那么简单。原来我必须编辑 Makefile。第 188 行是: DSYMUTIL = 'dsymutil' 我做到了: DSYMUTIL= '' 这阻止了 dsym 的生成,我终于摆脱了那个错误。但在那之后,我又遇到了另一个错误,关于一些“xxx.xml”文件。为了解决这个问题,我在配置命令中添加了这个:./configure --disable-docs

然后我得到了完美编译的gegl。供参考。

于 2014-02-22T18:33:35.183 回答