RSS/Atom feed Twitter
Site is read-only, email is disabled

Compile module like display-filter-lcms.c

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Compile module like display-filter-lcms.c Elle Stone 31 Aug 15:39
  Compile module like display-filter-lcms.c Jon Nordby 31 Aug 17:51
   Compile module like display-filter-lcms.c Elle Stone 31 Aug 20:47
Elle Stone
2012-08-31 15:39:20 UTC (about 12 years ago)

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

Jon Nordby
2012-08-31 17:51:05 UTC (about 12 years ago)

Compile module like display-filter-lcms.c

On 31 August 2012 17:39, Elle Stone wrote:

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

The build of the in-tree modules is already set up in automake. Just change the file after having compiled GIMP without modifications, and run "make" (and "make install"). Only the neccesary files will be recompiled when you do this. I recommend doing the same when working on the in-tree plugins, or any other part of the GIMP source code.

If the build parameters needs changing, like for building against LCMS 2 instead of 1, I'm afraid you will have to look into the autotools files (configure.ac and Makefile.am). Read up on autotools on the web, and ask if you get stuck.

Elle Stone
2012-08-31 20:47:12 UTC (about 12 years ago)

Compile module like display-filter-lcms.c

On 8/31/12, Jon Nordby wrote:

On 31 August 2012 17:39, Elle Stone wrote:

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

The build of the in-tree modules is already set up in automake. Just change the file after having compiled GIMP without modifications, and run "make" (and "make install").

Jon, thanks! That worked perfectly. Elle