Skip to content
SaeHie Park edited this page Jul 22, 2015 · 6 revisions

Build host

Current build host for libtuv

  • Ubuntu 14.04

Build tools installation

Host build
sudo apt-get install build-essential cmake
Cross compiler for Raspberry Pi 2
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
Cross compiler for STM32F4-Discovery

Build and run test

for x86 linux (Ubuntu 14.04)
make
./build/i686-linux/debug/bin/tuvtester
(or)
./build/x86_64-linux/debug/bin/tuvtester
for arm-linux (Raspberry Pi 2)
TUV_PLATFORM=arm-linux TUV_BOARD=rpi2 make
scp ./build/arm-linux/debug/bin/tuvtester pi@(your rpi2 IP addr):/home/pi/.

and in your RPi2 shell

./tuvtester
for arm-nuttx (STM32F4-Discovery)
TUV_PLATFORM=arm-nuttx TUV_BOARD=stm32f4disco TUV_SYSTEMROOT=/.../nuttx/nuttx make

Where /.../nuttx/nuttx is absolute path to nuttx where .config resides. It'll copy libtuv.a and libtuvtester.a, tester in library, to /.../nuttx/nuttx/lib folder.

Clone this wiki locally