how to build cocos2d-x project for tizen device?

how to build cocos2d-x project for tizen device (not simulator)?
where to find the missing libraries or source? I see only x86 libs… :frowning:

See this pull request: https://github.com/cocos2d/cocos2d-x/pull/2877

Also note that Tizen support is still experimental and incomplete.

working well for emulator but unable to run on device.

When change configuration from Emulator to Device following error appears

c:/tizen-sdk/tools/arm-linux-gnueabi-gcc-4.5/bin/../lib/gcc/arm-linux-gnueabi/4.5.4/../../../../arm-linux-gnueabi/bin/ld.exe: cannot find -lwebp makefile:45: recipe for target 'HelloCpp.exe' failed collect2: ld returned 1 exit status mingw32-make.exe: *** [HelloCpp.exe] Error 1

I added it.

Thanks Lee, Jae-Hong, but I am still unable to build it.

I am doing following steps

  1. I downloaded latest copy of cocos2d-x-develop

  2. After setting secure profile, I set my eclipse workspce to “cocos2d-x-develop\samples\Cpp\TestCpp”

  3. I imported all projects in the “cocos2d-x-develop” directory.

  4. I build 5 projects(box2d,chipmunk,cocos2dx,cocosdention,extentions) as Debug-Tizen-Emulator … build successfully

  5. I build HelloCpp as Debug-Tizen-Emulaotr and run it on Emulator that run successfully

  6. Then I build 5 projects(box2d,chipmunk,cocos2dx,cocosdention,extentions) as Debug-Tizen-Device … build successfully

  7. Now when I build HelloCpp as Debug-Tizen-Device console show me following errors. Can someone assist me in this regard
    (I am using Windows8 64 bit)also see the attachment for problems

> Actually I have 3 games to port for port-a-thon can some please help my porting them, thanks
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/proj.tizen/Debug-Tizen-Device\libcocos2d.a when searching for
lcocos2d
makefile:45: recipe for target ‘HelloCpp.exe’ failed
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lcocos2d
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/lib/libz.so when searching for
lz
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lz
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/usr/lib/libjpeg.so when searching for
ljpeg
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find ljpeg
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/usr/lib/libpng.so when searching for
lpng
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lpng
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/usr/lib/libtiff.so when searching for
ltiff
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find ltiff
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/prebuilt/libwebp/libs/armv7l\libwebp.a when searching for
lwebp
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lwebp
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/usr/lib/libfreetype.so when searching for
lfreetype
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lfreetype
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/usr/lib/libfontconfig.so when searching for
lfontconfig
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find lfontconfig
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: skipping incompatible …/…/…/…/…/cocos2dx/platform/third_party/tizen/rootstraps/tizen-device-2.1.native/lib/libexpat.so when searching for
lexpat
c:/tizen-sdk/tools/i386-linux-gnueabi-gcc-4.5/bin/…/lib/gcc/i386-linux-gnueabi/4.5.4/…/…/…/…/i386-linux-gnueabi/bin/ld.exe: cannot find -lexpat
collect2: ld returned 1 exit status
mingw32-make.exe: * Error 1
* Build Finished*

resolved by moving to 32 bit

One more question, how to create new cocos2d-x project for Tizen?

thank you

Sorry. It has not been ready yet.
so, please copy and modify the sample project.

Thank you Lee, Jae-Hong for your continuous support so far.

Also let me know have you added Accelerometer feature. I am porting one app that uses “didAccelerate(CCAcceleration* pAccelerationValue)” and its not working. Are we suppose to enable it from some where in the code? Although I already have called “setAccelerometerEnabled(true)” … anything else?

Thank you.

I have been implementing and testing Accelerometer feature and I will push the code in the near future.
Thank you.

Additionally, I am unable to include “SimpleAudioEngine.h” — unresolved inclusion … what might be the reason.

this is the error description:
E:/TizenSDKSetupsAndWorkspaces/cocos2d-x-develop/samples/Cpp/HelloCpp/Classes/AppDelegate.h:5:31: fatal error: SimpleAudioEngine.h: No such file or directory

Here it is how I am including it in my delegate:

#ifndef APP_DELEGATE_H
#define APP_DELEGATE_H

#include “cocos2d.h”
#include “SimpleAudioEngine.h”

Please set include path.
“${COCOS_ROOT}/CocosDenshion/include”

I pushed the code.

Hi Lee, Jae-Hong,
Accelerometer is working great. Thank you for porting.

Hi Lee
I build cocos2d-x project for tizen device success, but every time need run twice. the first push in device can’t run app, the error is “static int Tizen::App::_AppLifecycleManager::LaunchCallback(int,void*)(9210)> cannot acquire app for 6347”.
The second time push in device the app run success, I find out the second time push 3 files, but the first time not:
[RDS] Pushing file “/Work/Tizen/cocos2d-x-develop/samples/Cpp/MyGame/proj.tizen/.sign/author-signature.xml” to “/opt/usr/apps/tmp/kw3w97BkBv/author-signature.xml” in target.
[RDS] Pushing file “/Work/Tizen/cocos2d-x-develop/samples/Cpp/MyGame/proj.tizen/.sign/signature1.xml” to “/opt/usr/apps/tmp/kw3w97BkBv/signature1.xml” in target.
[RDS] Pushing file “/Work/Tizen/cocos2d-x-develop/samples/Cpp/MyGame/proj.tizen/Debug-Tizen-Device/MyGame” to “/opt/usr/apps/tmp/kw3w97BkBv/bin/MyGame” in target.
[RDS] Pushing file “/Work/Tizen/cocos2d-x-develop/samples/Cpp/MyGame/proj.tizen/.rds_delta” to “/opt/usr/apps/tmp/kw3w97BkBv/.rds_delta” in target.
I don’t know whether it is for this reason?

same here

OK. I will check it.

athar nouman wrote:

resolved by moving to 32 bit

Hi, how to moving to 32 bit? Need install tizen 32 bit IDE for win 64 bit?

For this I have to use other computer with 32 bit windows 7 install on it. Its about operating system not the architecture :slight_smile:

At this moment tizen port still needs improvements, but cocos2d-x moves to c11 and new STL library provided by this standard. Unfortunately, tizen have old GCC 4.5 and buggy libstdc 4.5 which prevents to use clang compiler. GCC 4.5 misses sugnificant features against 4.6 used on other platforms. Also minimal version can be increased to GCC 4.7 soon, since android have GCC 4.7 in NDK and iOS/OSX have equivalent clang compiler.

So everyone who interested in cocos2d-x on Tizen please vote this bug: https://bugs.tizen.org/jira/browse/TDIST-238?focusedCommentId=17117&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17117

At this moment Tizen have the worst c++11 support between all platforms without workarounds.