then you can try the WP76 R9 toolchain when the website is available later.
I don’t see problem with that toolchain.
I think I have installed wp76 R9 toolchain,
but in /opt/swi, nothing was added same as Database Support - #29 by jeremyzhang
it is installed in the leaf folder…
I’m new to Legato. I’m confused now… so what are installed in this /opt/swi folder?
You need to run the script .sh in the toolchain, and then it will be install in /opt/swi
Yes, you can run it…
this is what i got while executing the shell script:
Poky (Yocto Project Reference Distro) SDK installer version 2.2.3
/ =================================================================
Enter target directory for SDK (default: /opt/swi/y22-ext):
You are about to install the SDK to “/opt/swi/y22-ext”. Proceed[Y/n]? Y
Extracting SDK…tail: error writing ‘standard output’: Broken pipe
done
Setting it up…done
Makefile:662: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/bin2c
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)*** Error during update of the configuration.
scripts/kconfig/Makefile:36: recipe for target ‘silentoldconfig’ failed
make[2]: *** [silentoldconfig] Error 1
Makefile:546: recipe for target ‘silentoldconfig’ failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target ‘include/config/auto.conf’, needed by ‘scripts’. Stop.
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/swi/y22-ext/environment-setup-armv7a-neon-poky-linux-gnueabi
----------------------------------------------------UPDATE-----------------------------------
the errors were gone if I sudo .sh script
(lsh:wp76_r9_toolchain) mangoh@mangoh-vm:~/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain$ sudo wp76-toolchain/toolChainExtractor.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.2.3
-=================================================================
Enter target directory for SDK (default: /opt/swi/y22-ext):
The directory “/opt/swi/y22-ext” already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? y
Extracting SDK…tail: error writing ‘standard output’: Broken pipe
done
Setting it up…done
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/soc/qcom/Kconfig:368:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:373:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/sortextable
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
I think sqlite has been set up in my Legato, hasn’t it?
you just install the WP76 R9 toolchain only
Just tried wp76 r9 to set up sqlite. now the previous error is gone
I am also getting this error when trying to make the Makefile and create the sqlite3.so.
I have changed “y22-ext” to “y25-ext” because that appears to be all I have.
Any insight would be appreciated.
You can use wp76 r9 toolchain to compile sqlite
Ok, even though I’m using a wp7702 chip? Also, how would I do that and is it possible while the Sierra wireless site is down? Thanks for your help.
You can use leaf to download, please see above
Ok, I’ll try I couple things tomorrow. The post above doesn’t really provide a solution, unless I’m missing something.
Now I’m getting this error, do you think it is because I used wp76 r9 to compile sqlite, and it doesn’t work on wp7702? that /home/mangoh/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain/wp76-legato/build/ is the wp76 r9 toolchain directory…
(lsh:p1_red77) mangoh@mangoh-vm:~/Desktop/myWorkspace/sqlTest$ mkapp -t wp77 sqlTest.adef -i “$LEGATO_ROOT/third-party/inc” -L “$LEGATO_ROOT/third-party/sqlite/lib/sqlite3.so”
ninja: error: ‘/home/mangoh/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain/wp76-legato/build/wp77/framework/lib/liblegato.so’, needed by ‘_build_sqlTest/wp77/staging/read-only/lib/libComponent_testsqlComp.so’, missing and no known rule to make it
You can simply leaf search
, and pick any one of these(the one I picked is 1.6.0):
│ swi-wp76_1.0.0 │ SDK for WP76 (Release 9 + Legato 18.03.0)
│ swi-wp76_1.2.0 │ SDK for WP76 (Release 9 + Legato 18.05.0)
│ swi-wp76_1.2.1 │ SDK for WP76 (Release 9 + Legato 18.05.1)
│ swi-wp76_1.3.0 │ SDK for WP76 (Release 9 + Legato 18.06.0)
│ swi-wp76_1.3.1 │ SDK for WP76 (Release 9 + Legato 18.06.1)
│ swi-wp76_1.3.2 │ SDK for WP76 (Release 9 + Legato 18.06.2)
│ swi-wp76_1.3.3 │ SDK for WP76 (Release 9 + Legato 18.06.3)
│ swi-wp76_1.4.0 │ SDK for WP76 (Release 9 + Legato 18.07.0)
│ swi-wp76_1.4.2 │ SDK for WP76 (Release 9 + Legato 18.07.1)
│ swi-wp76_1.5.0 │ SDK for WP76 (Release 9 + Legato 18.08.0)
│ swi-wp76_1.6.0 │ SDK for WP76 (Release 9 + Legato 18.09.0)
use leaf setup
to install, after the installation is completed, go to the dir where you installed it, and compile the toolChainExtractor.sh
file. Once the .sh script executed, go to /opt/swi, you will find y22-ext was added. then update the makefile in third-party/sqlite/src/Makefile, change /opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
to /opt/swi/y22-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
.
then does it work to compile for WP76 module?
I think you used the wrong setup, when you compile for WP77, why it still know the path of
/home/mangoh/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain/
That’s actually the thing I’m confused about… Should I delete profiles and try to reinstall them?
And this is what I got while compiling for WP76:
(lsh:wp76_r9_toolchain) mangoh@mangoh-vm:~/Desktop/myWorkspace/sqlTest$ mkapp -t wp76 sqlTest.adef -i “$LEGATO_ROOT/third-party/inc” -L “$LEGATO_ROOT/third-party/lib/sqlite3.so”
** WARNING: Failed to receive sysroot path from compiler ‘gcc --print-sysroot’ (errno: Success).
[1/7] Compiling C source
FAILED: _build_sqlTest/wp76/component/e2fbebc6625ee95f1e4f2e1aff635082/obj/9e6743bd8c76fa5ac2d847a94fa75154.o
gcc -MMD -MF _build_sqlTest/wp76/component/e2fbebc6625ee95f1e4f2e1aff635082/obj/9e6743bd8c76fa5ac2d847a94fa75154.o.d -c /home/mangoh/Desktop/myWorkspace/sqlTest/testsqlComp/testsql.c -o _build_sqlTest/wp76/component/e2fbebc6625ee95f1e4f2e1aff635082/obj/9e6743bd8c76fa5ac2d847a94fa75154.o -DLE_FILENAME=basename /home/mangoh/Desktop/myWorkspace/sqlTest/testsqlComp/testsql.c
-Wall -fPIC -Werror -fvisibility=hidden -DMK_TOOLS_BUILD -DLEGATO_EMBEDDED -I ./_build_sqlTest/wp76 -I/home/mangoh/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain/wp76-legato/interfaces -I/home/mangoh/Desktop/myWorkspace/leaf-data/wp76_r9_toolchain/wp76-legato/framework/include -I/home/mangoh/Desktop/myWorkspace/sqlTest -I./_build_sqlTest/wp76/component/e2fbebc6625ee95f1e4f2e1aff635082/src -DLE_COMPONENT_NAME=testsqlComp -DLE_LOG_SESSION=testsqlComp_LogSession -DLE_LOG_LEVEL_FILTER_PTR=testsqlComp_LogLevelFilterPtr “-DCOMPONENT_INIT=LE_CI_LINKAGE LE_SHARED void _testsqlComp_COMPONENT_INIT()”
/home/mangoh/Desktop/myWorkspace/sqlTest/testsqlComp/testsql.c:1:9: fatal error: lib/sqlite3.h: No such file or directory
#include<lib/sqlite3.h>
^~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
I tried #include “sqlite3.h”/#include “inc/sqlite3.h”, all returned same error.