Open emily800326 opened 6 years ago
Hi WanJouLin
You probably did not clone the repo with submodules:
Could you please either try this:
git clone https://github.com/iotbzh/helloworld-html-application.git --recurse-submodules
or,
within your cloned repo, you can also do
git submodule update --init
Hope this helps; best regards Thierry
On 06/11/2018 11:57 AM, WanJouLin wrote:
hello, I try to "cmake" in build folder. but get some error,how can I fix it?
CMake Error at conf.d/config.cmake:163 (include): include could not find load file: ( *include(${PROJECT_APP_TEMPLATES_DIR}/cmake/common.cmake)* ) conf.d/app-templates/cmake/common.cmake Call Stack (most recent call first): CMakeLists.txt:22 (include) ( *include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/config.cmake)* )
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iotbzh/helloworld-html-application/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ACRrzn_6JplrFDl5qVQbhlU5ep9016MWks5t7j8igaJpZM4UiZnG.
@tbultel Thanks for your reply. After "cmake .." and update the module,there also have some error.
.. Warning: RSYNC_TARGET RSYNC_PREFIX not defined 'make remote-target-populate' not instanciated .. Warning: RSYNC_TARGET not defined 'make widget-target-install' not instanciated -- Configuring done -- Generating done -- Build files have been written to: /home/wanjou/helloworld-html-application/build
and build target widget ->Generating helloword-application.wgt
[ 87%] Built target packaging_wgt Scanning dependencies of target widget [100%] Generating helloworld-application.wgt make[3]: wgtpkg-pack: Command not found CMakeFiles/widget.dir/build.make:60: recipe for target 'helloworld-application.wgt' failed make[3]: [helloworld-application.wgt] Error 127 CMakeFiles/Makefile2:268: recipe for target 'CMakeFiles/widget.dir/all' failed make[2]: [CMakeFiles/widget.dir/all] Error 2 CMakeFiles/Makefile2:275: recipe for target 'CMakeFiles/widget.dir/rule' failed make[1]: [CMakeFiles/widget.dir/rule] Error 2 Makefile:240: recipe for target 'widget' failed make: [widget] Error 2
Is this error about need to install "app-framework-main"? https://github.com/tonyho/app-framework-main
Is this error about need to install "app-framework-main"? https://github.com/tonyho/app-framework-main Yes, wgtpkg-pack is provided by app-framework-main. The main source is there: https://git.automotivelinux.org/src/app-framework-main/
@jobol Thanks for your reply~~~
And I installed https://git.automotivelinux.org/src/app-framework-main/ already.
but can't find this Secuirty-Manager package ...
[Secuirty-Manager]https://review.tizen.org/gerrit/gitweb?p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git;a=summary
can't install this package....?
The security manager is not needed on your desk/lap/top. On my laptop, I use the following lines to compile it:
PREFIX=$HOME/local
mkdir build
cd build
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DAGL_DEVEL=ON -DUSE_SIMULATION=ON -DCMAKE_BUILD_TYPE=Debug ..
make install
Just tune PREFIX as wished
@jobol
It work for me! thanks ~
After I cmake.. --> It generate .wgt file ,but also delete it... Is that error about libzip?
[100%] Generating helloworld-application.wgt NOTICE: -- PACKING widget helloworld-application.wgt from directory /home/wanjou/helloworld-html-application/build/package zip error: Zip file structure invalid (/home/wanjou/helloworld-html-application/build/helloworld-application.wgt) ERROR: child for zip terminated with error code 3 in zwrite CMakeFiles/widget.dir/build.make:60: recipe for target 'helloworld-application.wgt' failed make[3]: [helloworld-application.wgt] Error 1 make[3]: Deleting file 'helloworld-application.wgt' CMakeFiles/Makefile2:268: recipe for target 'CMakeFiles/widget.dir/all' failed make[2]: [CMakeFiles/widget.dir/all] Error 2 CMakeFiles/Makefile2:275: recipe for target 'CMakeFiles/widget.dir/rule' failed make[1]: [CMakeFiles/widget.dir/rule] Error 2 Makefile:240: recipe for target 'widget' failed make: *** [widget] Error 2
that's bad!
Can you tell me what's the result of
pkg-config --modversion libzip
I get 1.3.2 here
@jobol I update the libzip to version 1.5.0 and then cmake.. this application still have that zip error.
zip error: Zip file structure invalid (/home/wanjou/helloworld-html-application/build/helloworld-application.wgt) ERROR: child for zip terminated with error code 3 in zwrite CMakeFiles/widget.dir/build.make:60: recipe for target 'helloworld-application.wgt' failed make[3]: [helloworld-application.wgt] Error 1 make[3]: Deleting file 'helloworld-application.wgt' CMakeFiles/Makefile2:268: recipe for target 'CMakeFiles/widget.dir/all' failed make[2]: [CMakeFiles/widget.dir/all] Error 2 CMakeFiles/Makefile2:275: recipe for target 'CMakeFiles/widget.dir/rule' failed make[1]: [CMakeFiles/widget.dir/rule] Error 2 Makefile:240: recipe for target 'widget' failed make: *** [widget] Error 2 xx@xx-virtual-machine:~/helloworld-html-application/build$ pkg-config --modversion libzip 1.5.0
It seems that for some reason wgtpkg-pack use fork to invoke zip instead of using the library. You can check it using:
ldd $(type -p wgtpkg-pack)
You either could try to recompile it or you can check the command that it performs :
zip -q -r helloworld-application.wgt /home/wanjou/helloworld-html-application/build/package
I'm greedy to understand what happens so your feedback is welcome.
@jobol Thank you for the time and patience you devoted to reading my question...
wanjou@wanjou-virtual-machine:~/helloworld-html-application/build$ ldd $(type -p wgtpkg-pack) linux-vdso.so.1 => (0x00007ffe65171000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdebf37e000) /lib64/ld-linux-x86-64.so.2 (0x00007fdebf748000)
Compile also have that error .
zip -q -r helloworld-application.wgt /home/wanjou/helloworld-html-application/build/package
but after use zip command , can find the wgt file in the package folder!!!
For some unknown reason, wgtpkg doesn't use libzip. The command zip creates the wgt file that you can use. But I don't understand why the integrated invocation to zip that replace use of libzip fails. If you wonder to investigate more and help me to understand, you can join me on IRC on freenode #iotbzh
@jobol OK I try to use on freenode #iotbzh
Today I change a laptop, and clone app-framework-main (https://git.automotivelinux.org/src/app-framework-main/) try to make new helloworld wgt.
PREFIX=$HOME/local mkdir build cd build rm -rf * cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DAGL_DEVEL=ON -DUSE_SIMULATION=ON -DCMAKE_BUILD_TYPE=Debug .. make install
after make install, there have new error...
src/CMakeFiles/afm-binding.dir/build.make:62: recipe for target 'src/CMakeFiles/afm-binding.dir/afm-binding.c.o' failed make[2]: [src/CMakeFiles/afm-binding.dir/afm-binding.c.o] Error 1 CMakeFiles/Makefile2:1048: recipe for target 'src/CMakeFiles/afm-binding.dir/all' failed make[1]: [src/CMakeFiles/afm-binding.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
new app-framework-binder-error when make install... before make wgt.
/home/testtest/app-framework-binder/bindings/samples/AuthLogin.c:74:71: error: ‘TRUE’ undeclared (first use in this function) json_object_object_add(jresp, "isvalid", json_object_new_boolean (TRUE)); ^ /home/testtest/app-framework-binder/bindings/samples/AuthLogin.c:74:71: note: each undeclared identifier is reported only once for each function it appears in bindings/samples/CMakeFiles/authLogin.dir/build.make:62: recipe for target 'bindings/samples/CMakeFiles/authLogin.dir/AuthLogin.c.o' failed make[2]: [bindings/samples/CMakeFiles/authLogin.dir/AuthLogin.c.o] Error 1 CMakeFiles/Makefile2:1586: recipe for target 'bindings/samples/CMakeFiles/authLogin.dir/all' failed make[1]: [bindings/samples/CMakeFiles/authLogin.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 mark /home/testtest/app-framework-binder/bindings/samples/CMakeLists.txt-->authlogin and then can pass this error
For some unknown reason, wgtpkg doesn't use libzip. The command zip creates the wgt file that you can use. But I don't understand why the integrated invocation to zip that replace use of libzip fails. If you wonder to investigate more and help me to understand, you can join me on IRC on freenode #iotbzh
I think wgtpkg has some problem.
Currently it is using
wgtpkg-pack -f -o helloworld-service.wgt /home/user/afm-build/agl-training/sample-02/build/package
I have wgtpkg inside/workspace_agl/build/tmp/sysroots-components/x86_64/af-main-native/usr/bin
which works fine
Not working(build app-framework-binder) ldd $(type -p wgtpkg-pack) linux-vdso.so.1 => (0x00007fffea5ee000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f555fc53000) /lib64/ld-linux-x86-64.so.2 (0x00007f556001d000)
Working ldd wgtpkg-pack linux-vdso.so.1 => (0x00007ffcd69ec000) _libzip.so.4 => /usr/lib/x8664-linux-gnu/libzip.so.4 (0x00007f92f22a4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f92f1eda000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f92f1cc0000) /home/user/workspace_agl/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f92f24b7000)
seems that you recompiled wgtpkg-install on your ubuntu but without the development package of libzip
in that case it will not use libzip but will use zip command instead.
hello, I try to "make widget" in build folder but get some error,how can I fix it? I use SDK to build this app.
make widget [ 25%] Built target stat [ 37%] Built target packaging_wgt [ 50%] Generating dist.dev
helloworld-application@0.0.1 postinstall /home/devel/helloworld-html-application bower install
audited 12063 packages in 12s found 0 vulnerabilities
/bin/sh: gulp: command not found app/CMakeFiles/helloworld-app.dir/build.make:60: recipe for target 'app/dist.dev' failed make[3]: [app/dist.dev] Error 127 CMakeFiles/Makefile2:454: recipe for target 'app/CMakeFiles/helloworld-app.dir/all' failed make[2]: [app/CMakeFiles/helloworld-app.dir/all] Error 2 CMakeFiles/Makefile2:307: recipe for target 'CMakeFiles/widget.dir/rule' failed make[1]: [CMakeFiles/widget.dir/rule] Error 2 Makefile:255: recipe for target 'widget' failed make: [widget] Error 2
The HTML application uses Gulp to build. You should install it using:
sudo npm install -g gulp
hello, I try to "cmake" in build folder. but get some error,how can I fix it?