Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SAsho1
New Contributor I
1,080 Views

Need CMake 3.1+ for TinyB

Jump to solution

First of all, happy to finally see BLE C/C++ library getting ready for use with Edison.

The pre-requisite says,

TinyB requires CMake 3.1+ for building and requires GLib/GIO 2.40+.

https://github.com/intel-iot-devkit/tinyb GitHub - intel-iot-devkit/tinyb

Where can I find the pre-requisites to get BLE development kick-started?

TIA

1 Solution
Carlos_M_Intel
Employee
102 Views

Hi Sukesh,

If you are using the image 159.devkit you will only need to upgrade the CMake version, for this you need to modify the /etc/opkg/iotkit.conf file with the following lines:

src/gz all-dev http://iotdk.intel.com/repos/3.0/iotdk/all http://iotdk.intel.com/repos/3.0/iotdk/all

src/gz core2-32-dev http://iotdk.intel.com/repos/3.0/iotdk/core2-32 http://iotdk.intel.com/repos/3.0/iotdk/core2-32

src/gz core2-32-intel-common http://iotdk.intel.com/repos/3.0/iotdk/core2-32-intel-common http://iotdk.intel.com/repos/3.0/iotdk/core2-32-intel-common

Then, run the command opkg update && opkg install cmake

Once you have installed cmake, you can install git and download the files for tinyB in order to continue with the installation.

opkg install git

git clone https://github.com/intel-iot-devkit/tinyb https://github.com/intel-iot-devkit/tinyb

cd tinyb

mkdir build

cd build

cmake ..

make

make install

I hope this helps

Regards,

Charlie

View solution in original post

3 Replies
Carlos_M_Intel
Employee
103 Views

Hi Sukesh,

If you are using the image 159.devkit you will only need to upgrade the CMake version, for this you need to modify the /etc/opkg/iotkit.conf file with the following lines:

src/gz all-dev http://iotdk.intel.com/repos/3.0/iotdk/all http://iotdk.intel.com/repos/3.0/iotdk/all

src/gz core2-32-dev http://iotdk.intel.com/repos/3.0/iotdk/core2-32 http://iotdk.intel.com/repos/3.0/iotdk/core2-32

src/gz core2-32-intel-common http://iotdk.intel.com/repos/3.0/iotdk/core2-32-intel-common http://iotdk.intel.com/repos/3.0/iotdk/core2-32-intel-common

Then, run the command opkg update && opkg install cmake

Once you have installed cmake, you can install git and download the files for tinyB in order to continue with the installation.

opkg install git

git clone https://github.com/intel-iot-devkit/tinyb https://github.com/intel-iot-devkit/tinyb

cd tinyb

mkdir build

cd build

cmake ..

make

make install

I hope this helps

Regards,

Charlie

View solution in original post

SAsho1
New Contributor I
102 Views

Thank you Charlie. Will test it and revert

SAsho1
New Contributor I
102 Views

It works great. Thank you

Reply