Thread: Error: "Only <glib.h> can be included directly."
ive spent hours trying install opensync (which no longer available in repositories reason) tar.gz package on 12.10 annoying error every step of way. when thought had figured out, im getting error cant solve. tried googling hell out of it. im not @ building packages, have use instructions. pleeeeeeeease help!
php code:
...@...-v5-171:~$ cmake -dcmake_install_prefix=$prefix //home/.../desktop/libopensync-0.39
-- checking for one of the modules 'check'
-- ==================================================
-- enable testing off
-- build wrapper off
-- build documentation off
-- configuring done
-- generating done
-- build files have been written to: /home/...
...@...-v5-171:~$ make
[ 1%] building c object opensync/cmakefiles/opensync.dir/common/opensync_list.o
in file included from //home/.../desktop/libopensync-0.39/opensync/common/opensync_list.c:33:0:
/usr/include/glib-2.0/glib/gmem.h:28:2: error: #error "only <glib.h> can be included directly."
in file included from /usr/include/glib-2.0/glib/gmem.h:34:0,
from //home/.../desktop/libopensync-0.39/opensync/common/opensync_list.c:33:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "only <glib.h> can be included directly."
in file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
from /usr/include/glib-2.0/glib/gtypes.h:34,
from /usr/include/glib-2.0/glib/gmem.h:34,
from //home/.../desktop/libopensync-0.39/opensync/common/opensync_list.c:33:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "only <glib.h> can be included directly."
in file included from /usr/include/glib-2.0/glib/gtypes.h:35:0,
from /usr/include/glib-2.0/glib/gmem.h:34,
from //home/.../desktop/libopensync-0.39/opensync/common/opensync_list.c:33:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "only <glib.h> can be included directly."
in file included from /usr/include/glib-2.0/glib/gtypes.h:36:0,
from /usr/include/glib-2.0/glib/gmem.h:34,
from //home/.../desktop/libopensync-0.39/opensync/common/opensync_list.c:33:
/usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "only <glib.h> can be included directly."
make[2]: *** [opensync/cmakefiles/opensync.dir/common/opensync_list.o] error 1
make[1]: *** [opensync/cmakefiles/opensync.dir/all] error 2
make: *** [all] error 2
...@...-v5-171:~$
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Error: "Only <glib.h> can be included directly."
Ubuntu
Comments
Post a Comment