I'm having trouble with the CLI as documented after followint the steps: native-make, native-package, native-install, the native-run complains:
expr: syntax error (multiple times)
error: more then one executable file of "jkRjxTjNs0".
executable files: empty, empty.exe
Has anyone else used native-run in this context? I built and installed for both emulator and device. This is the device log.
--------FULL LOG-------------------
bash-3.2$ native-make clean
PLATFORM_NAME :
PLATFORM_VER : Tizen 2.1
ARCHITECTURE : i386
TOOLCHAIN : LLVM-3.1
PROJECT_TYPE : app
PROJECT_PATH : /Users/cmckenzie/Documents/tizenworkspace/empty
SDK_PATH : /Users/cmckenzie/Documents/tizen-sdk
APPLICATION_ID : jkRjxTjNs0
Info: Target already exists. [tizen-emulator-2.1.native_llvm31.i386.cpp.app]
Checking prerequisite...
Checking make... ok
rm -rf ./src/empty.o ./src/emptyEntry.o ./src/emptyFrame.o ./src/empty.d ./src/emptyEntry.d ./src/emptyFrame.d empty.exe
To package the project, run native-packaging in /Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild
bash-3.2$ native-make
PLATFORM_NAME :
PLATFORM_VER : Tizen 2.1
ARCHITECTURE : i386
TOOLCHAIN : LLVM-3.1
PROJECT_TYPE : app
PROJECT_PATH : /Users/cmckenzie/Documents/tizenworkspace/empty
SDK_PATH : /Users/cmckenzie/Documents/tizen-sdk
APPLICATION_ID : jkRjxTjNs0
Info: Target already exists. [tizen-emulator-2.1.native_llvm31.i386.cpp.app]
Checking prerequisite...
Checking make... ok
Building file: ../src/empty.cpp
Invoking: C++ Compiler
clang++ -D_DEBUG -I"/Users/cmckenzie/Documents/tizenworkspace/empty/inc" -O0 -g3 -Wall -c -fmessage-length=0 -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/libxml2 -I/Users/cmckenzie/Documents/tizen-sdk/library -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/osp -target i386-tizen-linux-gnueabi -gcc-toolchain /Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu -fPIE --sysroot=/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native -D_APP_LOG -MMD -MP -MF"src/empty.d" -MT"src/empty.d" -o "src/empty.o" "../src/empty.cpp"
Finished building: ../src/empty.cpp
Building file: ../src/emptyEntry.cpp
Invoking: C++ Compiler
clang++ -D_DEBUG -I"/Users/cmckenzie/Documents/tizenworkspace/empty/inc" -O0 -g3 -Wall -c -fmessage-length=0 -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/libxml2 -I/Users/cmckenzie/Documents/tizen-sdk/library -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/osp -target i386-tizen-linux-gnueabi -gcc-toolchain /Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu -fPIE --sysroot=/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native -D_APP_LOG -MMD -MP -MF"src/emptyEntry.d" -MT"src/emptyEntry.d" -o "src/emptyEntry.o" "../src/emptyEntry.cpp"
Finished building: ../src/emptyEntry.cpp
Building file: ../src/emptyFrame.cpp
Invoking: C++ Compiler
clang++ -D_DEBUG -I"/Users/cmckenzie/Documents/tizenworkspace/empty/inc" -O0 -g3 -Wall -c -fmessage-length=0 -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/libxml2 -I/Users/cmckenzie/Documents/tizen-sdk/library -I/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/include/osp -target i386-tizen-linux-gnueabi -gcc-toolchain /Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu -fPIE --sysroot=/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native -D_APP_LOG -MMD -MP -MF"src/emptyFrame.d" -MT"src/emptyFrame.d" -o "src/emptyFrame.o" "../src/emptyFrame.cpp"
Finished building: ../src/emptyFrame.cpp
Building target: empty.exe
Invoking: C++ Linker
clang++ -o"empty.exe" ./src/empty.o ./src/emptyEntry.o ./src/emptyFrame.o -I../src/ -target i386-tizen-linux-gnueabi -gcc-toolchain /Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.5/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Xlinker --as-needed -pie -lpthread -Xlinker -rpath="/opt/usr/apps/jkRjxTjNs0/lib" -Xlinker -rpath="/home/developer/sdk_tools/lib" --sysroot=/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native -L/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/lib -L/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../../platforms/tizen2.1/rootstraps/tizen-emulator-2.1.native/usr/lib/osp -losp-uifw -losp-appfw -losp-image -losp-json -losp-ime -losp-net -lpthread -losp-content -losp-locations -losp-telephony -losp-uix -losp-media -losp-messaging -losp-web -losp-social -losp-wifi -losp-bluetooth -losp-nfc -losp-face -losp-speech-tts -losp-speech-stt -losp-shell -losp-shell-core -losp-vision -lxml2
Finished building target: empty.exe
To package the project, run native-packaging in /Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild
bash-3.2$ native-packaging --sign-author-key ~/clara.p12 --sign-author-pwd 1 Copying files...
rm -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk"
mkdir -p "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/shared"
rm -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/jkRjxTjNs0-1.0.0-i386.tpk"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../data" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/data"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../shared/res" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/shared/res"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../shared/data" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/shared/data"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../shared/trusted" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/shared/trusted"
mkdir -p "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/lib"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../res" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/res"
mkdir -p "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/setting"
mkdir -p "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/bin"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/empty.exe" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/bin/empty.exe"
mkdir -p "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/info"
cp -rf "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/../manifest.xml" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk/info/manifest.xml"
Signing...
"/Users/cmckenzie/Documents/tizen-sdk/tools/smart-build-interface/../ide/bin/native-signing" "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk" " " "/Users/cmckenzie/clara.p12" "****" " " "****" " " " " "****" " " " "
The message is ""
Zipping...
cd "/Users/cmckenzie/Documents/tizenworkspace/empty/CommandLineBuild/.tpk" ; zip -rv "../jkRjxTjNs0-1.0.0-i386.tpk" *
adding: author-signature.xml (in=3857) (out=1868) (deflated 52%)
adding: bin/ (in=0) (out=0) (stored 0%)
adding: bin/empty.exe (in=345870) (out=115382) (deflated 67%)
adding: data/ (in=0) (out=0) (stored 0%)
adding: info/ (in=0) (out=0) (stored 0%)
adding: info/manifest.xml (in=642) (out=367) (deflated 43%)
adding: lib/ (in=0) (out=0) (stored 0%)
adding: res/ (in=0) (out=0) (stored 0%)
adding: setting/ (in=0) (out=0) (stored 0%)
adding: shared/ (in=0) (out=0) (stored 0%)
adding: shared/data/ (in=0) (out=0) (stored 0%)
adding: shared/res/ (in=0) (out=0) (stored 0%)
adding: shared/res/screen-density-xhigh/ (in=0) (out=0) (stored 0%)
adding: shared/res/screen-density-xhigh/mainmenu.png (in=57662) (out=18633) (deflated 68%)
adding: shared/trusted/ (in=0) (out=0) (stored 0%)
adding: signature1.xml (in=4190) (out=1955) (deflated 53%) total bytes=412221, compressed=138205 -> 66% savings Packaging completed... OK PLATFORM_NAME :
PLATFORM_VER : Tizen 2.1
ARCHITECTURE : i386
TOOLCHAIN : LLVM-3.1
PROJECT_TYPE : app
PROJECT_NAME : empty
APPLICATION_ID : jkRjxTjNs0
Info: Target already exists. [tizen-emulator-2.1.native_llvm31.i386.cpp.app]
bash-3.2$ native-install -p jkRjxTjNs0-1.0.0-i386.tpk
jkRjxTjNs0-1.0.0-i386.tpk 5732 KB/s (140705 bytes in 0.023s)
path is /opt/usr/apps/tmp/jkRjxTjNs0-1.0.0-i386.tpk
__return_cb req_id[1] pkg_type[tpk] pkgid[jkRjxTjNs0] key[start] val[install] __return_cb req_id[1] pkg_type[tpk] pkgid[jkRjxTjNs0] key[install_percent] val[0] __return_cb req_id[1] pkg_type[tpk] pkgid[jkRjxTjNs0] key[install_percent] val[60] __return_cb req_id[1] pkg_type[tpk] pkgid[jkRjxTjNs0] key[install_percent] val[100] __return_cb req_id[1] pkg_type[tpk] pkgid[jkRjxTjNs0] key[end] val[ok] spend time for pkgcmd is [3227]ms
To launch the application, run native-run with -p <pkg_name>.
And to debug the application, run native-debug with -p <pkg_name>.
bash-3.2$ native-run -p jkRjxTjNs0
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
error: more then one executable file of "jkRjxTjNs0".
executable files: empty, empty.exe