Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
Where did you get the source code? –  warl0ck 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? –  warl0ck 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
show 3 more comments

1 Answer 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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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