afb-binding API 에 대해 파악 하고 자함


#define AFB_BINDING_VERSION 2


afb/afb-api-x3.h 파일에 정의되어 있음

afb/afb-binding-v2.h 다음버전을 살펴봄


afb_verb_v2

struct afb_binding_v2 



  • 바인딩 정의

 struct afb_binding_v2

{

        const char *api;                        /**< api name for the binding */

        const char *specification;              /**< textual specification of the binding, can be NULL */

        const char *info;                       /**< some info about the api, can be NULL */

        const struct afb_verb_v2 *verbs;        /**< array of descriptions of verbs terminated by a NULL name */

        int (*preinit)();                       /**< callback at load of the binding */

        int (*init)();                          /**< callback for starting the service */

        void (*onevent)(const char *event, struct json_object *object); /**< callback for handling events */

        unsigned noconcurrency: 1;              /**< avoids concurrent requests to verbs */

};



//MediaService 예

const struct afb_binding_v2 afbBindingV2 = {

        .api = "mediaplayer",

        .specification = "Mediaplayer API",

        .verbs = binding_verbs,

        .onevent = onevent,

        .init = init,

};


  • 하나의 동작을 연결하기 위한 API version 2

 struct afb_verb_v2

{

        const char *verb;                       /**< name of the verb, NULL only at end of the array */

        void (*callback)(struct afb_req_x1 req);/**< callback function implementing the verb */

        const struct afb_auth *auth;            /**< required authorisation, can be NULL */

        const char *info;                       /**< some info about the verb, can be NULL */

        uint32_t session;                       /**< authorisation and session requirements of the verb */

};






ㄴㄴ










'Yocto > AGL' 카테고리의 다른 글

lightmediascanner  (0) 2018.10.18
[AGL] config.xml 설정파일  (1) 2018.10.16
[AGL]smack  (0) 2018.10.10
[AGL] Application FrameWork  (0) 2018.10.10
[AGL] 링크 통합  (0) 2018.10.10

https://elinux.org/Using_Rygel_and_Lightmediascanner



sudo apt-get install libmpeg3-dev

sudo apt-get install ffmpeg libavcodec-extra

//sudo aptitude install ubuntu-restricted-extras

 sudo apt-get install libmp4v2-dev

 sudo apt-get install mp4v2-utils

sudo apt-get install libogg-dev

sudo apt-get install libflac-dev

 

 

  • Type the following on the embedded device to launch Light Media Scanner:
lightmediascannerd --startup-scan --directory=/usr/share/media &

 

  • Type the following on the embedded device to verify that lightmediascannerd has successfully retrieved the multimedia files and inserted the to the SQLite database:
sqlite3 ~/.config/lightmediascannerd/db.sqlite3

sqlite> .tables
audio_albums      audios            lms_internal      videos_audios   
audio_artists     files             playlists         videos_subtitles
audio_genres      images            videos            videos_videos

sqlite> SELECT * FROM images;
1|Jpeg||1352977249|3264|1836|0|0.0|0.0|0.0|JPEG_LRG|image/jpeg|jpeg
2|Jpeg||1352977246|3264|1836|0|0.0|0.0|0.0|JPEG_LRG|image/jpeg|jpeg
3|DSCN0024||1361553676|4320|3240|0|0.0|0.0|0.0||application/octet-stream|jpeg

sqlite> .quit
rygel -c /etc
/rygel.conf

 

make  all-recursive
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git' 들어감
Making all in src
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git/src' 들어감
Making all in lib
make[3]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git/src/lib' 들어감
  CC       lightmediascanner.lo
/bin/bash: 줄 1: ../../-libtool: 그런 파일이나 디렉터리가 없습니다
Makefile:515: 'lightmediascanner.lo' 타겟에 대한 명령이 실패했습니다
make[3]: *** [lightmediascanner.lo] 오류 127
make[3]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git/src/lib' 나감
Makefile:393: 'all-recursive' 타겟에 대한 명령이 실패했습니다
make[2]: *** [all-recursive] 오류 1
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git/src' 나감
Makefile:546: 'all-recursive' 타겟에 대한 명령이 실패했습니다
make[1]: *** [all-recursive] 오류 1
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/git' 나감
Makefile:430: 'all' 타겟에 대한 명령이 실패했습니다
make: *** [all] 오류 2

sudo apt-get install libavformat-dev

 

  /bin/bash ../../libtool   --mode=install /usr/bin/install -c   dummy/dummy.la jpeg/jpeg.la png/png.la video-dummy/video-dummy.la audio-dummy/audio-dummy.la m3u/m3u.la pls/pls.la asf/asf.la rm/rm.la mp4/mp4.la id3/id3.la flac/flac.la wave/wave.la generic/generic.la '/usr/local/lib/lightmediascanner/plugins'
