无法在 Xubuntu 14.04 中安装 Gimp 插件

无法在 Xubuntu 14.04 中安装 Gimp 插件

我正在尝试为 gimp 安装“Upsize.C”和“noise-generator-0.2.5”。

对于 upsize.c 发生以下情况:

christian@mobile02:~/software/gimp-plug-ins$ gimptool-2.0 --install upsize.c
gcc  -pthread -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/gimp-2.0   -o /home/christian/.gimp-2.8/plug-ins/upsize upsize.c  -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype   
/usr/bin/ld: /tmp/ccCGidxO.o: undefined reference to symbol 'floor@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

尝试安装噪声发生器发生以下情况:

christian@mobile02:~/software/gimp-plug-ins/noise-generator-0.2.5$ make
make -C po
make[1]: Entering directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/po'
msgfmt -c -v -o de.mo de.po
de.po:7: warning: header field 'Language' missing in header
34 translated messages.
msgfmt -c -v -o pl.mo pl.po
pl.po:2: warning: header field 'Language' missing in header
34 translated messages.
make[1]: Leaving directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/po'
make -C src
make[1]: Entering directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/src'
cc -O3 -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/gimp-2.0   -o noise-generator plugin.o noise.o events.o interface.o colour.o poisson_gui.o gauss_gui.o uniform_gui.o laplace_gui.o lorentz_gui.o -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype  
/usr/bin/ld: noise.o: undefined reference to symbol 'sqrtf@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [noise-generator] Error 1
make[1]: Leaving directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/src'
make: *** [src] Error 2

make install 返回:

christian@mobile02:~/software/gimp-plug-ins/noise-generator-0.2.5$ make install
make -C po install
make[1]: Entering directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/po'
msgfmt -c -v -o de.mo de.po
de.po:7: warning: header field 'Language' missing in header
34 translated messages.
msgfmt -c -v -o pl.mo pl.po
pl.po:2: warning: header field 'Language' missing in header
34 translated messages.
for L in de pl; \
    do install -v -m 0644 $L.mo "/usr/share/locale/$L/LC_MESSAGES/gimp20-noise-generator-plug-in.mo"; \
done
install: cannot remove ‘/usr/share/locale/de/LC_MESSAGES/gimp20-noise-generator-plug-in.mo’: Permission denied
install: cannot remove ‘/usr/share/locale/pl/LC_MESSAGES/gimp20-noise-generator-plug-in.mo’: Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/christian/software/gimp-plug-ins/noise-generator-0.2.5/po'
make: *** [install] Error 2

现在我不明白哪里出了问题,我在以前的版本上已经成功执行过几次此操作

但我确信这是一件非常简单的事情

感谢大家的帮助

答案1

我知道这个答案已经很晚了,但如果你遇到了同样的问题,如果找到了噪音发生器的解决方案(我还没有使用其他插件)。在噪音发生器文件夹中 src 目录的 make 文件中,将 -lm 添加到 $(PLUGIN)

CFLAGS = -O3 -Wall $(shell gimptool-2.0 --cflags)
LIBS = $(shell gimptool-2.0 --libs)
PLUGIN = noise-generator
SOURCES = plugin.c noise.c events.c interface.c colour.c poisson_gui.c gauss_gui.c uniform_gui.c laplace_gui.c lorentz_gui.c
HEADERS = plugin.h interface.h messages.h
# END CONFIG ##################################################################

.PHONY: all install userinstall clean uninstall useruninstall

all: $(PLUGIN)

OBJECTS = $(subst .c,.o,$(SOURCES))

$(PLUGIN): $(OBJECTS)
    $(CC) $(CFLAGS) -o $@ $^ $(LIBS) -lm

%.o: %.c $(HEADERS)
    $(CC) $(CFLAGS) -c -o $@ $*.c -lm

install: $(PLUGIN)
    @gimptool-2.0 --install-admin-bin $^

userinstall: $(PLUGIN)
    @gimptool-2.0 --install-bin $^

uninstall:
    @gimptool-2.0 --uninstall-admin-bin $(PLUGIN)

useruninstall:
    @gimptool-2.0 --uninstall-bin $(PLUGIN)

clean:
    rm -f *.o *~ $(PLUGIN)

make install需要以 root 身份运行。所以sudo su在发出make install命令之前请先执行此操作。

我不确定它是否适用于 Xubuntu 14.04,但它肯定适用于 Ubuntu 15.04

希望能帮助到你

答案2

尝试这个

sudo apt-get install libgimp2.0-dev
sudo make install

相关内容