Сборка падает с ошибкой
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
и сборка прошла успешно
Сборка падает с ошибкой
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
и сборка прошла успешно