Page 1 of 1

integrate NoesisGUI with cocos2dx

Posted: 11 Jan 2017, 12:52
by NoviceGamer
im working on cocos2dx version 3.13 (cpp)
im trying to render xaml file in my android project.
i've downloaded NoesisGui trail version and copied all the header files in my classes folder and included them in my cpp file.
But there are errors and i dint find any resource to resolve it .Plz help me.

Re: integrate NoesisGUI with cocos2dx

Posted: 11 Jan 2017, 13:33
by sfernandez
Noesis library is built for armeabi-v7a and x86 only.
There is no support for armeabi, so this may be the problem.

Could you please confirm it?

Re: integrate NoesisGUI with cocos2dx

Posted: 11 Jan 2017, 13:57
by NoviceGamer
Are you saying that noesis is not built for the mobile platform?

The issue is that I am unable to link the library (dll or .lib file) as there are no instructions for the same. I have found this on github:
https://github.com/Noesis/cocos2d-x-bindings

so it is possible to use it with cocos2d-x. I dont know how to integrate the library into my project.

Re: integrate NoesisGUI with cocos2dx

Posted: 11 Jan 2017, 14:19
by sfernandez
Are you saying that noesis is not built for the mobile platform?
No, I meant that you need to compile using armeabi-v7a or x86 instead of armeabi:
APP_ABI := armeabi-v7a
ABI Management info.

We only support (right now) armeabi-v7a and x86 from that list. Devices using other instruction sets won't be supported yet.
You can download both runtimes from our forum.

Re: integrate NoesisGUI with cocos2dx

Posted: 12 Jan 2017, 07:08
by NoviceGamer
i have compiled for armeabi-v7a. But still there is same error.
Can you please provide me detail steps to do so, or some video tuto.
thanks in advance.

Re: integrate NoesisGUI with cocos2dx

Posted: 16 Jan 2017, 17:12
by sfernandez
I had a look at cocos2d bindings and I'm afraid these are only valid for iOS, because they are dependant on CoreFoundation, unless you have modified the code yourself. Is that the case?

About the link errors, make sure you are linking to libNoesis.a library when building your project.

Re: integrate NoesisGUI with cocos2dx

Posted: 18 Jan 2017, 07:22
by NoviceGamer
I'm not comfortable with xcode. Is there any other way to implement NoesisGUI in cocos2dx cpp project?
Is there any equivalent function to "CoreFoundation" for android?
Can we import "CoreFoundation" function in cocos2dx cpp project?
Regarding to code modification part, i've commented the " #include "CoreFoundation.h" ".
And there is no libNoesis.a file in sdk's provided by Noesis

Re: integrate NoesisGUI with cocos2dx

Posted: 19 Jan 2017, 05:44
by jsantos
Not sure if there are decent alternatives to XCode in OSX. But for Android, you don't need OSX, you can use Windows + Visual Studio.

Sorry for asking this, but do you have experience using the NDK? What kind of project are you trying to create? is Unity a viable option for you?

In Android, you need to use the dynamic library of Noesis (libNoesis.so)

Re: integrate NoesisGUI with cocos2dx

Posted: 19 Jan 2017, 14:00
by NoviceGamer
Im novice game programmer, and had used NDK for 2-3 tymes for creating simple android project.
Currently, Unity is not viable option for me.
from where do i get libNoesis.so file?
thanx for reply.

Re: integrate NoesisGUI with cocos2dx

Posted: 20 Jan 2017, 19:49
by jsantos
Not sure what license do you have. But you need access to the Android binaries. If you are using a trial could you please ask for that via email?

Thanks!