Сборка Torsmo

Sabayon, Calculate, Funtoo, Exherbo

Модератор: /dev/random

NeoLithic
Сообщения: 20
ОС: Gentoo Xor 2006.0

Сборка Torsmo

Сообщение NeoLithic »

При компиляции возникла проблема:

Код: Выделить всё

neopc torsmo-0.18 # make
gcc  -g -O2 -Wall -W -L/etc/X11/ -o torsmo   common.o fs.o linux.o mail.o mixer.o torsmo.o x11.o
torsmo.o: In function `calc_text_width':
/usr/local/bin/torsmo-0.18/torsmo.c:128: undefined reference to `XTextWidth'
/usr/local/bin/torsmo-0.18/torsmo.c:128: undefined reference to `XTextWidth'
torsmo.o: In function `draw_line':
/usr/local/bin/torsmo-0.18/torsmo.c:1395: undefined reference to `XSetLineAttributes'
/usr/local/bin/torsmo-0.18/torsmo.c:1397: undefined reference to `XSetDashes'
/usr/local/bin/torsmo-0.18/torsmo.c:1398: undefined reference to `XDrawLine'
/usr/local/bin/torsmo-0.18/torsmo.c:1380: undefined reference to `XSetLineAttributes'
torsmo.o: In function `draw_text':
/usr/local/bin/torsmo-0.18/torsmo.c:1465: undefined reference to `XSetLineAttributes'
/usr/local/bin/torsmo-0.18/torsmo.c:1469: undefined reference to `XDrawRectangle'
/usr/local/bin/torsmo-0.18/torsmo.c:1460: undefined reference to `XSetLineAttributes'
/usr/local/bin/torsmo-0.18/torsmo.c:1462: undefined reference to `XSetDashes'
torsmo.o: In function `set_foreground_color':
/usr/local/bin/torsmo-0.18/torsmo.c:1322: undefined reference to `XSetForeground'
x11.o: In function `init_window':
/usr/local/bin/torsmo-0.18/x11.c:161: undefined reference to `XCreateWindow'
/usr/local/bin/torsmo-0.18/x11.c:171: undefined reference to `XSetClassHint'
/usr/local/bin/torsmo-0.18/x11.c:175: undefined reference to `XStoreName'
/usr/local/bin/torsmo-0.18/x11.c:177: undefined reference to `XClearWindow'
/usr/local/bin/torsmo-0.18/x11.c:179: undefined reference to `XMoveWindow'
/usr/local/bin/torsmo-0.18/x11.c:184: undefined reference to `XInternAtom'
/usr/local/bin/torsmo-0.18/x11.c:192: undefined reference to `XInternAtom'
/usr/local/bin/torsmo-0.18/x11.c:200: undefined reference to `XMapWindow'
/usr/local/bin/torsmo-0.18/x11.c:243: undefined reference to `XFlush'
/usr/local/bin/torsmo-0.18/x11.c:249: undefined reference to `XClearWindow'
/usr/local/bin/torsmo-0.18/x11.c:195: undefined reference to `XChangeProperty'
/usr/local/bin/torsmo-0.18/x11.c:187: undefined reference to `XChangeProperty'
/usr/local/bin/torsmo-0.18/x11.c:119: undefined reference to `XFree'
/usr/local/bin/torsmo-0.18/x11.c:99: undefined reference to `XFree'
/usr/local/bin/torsmo-0.18/x11.c:100: undefined reference to `XFree'
x11.o: In function `create_gc':
/usr/local/bin/torsmo-0.18/x11.c:310: undefined reference to `XCreateGC'
collect2: ld returned 1 exit status
make: *** [torsmo] Ошибка 1

Где грабли?
Спасибо сказали:
Аватара пользователя
Omnifarious
Сообщения: 119
ОС: Gentoo x86_64

Re: Сборка Torsmo

Сообщение Omnifarious »

Возможно, тут
gcc -g -O2 -Wall -W -L/etc/X11/ -o torsmo common.o fs.o linux.o mail.o mixer.o torsmo.o x11.o


У вас библиотеки Х лежат в /etc/X11/?
There is more than one way to do it
Спасибо сказали:
NeoLithic
Сообщения: 20
ОС: Gentoo Xor 2006.0

Re: Сборка Torsmo

Сообщение NeoLithic »

Это я уже накосячил...

Код: Выделить всё

neopc torsmo-0.18 # make
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c common.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c fs.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c linux.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c mail.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c mixer.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c torsmo.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -W -c x11.c
gcc  -g -O2 -Wall -W  -o torsmo   common.o fs.o linux.o mail.o mixer.o torsmo.o x11.o
torsmo.o: In function `calc_text_width':
/usr/local/bin/torsmo-0.18/torsmo.c:128: undefined reference to `XTextWidth'
/usr/local/bin/torsmo-0.18/torsmo.c:128: undefined reference to `XTextWidth'
torsmo.o: In function `draw_string':
/usr/local/bin/torsmo-0.18/torsmo.c:1347: undefined reference to `XDrawString'
...
x11.o: In function `create_gc':
/usr/local/bin/torsmo-0.18/x11.c:310: undefined reference to `XCreateGC'
collect2: ld returned 1 exit status
make: *** [torsmo] Ошибка 1
Спасибо сказали:
Аватара пользователя
Omnifarious
Сообщения: 119
ОС: Gentoo x86_64

Re: Сборка Torsmo

Сообщение Omnifarious »

Может ему вручную указать путь к библиотекам X11?
There is more than one way to do it
Спасибо сказали:
Аватара пользователя
serg_sk
Бывший модератор
Сообщения: 2749
Статус: <3 Anime
ОС: Gentoo Linux <3

Re: Сборка Torsmo

Сообщение serg_sk »

:blink:
Зачем собирать именно torsmo? conky же есть, более функциональный аналог torsmo
just emerge conky
Не ждали?! А я приперся!
Помойка Gentoo'шника
-------
Спасибо сказали:
NeoLithic
Сообщения: 20
ОС: Gentoo Xor 2006.0

Re: Сборка Torsmo

Сообщение NeoLithic »

Ужо нашёл :D
Просто на всех скринах торсмо, хотелось посмотреть, что за зверь.
Вчера весь вечер сконфигом проигрался...вроде ничего получилось B)
Спасибо сказали: