QMI service versions in different devices
Aleksander Morgado
aleksander at lanedo.com
Mon Jul 30 03:33:34 PDT 2012
>> I pushed now a commit which makes it show "unknown" plus the hex value
>> of the service ID whenever we find one we don't know about.
>>
>> http://cgit.freedesktop.org/libqmi/commit/?id=b7cc74dde39f1b3ee975499c8deabe0cc45a0112
>
> Great! Just FYI, I needed this:
>
> bjorn at nemi:/usr/local/src/git/libqmi$ git diff libqmi-glib/Makefile.am
> diff --git a/libqmi-glib/Makefile.am b/libqmi-glib/Makefile.am
> index 7c65916..8e958ba 100644
> --- a/libqmi-glib/Makefile.am
> +++ b/libqmi-glib/Makefile.am
> @@ -33,7 +33,7 @@ qmi-enum-types.h: $(ENUMS) $(top_srcdir)/build-aux/templates/qmi-enum-types-tem
> --ftail "#endif /* __LIBQMI_GLIB_ENUM_TYPES_H__ */\n" \
> $(ENUMS) > $@
>
> -qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c
> +qmi-enum-types.c: $(ENUMS) qmi-enum-types.h $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c qmi-flags64-types.h
> $(AM_V_GEN) $(GLIB_MKENUMS) \
> --fhead "#include \"qmi-enum-types.h\"\n" \
> --template $(top_srcdir)/build-aux/templates/qmi-enum-types-template.c \
>
>
> to avoid this build error:
>
>
> Making all in .
> make[3]: Entering directory `/usr/local/src/git/libqmi/libqmi-glib'
> CC libqmi_glib_la-qmi-enum-types.lo
> In file included from qmi-enum-types.h:10:0,
> from qmi-enum-types.c:4:
> qmi-ctl.h:32:31: fatal error: qmi-flags64-types.h: No such file or directory
> compilation terminated.
> make[3]: *** [libqmi_glib_la-qmi-enum-types.lo] Error 1
> make[3]: Leaving directory `/usr/local/src/git/libqmi/libqmi-glib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/git/libqmi/libqmi-glib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/git/libqmi'
> make: *** [all] Error 2
>
>
>
> I have no idea if that is the correct dependency or not...
>
It wasn't :-), this one should do it:
http://cgit.freedesktop.org/libqmi/commit/?id=a254dd1c1cb4ddf65bff47dba0119b8f790b67a8
It's anyway not the perfect one; the dep should be between
qmi-flags64-types.h and qmi-[service].h; but anyway both qmi-[service].h
and [qmi-service].c are generated at the same time.
Thanks for looking at this,
--
Aleksander
More information about the libqmi-devel
mailing list