OverviewNative C APINode.js API

Checking SDK Availability

  • If you have a typical GCC already installed on your system you can run the following command:
dv@dvh tmp]$ gcc --version
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is a free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Note that the cross-compiler from the LTPS SDK installation is available only from the environment variables $CC, $CXX, $CPP, etc.

[dv@dvh hello_world]$ echo $CC
arm-tps-linux-gnueabi-gcc -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=/home/dv/tpsC/sysroots/cortexa8hf-neon-tps-linux-gnueabi
[dv@dvh hello_world]$ $CC --version
arm-tps-linux-gnueabi-gcc (GCC) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is a free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The output is about the same, except one detail - you may notice that cross-gcc from LTPS SDK has a different version string and
a cpu flags preset.

If your environment variables $CC, $CXX. etc. are empty then you need to repeat the Setting up the Environment step.

OverviewNative C APINode.js API