libtool: warning: relinking 'dummy/dummy.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o dummy/dummy.la -rpath /usr/local/lib/lightmediascanner/plugins dummy/dummy.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c dummy/.libs/dummy.soT /usr/local/lib/lightmediascanner/plugins/dummy.so
libtool: install: /usr/bin/install -c dummy/.libs/dummy.lai /usr/local/lib/lightmediascanner/plugins/dummy.la
libtool: warning: relinking 'jpeg/jpeg.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o jpeg/jpeg.la -rpath /usr/local/lib/lightmediascanner/plugins jpeg/jpeg.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c jpeg/.libs/jpeg.soT /usr/local/lib/lightmediascanner/plugins/jpeg.so
libtool: install: /usr/bin/install -c jpeg/.libs/jpeg.lai /usr/local/lib/lightmediascanner/plugins/jpeg.la
libtool: warning: relinking 'png/png.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o png/png.la -rpath /usr/local/lib/lightmediascanner/plugins png/png.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c png/.libs/png.soT /usr/local/lib/lightmediascanner/plugins/png.so
libtool: install: /usr/bin/install -c png/.libs/png.lai /usr/local/lib/lightmediascanner/plugins/png.la
libtool: warning: relinking 'video-dummy/video-dummy.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o video-dummy/video-dummy.la -rpath /usr/local/lib/lightmediascanner/plugins video-dummy/video-dummy.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c video-dummy/.libs/video-dummy.soT /usr/local/lib/lightmediascanner/plugins/video-dummy.so
libtool: install: /usr/bin/install -c video-dummy/.libs/video-dummy.lai /usr/local/lib/lightmediascanner/plugins/video-dummy.la
libtool: warning: relinking 'audio-dummy/audio-dummy.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o audio-dummy/audio-dummy.la -rpath /usr/local/lib/lightmediascanner/plugins audio-dummy/audio-dummy.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c audio-dummy/.libs/audio-dummy.soT /usr/local/lib/lightmediascanner/plugins/audio-dummy.so
libtool: install: /usr/bin/install -c audio-dummy/.libs/audio-dummy.lai /usr/local/lib/lightmediascanner/plugins/audio-dummy.la
libtool: warning: relinking 'm3u/m3u.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o m3u/m3u.la -rpath /usr/local/lib/lightmediascanner/plugins m3u/m3u.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c m3u/.libs/m3u.soT /usr/local/lib/lightmediascanner/plugins/m3u.so
libtool: install: /usr/bin/install -c m3u/.libs/m3u.lai /usr/local/lib/lightmediascanner/plugins/m3u.la
libtool: warning: relinking 'pls/pls.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o pls/pls.la -rpath /usr/local/lib/lightmediascanner/plugins pls/pls.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c pls/.libs/pls.soT /usr/local/lib/lightmediascanner/plugins/pls.so
libtool: install: /usr/bin/install -c pls/.libs/pls.lai /usr/local/lib/lightmediascanner/plugins/pls.la
libtool: warning: relinking 'asf/asf.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o asf/asf.la -rpath /usr/local/lib/lightmediascanner/plugins asf/asf.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c asf/.libs/asf.soT /usr/local/lib/lightmediascanner/plugins/asf.so
libtool: install: /usr/bin/install -c asf/.libs/asf.lai /usr/local/lib/lightmediascanner/plugins/asf.la
libtool: warning: relinking 'rm/rm.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o rm/rm.la -rpath /usr/local/lib/lightmediascanner/plugins rm/rm.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c rm/.libs/rm.soT /usr/local/lib/lightmediascanner/plugins/rm.so
libtool: install: /usr/bin/install -c rm/.libs/rm.lai /usr/local/lib/lightmediascanner/plugins/rm.la
libtool: warning: relinking 'mp4/mp4.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o mp4/mp4.la -rpath /usr/local/lib/lightmediascanner/plugins mp4/mp4.lo ../../src/lib/liblightmediascanner.la -lmp4v2 )
libtool: install: /usr/bin/install -c mp4/.libs/mp4.soT /usr/local/lib/lightmediascanner/plugins/mp4.so
libtool: install: /usr/bin/install -c mp4/.libs/mp4.lai /usr/local/lib/lightmediascanner/plugins/mp4.la
libtool: warning: relinking 'id3/id3.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o id3/id3.la -rpath /usr/local/lib/lightmediascanner/plugins id3/id3.lo id3/id3v1_genres.lo ../../src/lib/liblightmediascanner.la )
libtool: install: /usr/bin/install -c id3/.libs/id3.soT /usr/local/lib/lightmediascanner/plugins/id3.so
libtool: install: /usr/bin/install -c id3/.libs/id3.lai /usr/local/lib/lightmediascanner/plugins/id3.la
libtool: warning: relinking 'flac/flac.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o flac/flac.la -rpath /usr/local/lib/lightmediascanner/plugins flac/flac.lo ../../src/lib/liblightmediascanner.la -lFLAC )
libtool: install: /usr/bin/install -c flac/.libs/flac.soT /usr/local/lib/lightmediascanner/plugins/flac.so
libtool: install: /usr/bin/install -c flac/.libs/flac.lai /usr/local/lib/lightmediascanner/plugins/flac.la
libtool: warning: relinking 'wave/wave.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o wave/wave.la -rpath /usr/local/lib/lightmediascanner/plugins wave/wave.lo ../../src/lib/liblightmediascanner.la -lFLAC )
libtool: install: /usr/bin/install -c wave/.libs/wave.soT /usr/local/lib/lightmediascanner/plugins/wave.so
libtool: install: /usr/bin/install -c wave/.libs/wave.lai /usr/local/lib/lightmediascanner/plugins/wave.la
libtool: warning: relinking 'generic/generic.la'
libtool: install: (cd /home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins; /bin/bash "/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 -module -avoid-version -shared -Wl,--as-needed -Wl,--gc-sections -o generic/generic.la -rpath /usr/local/lib/lightmediascanner/plugins generic/generic.lo ../../src/lib/liblightmediascanner.la -lavcodec-ffmpeg -lavformat-ffmpeg )
libtool: install: /usr/bin/install -c generic/.libs/generic.soT /usr/local/lib/lightmediascanner/plugins/generic.so
libtool: install: /usr/bin/install -c generic/.libs/generic.lai /usr/local/lib/lightmediascanner/plugins/generic.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib/lightmediascanner/plugins
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/lightmediascanner/plugins

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[5]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins' 나감
make[4]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins' 나감
make[3]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins' 나감
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src/plugins' 나감
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src' 들어감
make[3]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src' 들어감
make[3]: 'install-exec-am'을(를) 위해 할 일이 없습니다.
make[3]: 'install-data-am'을(를) 위해 할 일이 없습니다.
make[3]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src' 나감
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src' 나감
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/src' 나감
Making install in m4
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/m4' 들어감
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/m4' 들어감
make[2]: 'install-exec-am'을(를) 위해 할 일이 없습니다.
make[2]: 'install-data-am'을(를) 위해 할 일이 없습니다.
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/m4' 나감
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner/m4' 나감
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner' 들어감
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner' 들어감
make[2]: 'install-exec-am'을(를) 위해 할 일이 없습니다.
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 lightmediascanner.pc '/usr/local/lib/pkgconfig'
 /bin/mkdir -p '/usr/local/share/dbus-1/services'
 /usr/bin/install -c -m 644 org.lightmediascanner.service '/usr/local/share/dbus-1/services'
make[2]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner' 나감
make[1]: 디렉터리 '/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner' 나감

 

 

설치 한 폴더

/home/agl/project/KJ/multimedia/lightmediascanner/0.5.1+gitAUTOINC+adfddb3486-r0/teset/lightmediascanner


 

 

'Yocto > AGL' 카테고리의 다른 글

[AGL] afb_binding  (0) 2018.10.19
[AGL] config.xml 설정파일  (1) 2018.10.16
[AGL]smack  (0) 2018.10.10
[AGL] Application FrameWork  (0) 2018.10.10
[AGL] 링크 통합  (0) 2018.10.10

 

관련 링크 : Configuration file - config.xml

 

 Widgets 들은 'W3C' 기술방식으로 쓰기를 추천한다.

 

Packaged Web Apps (Widgets) and XML Digital Signatures for Widgets that specifies the configuration file config.xml.

 

사이트를 다 읽기는 어려우므로 우선적으로 AutomotiveLinux 에 정의된 내용을 정리해 본다.

 

 

 

개요

 config.xml 파일은 프레임워크에 대한 응용프로그램의 중요한 정보를 설명한다.

  • 응용프로그램의 고유 식별자
  • 응용프로그램의 이름
  • 응용프로그램의 타입
  • 응용프로그램에 연결된 사용 권한
  • 응용프로그램간의 의존성 과 서비스

 파일은 위젯의 루트에 있어야 하며 대소문자를 구별한다. config,xml 은 widgets 문서에서 설명하는 XML 파일이다.

 

다음은 QML 어플리케이션 SmartHome 에 대한 예제이다.

 

 

 

 <?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="smarthome" version="0.1">
  <name>SmartHome</name>
  <icon src="smarthome.png"/>
  <content src="qml/smarthome/smarthome.qml" type="text/vnd.qt.qml"/>
  <description>This is the Smarthome QML demo application. It shows some user interfaces for controlling an
automated house. The user interface is completely done with QML.</description>
  <author>Qt team</author>
  <license>GPL</license>
</widget>

 

가장 중요한 항목은 다음과 같다.

  • <widget id="....."> : 고유한 위젯 아이디를 주어야 한다.
  • <widget version="......"> : 위젯 에 대한 버전을 설정한다ㅏ.
  • <icon src="..."> :  응용프로그램에 대한 아이콘경로를 설정한다. ( 다른크기로 반복 될수 있음 ?)
  • <content src="..." type="..."> : 엔트리 포인트와 타입을 가르킨다.  소스경로?

 

표준 요소 "config.xml"

 

 widget 의 요소

1. 위젯의 속성 ID

 

 

 

 

 

 

'Yocto > AGL' 카테고리의 다른 글

[AGL] afb_binding  (0) 2018.10.19
lightmediascanner  (0) 2018.10.18
[AGL]smack  (0) 2018.10.10
[AGL] Application FrameWork  (0) 2018.10.10
[AGL] 링크 통합  (0) 2018.10.10

+ Recent posts