How to launch cantata-native application to a tizen target:
* Tizen SDK version 2.0 or higher
-
getting sources
$ git clone https://github.com/yoonky/cantata-native.git
$ git clone https://github.com/yoonky/cantata-web.git
$ git clone https://github.com/yoonky/cantata-jsbind.git
$ git clone https://github.com/yoonky/cantata-node.git
-
Setting projects on eclipse
- integrate cantata-web project to cantata-native
cp ./cantata-web/* ./cantata-native/res/ -R
-
import cantata-native and cantata-jsbind project to your Tizen IDE
-
in case cantata-jsbind, add include path: C/C++ build > Settings > Tool Settings > C++ Compiler > Includes
~/your working directory/cantata-node/node/src
~/your working directory/cantata-node/node/deps/uv/include
~/your working directory/cantata-node/node/deps/v8/include
- build cantata-jsbind project tizen-native.node file will be generated on the build configuration folder
copy tizen-native.node to cantata-native's res/routes folder
- install node to cantata-native project
$ cd cantata-node
$ mkdir output
$ ./build --dest-cpu=x86 --with-shared --prefix=./output
$ cp ./output/node ../cantata-native/res/libnode.so
-
Launch project
build cantata-native project and run the project
click "Start service"
$ sdb forward tcp:3000 tcp:3000
connect to localhost:3000 with your browser