[Gimp-developer] Compile module like display-filter-lcms.c



What's the right way to compile a module such as display-filter-lcms.c?

gimptool-2.0 outputs a gcc command:

gcc  -pthread -I/usr/include/freetype2   -o display-filter-lcms
/usr/local/src/gimp/gimp/modules/display-filter-lcms.c
-Wl,--export-dynamic -pthread -L/usr/local/lib64 -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
-lgegl-0.2 -lgmodule-2.0 -lrt -lbabl-0.1 -lm -lgdk-x11-2.0 -latk-1.0
-lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo
-lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -llcms

But when I tried to compile, the terminal output complained:

/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/crt1.o: In
function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:109:
undefined reference to `main'
collect2: ld returned 1 exit status

Compiling all of Gimp takes a half hour on my old, slow machine, so
there has to be a better way to recompile the display-filter-lcms
module.

Thanks in advance if anyone can help,
Elle Stone
-- 
http://ninedegreesbelow.com
Articles and tutorials on open source digital imaging and photography


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