L*C*h color selector

L*C*h (L*a*b* in polar coordinates) color selector module.

Just type "make install" to install this module (You don't need to rebuild the GIMP.) .

AttachmentSize
gimp-lch-selector-0.3.tar.gz3.35 KB
0

Comments

Cant install

This is what I get when I try to install: g++ \ -ansi -pedantic -Wall -Wextra \ -shared -fPIC -O3 \ -o libcolor-selector-lch.so main.cpp \ $(gimptool-2.0 --cflags --libs) /bin/sh: gimptool-2.0: not found main.cpp:6:25: error: glib-object.h: No such file or directory main.cpp:7:38: error: libgimpmodule/gimpmodule.h: No such file or directory In file included from main.cpp:8: selector-lch.hpp:12:21: error: gtk/gtk.h: No such file or directory selector-lch.hpp:14:36: error: libgimpcolor/gimpcolor.h: No such file or directory selector-lch.hpp:15:40: error: libgimpwidgets/gimpwidgets.h: No such file or directory In file included from selector-lch.hpp:16, from main.cpp:8: color-space.hpp:49: error: expected ‘,’ or ‘...’ before ‘&’ token color-space.hpp:49: error: ISO C++ forbids declaration of ‘GimpRGB’ with no type color-space.hpp: In function ‘bool color::convert(color::Lab&, int)’: color-space.hpp:51: error: ‘srgb’ was not declared in this scope color-space.hpp: At global scope: color-space.hpp:49: warning: unused parameter ‘GimpRGB’ color-space.hpp:67: error: ‘color::convert’ declared as an ‘inline’ variable color-space.hpp:67: error: ‘bool color::convert’ redeclared as different kind of symbol color-space.hpp:49: error: previous declaration of ‘bool color::convert(color::Lab&, int)’ color-space.hpp:67: error: ‘GimpRGB’ was not declared in this scope color-space.hpp:67: error: ‘srgb’ was not declared in this scope color-space.hpp:67: error: expected primary-expression before ‘const’ In file included from main.cpp:8: selector-lch.hpp:28: error: expected class-name before ‘{’ token selector-lch.hpp:29: error: ISO C++ forbids declaration of ‘GtkAdjustment’ with no type selector-lch.hpp:29: error: expected ‘;’ before ‘*’ token selector-lch.hpp:30: error: ISO C++ forbids declaration of ‘GtkAdjustment’ with no type selector-lch.hpp:30: error: expected ‘;’ before ‘*’ token selector-lch.hpp:31: error: ISO C++ forbids declaration of ‘GtkAdjustment’ with no type selector-lch.hpp:31: error: expected ‘;’ before ‘*’ token selector-lch.hpp:32: error: ISO C++ forbids declaration of ‘GtkDrawingArea’ with no type selector-lch.hpp:32: error: expected ‘;’ before ‘*’ token selector-lch.hpp:92: error: expected ‘,’ or ‘...’ before ‘*’ token selector-lch.hpp:92: error: ISO C++ forbids declaration of ‘GimpRGB’ with no type selector-lch.hpp:101: error: ‘GtkAdjustment’ has not been declared selector-lch.hpp:118: error: ‘GtkDrawingArea’ has not been declared selector-lch.hpp:118: error: ‘GdkEventExpose’ has not been declared selector-lch.hpp: In static member function ‘static void LchSelector::ctor(LchSelector*)’: selector-lch.hpp:40: error: ‘GtkWidget’ was not declared in this scope selector-lch.hpp:40: error: ‘vbox’ was not declared in this scope selector-lch.hpp:40: error: ‘FALSE’ was not declared in this scope selector-lch.hpp:40: error: ‘gtk_vbox_new’ was not declared in this scope selector-lch.hpp:41: error: ‘GTK_BOX’ was not declared in this scope selector-lch.hpp:41: error: ‘TRUE’ was not declared in this scope selector-lch.hpp:41: error: ‘gtk_box_pack_start’ was not declared in this scope selector-lch.hpp:43: error: ‘table’ was not declared in this scope selector-lch.hpp:43: error: ‘gtk_table_new’ was not declared in this scope selector-lch.hpp:46: error: ‘struct LchSelector’ has no member named ‘scaleL’ selector-lch.hpp:47: error: ‘GTK_TABLE’ was not declared in this scope selector-lch.hpp:50: error: ‘gimp_scale_entry_new’ was not declared in this scope selector-lch.hpp:50: error: ‘GTK_ADJUSTMENT’ was not declared in this scope selector-lch.hpp:52: error: ‘struct LchSelector’ has no member named ‘scaleL’ selector-lch.hpp:53: error: ‘G_CALLBACK’ was not declared in this scope selector-lch.hpp:54: error: ‘g_signal_connect’ was not declared in this scope selector-lch.hpp:55: error: ‘struct LchSelector’ has no member named ‘scaleC’ selector-lch.hpp:61: error: ‘struct LchSelector’ has no member named ‘scaleC’ selector-lch.hpp:64: error: ‘struct LchSelector’ has no member named ‘scaleH’ selector-lch.hpp:70: error: ‘struct LchSelector’ has no member named ‘scaleH’ selector-lch.hpp:74: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:74: error: ‘gtk_drawing_area_new’ was not declared in this scope selector-lch.hpp:74: error: ‘GTK_DRAWING_AREA’ was not declared in this scope selector-lch.hpp:75: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:75: error: ‘GTK_WIDGET’ was not declared in this scope selector-lch.hpp:77: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:81: error: ‘gtk_widget_show_all’ was not declared in this scope selector-lch.hpp: In static member function ‘static void LchSelector::setColor(LchSelector*, int)’: selector-lch.hpp:95: error: ‘rgb’ was not declared in this scope selector-lch.hpp: At global scope: selector-lch.hpp:92: warning: unused parameter ‘GimpRGB’ selector-lch.hpp: In static member function ‘static void LchSelector::onValueChanged(int*, LchSelector*)’: selector-lch.hpp:106: error: ‘struct LchSelector’ has no member named ‘rgb’ selector-lch.hpp:107: error: ‘struct LchSelector’ has no member named ‘rgb’ selector-lch.hpp:107: error: ‘struct LchSelector’ has no member named ‘hsv’ selector-lch.hpp:107: error: ‘gimp_rgb_to_hsv’ was not declared in this scope selector-lch.hpp:109: error: ‘gimp_color_selector_color_changed’ was not declared in this scope selector-lch.hpp:112: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:112: error: ‘GTK_WIDGET’ was not declared in this scope selector-lch.hpp:113: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:114: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:115: error: ‘gtk_widget_queue_draw_area’ was not declared in this scope selector-lch.hpp: In static member function ‘static void LchSelector::onExpose(int*, int*, LchSelector*)’: selector-lch.hpp:121: error: request for member ‘count’ in ‘* ev’, which is of non-class type ‘int’ selector-lch.hpp:126: error: ‘GTK_WIDGET’ was not declared in this scope selector-lch.hpp:143: error: ‘gdk_cairo_create’ was not declared in this scope selector-lch.hpp: In static member function ‘static void LchSelector::setLch(LchSelector*, const color::Lch&)’: selector-lch.hpp:167: error: ‘struct LchSelector’ has no member named ‘scaleL’ selector-lch.hpp:167: error: ‘gtk_adjustment_set_value’ was not declared in this scope selector-lch.hpp:168: error: ‘struct LchSelector’ has no member named ‘scaleC’ selector-lch.hpp:169: error: ‘struct LchSelector’ has no member named ‘scaleH’ selector-lch.hpp:172: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:172: error: ‘GTK_WIDGET’ was not declared in this scope selector-lch.hpp:173: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:174: error: ‘struct LchSelector’ has no member named ‘area’ selector-lch.hpp:175: error: ‘gtk_widget_queue_draw_area’ was not declared in this scope selector-lch.hpp: In static member function ‘static void LchSelector::getLch(LchSelector*, color::Lch&)’: selector-lch.hpp:179: error: ‘struct LchSelector’ has no member named ‘scaleL’ selector-lch.hpp:180: error: ‘struct LchSelector’ has no member named ‘scaleC’ selector-lch.hpp:181: error: ‘struct LchSelector’ has no member named ‘scaleH’ selector-lch.hpp: In static member function ‘static void LchSelector::generateColorMap(cairo_surface_t*, double)’: selector-lch.hpp:200: error: ‘GimpRGB’ was not declared in this scope selector-lch.hpp:200: error: expected `;' before ‘srgb’ selector-lch.hpp:201: error: ‘srgb’ was not declared in this scope selector-lch.hpp: At global scope: selector-lch.hpp:216: error: expected class-name before ‘{’ token selector-lch.hpp:217: error: ‘GObject’ has not been declared selector-lch.hpp:218: error: ‘GimpColorSelector’ has not been declared selector-lch.hpp:218: error: expected ‘,’ or ‘...’ before ‘*’ token selector-lch.hpp:218: error: ISO C++ forbids declaration of ‘GimpRGB’ with no type selector-lch.hpp:232: error: ‘GObject’ has not been declared selector-lch.hpp:237: error: ‘GType’ does not name a type selector-lch.hpp: In static member function ‘static void LchSelectorClass::ctor(LchSelectorClass*)’: selector-lch.hpp:223: error: ‘G_OBJECT_CLASS’ was not declared in this scope selector-lch.hpp:226: error: ‘struct LchSelectorClass’ has no member named ‘name’ selector-lch.hpp:227: error: ‘struct LchSelectorClass’ has no member named ‘help_id’ selector-lch.hpp:228: error: ‘struct LchSelectorClass’ has no member named ‘stock_id’ selector-lch.hpp:228: error: ‘GTK_STOCK_COLOR_PICKER’ was not declared in this scope selector-lch.hpp:229: error: ‘struct LchSelectorClass’ has no member named ‘set_color’ selector-lch.hpp: In static member function ‘static void LchSelectorClass::disposeInstance(int*)’: selector-lch.hpp:234: error: ‘G_OBJECT_GET_CLASS’ was not declared in this scope main.cpp: At global scope: main.cpp:11: error: expected initializer before ‘*’ token make: *** [libcolor-selector-lch.so] Error 1

Wooops!

Sorry about the extra long post. I didnt have the development files installed. Works now :-D

where do u type

personthatsme!where do u type make install at?

At a command prompt. This

At a command prompt. This can be a terminal window like e.g.  xterm, gnome-terminal, or maybe even the cmd window on a Microsoft Windows system.

The build instruction "make install" assumes that you have some experience with building software; then this is all you need to know and not vague in any way. A Makefile is included in the tar.gz file.

If neither "make", "make install" nor "Makefile" have any meaning to you, this could be a sign that you shouldn't attempt to build this module yourself and instead ask if someone can provide it for your platform and/or distribution.

Installing on Ubuntu

I needed to install libgimp2.0-dev (sudo apt-get install libgimp2.0-dev) before compiling this plugin (presumably the case for any plugin; this was my first).

You would also need to have e.g. the build-essential package installed (sudo apt-get install build-essential).

Useless

This plugin is useless until you tell us exactly how to install it. Your vague instructions are not good enough.

How do you do to install it ?

Eh eh :D !! Now way to use it when you're not an aficionado :D ! So please could you explain me slowly how to do it please ? Thanks a lot

How to install it

Works like a charm with Kubuntu Jaunty. The process is completely automated. - Uncompress the archive in a folder - cd to the folder - Type in a console: "make" then "make install" or "make && make install". You will be prompted for password when install starts. Creates /usr/lib/gimp/2.0/modules/libcolor-selector-lch.so Restart Gimp. You will get a new color selection option (like in the provided image) in the selection tool. Cannot be compiled under Windows as is, for Windows libraries are DLLs, not .so

Interesting

It looks interesting. It should be added in GIMP main distribution.

Re: Interesting

> It looks interesting. It should be added in GIMP main > distribution. Yes, I would strongly support this.

The way this is done: -

The way this is done:

- create an enhacement request in Bugzilla (this is one of the rare instances when this is the right way to use this type of entry there) and attach the source code

- open a discussion on the gimp-developer mailing list in order to promote the color selector module

Syndicate content