pidgin-mra icon indicating copy to clipboard operation
pidgin-mra copied to clipboard

Сборка из исходников на Kubuntu x64 11.04

Open pkhlop opened this issue 13 years ago • 2 comments

Сборка падает с ошибкой

gcc -I/usr/include/libpurple -DPURPLE_PLUGINS -DENABLE_NLS -Wall -Wextra -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I. -g3 -O2 -pipe src/mra_net.c src/libmra.c -o libmra.so -shared -fPIC -DPIC In file included from /usr/include/glib-2.0/glib/galloca.h:34:0, from /usr/include/glib-2.0/glib.h:32, from src/libmra.h:38, from src/mra_net.c:22: /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: Нет такого файла или каталога compilation terminated. In file included from /usr/include/glib-2.0/glib/galloca.h:34:0, from /usr/include/glib-2.0/glib.h:32, from src/libmra.h:38, from src/libmra.c:24: /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: Нет такого файла или каталога compilation terminated.

make: *** [libmra.so] Ошибка 1

Использовал $> pkg-config --cflags glib-2.0 для того, чтобы определить истинное расположение нужных файлов команда выдала -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include дописал эти параметры в Makefile GLIB_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include и сборка прошла успешно

pkhlop avatar May 10 '11 20:05 pkhlop

Да, нужно написать нормальный configure =(

dreadatour avatar May 18 '11 20:05 dreadatour

Поправил Makefile. Спасибо за замечание про pkg-config --cflags glib-2.0 =)

dreadatour avatar May 18 '11 21:05 dreadatour