LXDE Missing Compiler [Solved]

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

LXDE Missing Compiler [Solved]

Postby BHReach » Thu Dec 29, 2011 18:48

LXDE has no developer tools. I tried compiling mtpaint from source and gcc was missing. I installed it and then gtk was missing. I installed that and still got errors so quit tying. Installed kolourpaint instead.

I switched from SL weekly KDE to LXDE because KDE is broke. knotify4 consumes 100% of cpu and I could not make it stop. Fortunately ksnapshot, k3b, and kolourpaint, 3 of my favorite KDE programs, don't require knotify and work fine under LXDE.

If you are going to remove the developer tools for LXDE (probably to fit it on a CD, which doesn't make much sense to me since CDs are not cost effective anymore because they only hold 1/6 of the data that a DVD does but cost only slightly less), then you should make reinstalling them trivial like:

equo install DT
Last edited by BHReach on Fri Dec 30, 2011 17:35, edited 1 time in total.
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: LXDE Missing Compiler

Postby joost » Thu Dec 29, 2011 21:20

If you need to compile:
Code: Select all
equo install sys-devel/gcc sys-devel/base-gcc
User avatar
joost
Sagely Hen
 
Posts: 2332
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: LXDE Missing Compiler

Postby BHReach » Thu Dec 29, 2011 22:39

joost wrote:If you need to compile:
Code: Select all
equo install sys-devel/gcc sys-devel/base-gcc


Those are already installed so it needs more than just those.
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: LXDE Missing Compiler

Postby micia » Thu Dec 29, 2011 22:50

Installing them is trivial, since all you need is gcc and base-gcc :)

could you post the output of:
Code: Select all
gcc-config -l
binutils-config -l
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: LXDE Missing Compiler

Postby BHReach » Fri Dec 30, 2011 11:14

micia wrote:Installing them is trivial, since all you need is gcc and base-gcc :)

could you post the output of:
Code: Select all
gcc-config -l
binutils-config -l

gcc-config -l
[1] i686-pc-linux-gnu-4.6.2 *

binutils-config -l
[1] i686-pc-linux-gnu-2.20.1 *
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: LXDE Missing Compiler

Postby micia » Fri Dec 30, 2011 12:17

GCC setup is good, can you test a basic C program compilation and see if it works?

For example:
Code: Select all
echo 'int main() { int printf(const char*, ...); printf("hello world!\n"); return 0; }' >> test.c
gcc test.c -o test
./test


it should produce this output:
Code: Select all
hello world!
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: LXDE Missing Compiler

Postby BHReach » Fri Dec 30, 2011 13:52

micia wrote:GCC setup is good, can you test a basic C program compilation and see if it works?

For example:
Code: Select all
echo 'int main() { int printf(const char*, ...); printf("hello world!\n"); return 0; }' >> test.c
gcc test.c -o test
./test


it should produce this output:
Code: Select all
hello world!

It produced the expected output.
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: LXDE Missing Compiler

Postby micia » Fri Dec 30, 2011 14:09

Then why do you think GCC doesn't work?
Is emerge failing at some point and leads you to believe GCC is faulty?
Could you report any log from your failed compilations?
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: LXDE Missing Compiler

Postby BHReach » Fri Dec 30, 2011 17:02

micia wrote:Then why do you think GCC doesn't work?
Is emerge failing at some point and leads you to believe GCC is faulty?
Could you report any log from your failed compilations?


I did not think gcc was broke, I thought some developer tools were missing because mtpaint would not compile. I found the following solution but it is unacceptable to me because I don't want to downgrade libpng just for this program. Also, mtpaint is not currently being developed (if it were, they would fix this bug), the last release was more than 2.5 years ago. That is enough reasons for me to avoid this program.

mtPaint 3.31 fails to compile (December 2011)

png.c:(.text+0x1135): undefined reference to `png_set_gray_1_2_4_to_8'

SOLUTION: mtPaint is quite old, and seems to assume libpng 1.2.x, but the current in Gentoo is 1.5.

emerge -av =media-libs/libpng-1.2.46 # or whatever minor version you have

vi _conf.txt # replace "libpng" with "libpng12"

ln -s libpng12.so.0 libpng12.so # I had ot do this in /usr/lib64 and /usr/lib32
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40


Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 1 guest