ConfigTree on Ubuntu

Hello,

I’m developing C++ application on Ubuntu which uses SQLite, because Its being deployed on WP77xx I will be switching SQLite for ConfigTree.
I’d like to maintain the possibility to develop my application on Ubuntu, so I’m interested

if there is a way to build ConfigTree for Ubuntu platform? So that I can have the same C++ application working on Ubuntu and my target SierraWireless WP77xx

Hi,

For target wp series below steps can be followed:
Download latest legato release and also respective tool chain.
give make wp77xx in the legato folder.

After that follow the below steps:

  1. create directory(mkdir third-party) in the {LEGATO_ROOT} path.
  2. copy the files(shell.c,sqlite3.c,sqlite3ext.h,sqlite3.h) which downloaded from sqlite-amalgamation-3220000 to third-party folder
  3. create inc,src,lib directory in third-party directory and copy shell.c,sqlite3.c in “src” directory and copy
    sqlite3ext.h,sqlite3.h in “inc” directory.
  4. Create Makefile in “src” directory and add the below comments
    export TOOLCHAIN_DIR:=/opt/swi/y17-ext/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi (appropriate toolchain for wp77xx)
    GCC = ${TOOLCHAIN_DIR}/arm-poky-linux-gnueabi-gcc
    all:
    ${GCC} -c -Wall -Werror -fpic -lpthread -ldl sqlite3.c -o …/lib/sqlite3.so
  5. after this give “make” you will get .so in lib directory.You can use .so file in app bundles.