0

I'm trying to compile galculator-2.0.1 but when I run make I get some errors like

galculator-general_functions.o: In function `set_button_color':
/home/user/Downloads/galculator-2.0.1/src/general_functions.c:268: undefined reference to `GTK_COLOR_CHOOSER'

I'm using Lubuntu 11.10. I read something about update to gtk3 but I don't want to install many thins or update almost the whole LXDE.

What should I install to solve the problem?

  • Where did you get the source code? – daisy Dec 17 '12 at 13:41
  • From here sourceforge.net/projects/galculator The green button. – Sigur Dec 17 '12 at 14:42
  • Why compile it from source? Why not use the one provided by ubuntu? – daisy Dec 17 '12 at 14:45
  • 1
    You probably need one or more .....-dev packages, but since you didn't include much of the error messages, I cannot tell which. Just search the internet for missing funtion names and related ...-dev packages that will provide you with the related header files. – jippie Dec 17 '12 at 20:56
  • 1
    @Sigur Have you checked how GTK_COLOR_CHOOSER is declared/defined in the header files? – Karlson Dec 19 '12 at 16:00
1

The simplest solution with Debian-based distributions (like lubuntu) is the use of build-dep action of apt-get.

Run sudo apt-get build-dep galculator and try to compile again. It should compile as intended. Make sure you have your deb-src repositories activated in your sources.list file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.