9miao / crossapp Goto Github PK
View Code? Open in Web Editor NEWCross-Platform Mobile APP Development Engine
License: MIT License
Cross-Platform Mobile APP Development Engine
License: MIT License
建议先增加一些 控件布局的类,不然摆放控件太麻烦了,写起来很吃力。虽然不懂ios,但已经用crossApp吃力的开发完第一版。 加油! 支持CrossApp.
STLContainer
iphone 5s ios 8 .1 .1 无法在真机上调用CADevice::getAddressBook(),直接崩溃
如题
用C++ 11
智能指针的话会不会好点
开发者就不用考虑内存回收了。
RT
代码如下
CATextView *input = CATextView::createWithFrame(CCRect(_ds(30), _ds(30), winSize.width - _ds(60), _ds(80)));
input->setSpaceHolderColor(CAColor_orange);
input->setPlaceHolder("请输入你要输入的内容");
rootNode->addSubview(input);
提示文字显示的颜色始终是黑色
大家有任何问题,可以随时在这里提出,我们将会每日查看并回复~~~感谢大家支持。
/Users/yang/opt/CrossApp/CrossApp/support/ConvertUTF.h:108:24: Typedef redefinition with different types ('unsigned short' vs 'char16_t')
Thanks, if it is open source. And obviously licenses sub-folder is not for that purpose.
build通过,执行ant debug install出现重复定义错误:
-dex:
[dex] input: /home/zhu/crossapp/CrossApp/samples/multi-platform-cpp/proj.android/bin/classes
[dex] input: /home/zhu/crossapp/CrossApp/cocos2dx/platform/android/java/bin/classes.jar
[dex] Using Pre-Dexed classes-d46e25e8cb06753b73ea992bc9489c41.jar <- /home/zhu/crossapp/CrossApp/cocos2dx/platform/android/java/bin/classes.jar
[dex] Converting compiled files and external libraries into /home/zhu/crossapp/CrossApp/samples/multi-platform-cpp/proj.android/bin/classes.dex...
[dx]
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] com.android.dx.util.DexException: Multiple dex files define Lorg/cocos2dx/lib/AndroidNativeTool$1;
[dx] at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592)
[dx] at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550)
[dx] at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:531)
[dx] at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168)
[dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
[dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:232)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:174)
[dx] at com.android.dx.command.Main.main(Main.java:91)
[dx]
BUILD FAILED
/home/zhu/android-sdk-linux/tools/ant/build.xml:892: The following error occurred while executing this line:
/home/zhu/android-sdk-linux/tools/ant/build.xml:894: The following error occurred while executing this line:
/home/zhu/android-sdk-linux/tools/ant/build.xml:906: The following error occurred while executing this line:
/home/zhu/android-sdk-linux/tools/ant/build.xml:284: null returned: 2
This issues appears at 'FT_Face curFace = glyph->isOpenType ? s_TempFont.m_CurFontFace : m_face;' where s_TempFont is NULL for '\n'.
If I uses m_face directly here, this issue disappears.
你好:官方说支持WIN32平台,为什么不能直接运行呢?调试状态倒是可以。点击直接提示:HelloCpp.exe已停止工作。
刚刚接触crossapp,crossapp和我的想法不谋而合,相信未来会有很好的前景,但是文档太少了,没有文档看起来很累,官方能否编译个文档出来呢?就算有类图关系看看也好啊~
RT
用vse2013打开CrossApp\samples\multi-platform-cpp\proj.win32\HelloCpp.sln,编译会报错:
Error 59 error C2440: 'type cast' : cannot convert from 'bool (__thiscall cocos2d::CANavigationBar::* )(cocos2d::CAControl *,cocos2d::CCPoint)' to 'cocos2d::SEL_CAControl' c:\users\zhiw\documents\github\crossapp\cocos2dx\ui_controller\cabar.cpp 189 1 libcocos2d
CABar.cpp #line198 行。
调用 demo 里的extension。点击右键
CADevice.mm
CAAddress *address = [[CAAddress alloc] init];
_addressBookArr = [address getAddressBook];
address 为nil
复现过程:
打开aViewController 添加一个ScrollView,放一个按钮,点击push到bViewController
bViewController 添加 一个 CATextField
点击 CATextField 后调出手机输入软键盘,这是点击手机的返回按钮,点击两次返回到aViewController,再在aViewController 随便滑动一下,就会导致应用崩溃,崩溃信息如下:
03-23 13:50:55.667: A/libc(21487): Fatal signal 7 (SIGBUS) at 0x5e402029 (code=1), thread 21513 (Thread-15003)
03-23 13:50:55.777: I/DEBUG(253): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-23 13:50:55.777: I/DEBUG(253): Build fingerprint: 'Xiaomi/armani/armani:4.3/JLS36C/JHCCNBF33.0:user/release-keys'
03-23 13:50:55.777: I/DEBUG(253): Revision: '0'
03-23 13:50:55.777: I/DEBUG(253): pid: 21487, tid: 21513, name: Thread-15003 >>> com.guodong.gdlife <<<
03-23 13:50:55.777: I/DEBUG(253): signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 5e402029
03-23 13:50:55.877: I/DEBUG(253): r0 5e83d600 r1 00000000 r2 5e7aa1e8 r3 5e6e812e
03-23 13:50:55.877: I/DEBUG(253): r4 5e83d600 r5 00000001 r6 00000000 r7 00000000
03-23 13:50:55.877: I/DEBUG(253): r8 5eb14b70 r9 5ea14f3c sl 5e808050 fp 5eb14b84
03-23 13:50:55.877: I/DEBUG(253): ip 00000001 sp 5eb14a88 lr 5e402065 pc 5e6e812c cpsr 00000010
03-23 13:50:55.877: I/DEBUG(253): d0 0000000000000000 d1 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d2 0000000000000000 d3 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d4 fe8000003f000001 d5 000122e800000000
03-23 13:50:55.877: I/DEBUG(253): d6 0000000000000000 d7 00000000000022ec
03-23 13:50:55.877: I/DEBUG(253): d8 0000000000000000 d9 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d10 0000000000000000 d11 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d12 0000000000000000 d13 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d14 0000000000000000 d15 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d16 000000003ead0856 d17 0000000000000000
03-23 13:50:55.877: I/DEBUG(253): d18 3f13ccf336930000 d19 3252000037590000
03-23 13:50:55.877: I/DEBUG(253): d20 c5402b6ac4e0faa1 d21 c09ffc2ec5a62683
03-23 13:50:55.877: I/DEBUG(253): d22 4540300c44e1000d d23 40a0000a45a62284
03-23 13:50:55.877: I/DEBUG(253): d24 bf29f5dcbeb88ace d25 3fbf315cc7dcc100
03-23 13:50:55.877: I/DEBUG(253): d26 bfd5e3a86a4b0c8f d27 bfa5c6d5a10f7452
03-23 13:50:55.877: I/DEBUG(253): d28 3f8e67efe86ccc15 d29 3ec6cd878c3b46a7
03-23 13:50:55.887: I/DEBUG(253): d30 bf44b12389d40879 d31 3ef99342e0ee5069
03-23 13:50:55.887: I/DEBUG(253): scr 60000012
03-23 13:50:55.887: I/DEBUG(253): backtrace:
03-23 13:50:55.887: I/DEBUG(253): #00 pc 004d712c /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so
03-23 13:50:55.887: I/DEBUG(253): #1 pc 001f1063 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::resignFirstResponder()+22)
03-23 13:50:55.887: I/DEBUG(253): #2 pc 001f19b9 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::ccTouchBegan(CrossApp::CATouch_, CrossApp::CAEvent_)+452)
03-23 13:50:55.887: I/DEBUG(253): #3 pc 001f8b33 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATouchController::passingTouchesViews(float)+214)
03-23 13:50:55.887: I/DEBUG(253): #4 pc 001e5e49 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CCTimer::update(float)+180)
03-23 13:50:55.887: I/DEBUG(253): #5 pc 001e66dd /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CAScheduler::update(float)+184)
03-23 13:50:55.887: I/DEBUG(253): #6 pc 001e3955 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CCDisplayLinkDirector::mainLoop()+60)
03-23 13:50:55.887: I/DEBUG(253): #7 pc 0023023b /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (Java_org_CrossApp_lib_Cocos2dxRenderer_nativeRender+10)
03-23 13:50:55.887: I/DEBUG(253): #8 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
03-23 13:50:55.887: I/DEBUG(253): #9 pc 00050d8f /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const_, JValue_, Method const_, Thread_)+398)
03-23 13:50:55.887: I/DEBUG(253): #10 pc 00029860 /system/lib/libdvm.so
03-23 13:50:55.887: I/DEBUG(253): #11 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread_, Method const_, JValue_)+184)
03-23 13:50:55.887: I/DEBUG(253): #12 pc 00062de9 /system/lib/libdvm.so (dvmCallMethodV(Thread_, Method const_, Object_, bool, JValue_, std::va_list)+292)
03-23 13:50:55.887: I/DEBUG(253): #13 pc 00062e13 /system/lib/libdvm.so (dvmCallMethod(Thread, Method const, Object_, JValue_, ...)+20)
03-23 13:50:55.887: I/DEBUG(253): #14 pc 00057b8b /system/lib/libdvm.so
03-23 13:50:55.887: I/DEBUG(253): #15 pc 0000cba0 /system/lib/libc.so (thread_entry+72)
03-23 13:50:55.887: I/DEBUG(253): #16 pc 0000cd1c /system/lib/libc.so (pthread_create+208)
03-23 13:50:55.887: I/DEBUG(253): stack:
03-23 13:50:55.887: I/DEBUG(253): 5eb14a48 00000000
03-23 13:50:55.887: I/DEBUG(253): 5eb14a4c 40054ba9 /system/lib/libc.so (free+12)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a50 5e7aaf94 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so
03-23 13:50:55.887: I/DEBUG(253): 5eb14a54 5e6921cf /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (operator delete(void)+10)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a58 5e7aaf94 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so
03-23 13:50:55.887: I/DEBUG(253): 5eb14a5c 5e401fbf /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::~CATextField()+14)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a60 5e9125b8
03-23 13:50:55.887: I/DEBUG(253): 5eb14a64 5e3f632f /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CAObject::release()+18)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a68 5e83d600
03-23 13:50:55.887: I/DEBUG(253): 5eb14a6c 5e409521 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATouchDispatcher::setFirstResponder(CrossApp::CAResponder)+32)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a70 5e409501 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATouchDispatcher::setFirstResponder(CrossApp::CAResponder_))
03-23 13:50:55.887: I/DEBUG(253): 5eb14a74 5e83d600
03-23 13:50:55.887: I/DEBUG(253): 5eb14a78 00000000
03-23 13:50:55.887: I/DEBUG(253): 5eb14a7c 5e3f6493 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CAResponder::resignFirstResponder()+28)
03-23 13:50:55.887: I/DEBUG(253): 5eb14a80 df0027ad
03-23 13:50:55.887: I/DEBUG(253): 5eb14a84 00000000
03-23 13:50:55.887: I/DEBUG(253): #00 5eb14a88 5e40204d /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::resignFirstResponder())
03-23 13:50:55.887: I/DEBUG(253): ........ ........
03-23 13:50:55.887: I/DEBUG(253): #1 5eb14a88 5e40204d /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::resignFirstResponder())
03-23 13:50:55.887: I/DEBUG(253): 5eb14a8c 5e83d600
03-23 13:50:55.887: I/DEBUG(253): 5eb14a90 00000000
03-23 13:50:55.887: I/DEBUG(253): 5eb14a94 5e4029bb /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CATextField::ccTouchBegan(CrossApp::CATouch_, CrossApp::CAEvent_)+454)
03-23 13:50:55.887: I/DEBUG(253): #2 5eb14a98 00000000
03-23 13:50:55.887: I/DEBUG(253): 5eb14a9c 80000000
03-23 13:50:55.887: I/DEBUG(253): 5eb14aa0 438ef91f /dev/ashmem/dalvik-heap (deleted)
03-23 13:50:55.887: I/DEBUG(253): 5eb14aa4 c30abcc1
03-23 13:50:55.887: I/DEBUG(253): 5eb14aa8 5e83d600
03-23 13:50:55.887: I/DEBUG(253): 5eb14aac 5eb14b08 [stack:21513]
03-23 13:50:55.897: I/DEBUG(253): 5eb14ab0 5eb14b14 [stack:21513]
03-23 13:50:55.897: I/DEBUG(253): 5eb14ab4 5e42a129 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (CrossApp::CAView::convertRectToWorldSpace(CrossApp::CCRect const&)+68)
03-23 13:50:55.897: I/DEBUG(253): 5eb14ab8 41af80da /system/lib/libLLVM.so (std::vector<std::pair<llvm::IntegersSubsetMapping<llvm::MachineBasicBlock, llvm::IntegersSubset, llvm::IntItem>::RangeEx, llvm::MachineBasicBlock_>, std::allocator<std::pair<llvm::IntegersSubsetMapping<llvm::MachineBasicBlock, llvm::IntegersSubset, llvm::IntItem>::RangeEx, llvm::MachineBasicBlock_> > >::reserve(unsigned int)+41)
03-23 13:50:55.897: I/DEBUG(253): 5eb14abc 44904cb2 /dev/ashmem/dalvik-heap (deleted)
03-23 13:50:55.897: I/DEBUG(253): 5eb14ac0 5e7aa190 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so
03-23 13:50:55.897: I/DEBUG(253): 5eb14ac4 00000000
03-23 13:50:55.897: I/DEBUG(253): 5eb14ac8 00000000
03-23 13:50:55.897: I/DEBUG(253): 5eb14acc 43e10000 /dev/ashmem/dalvik-heap (deleted)
03-23 13:50:55.897: I/DEBUG(253): 5eb14ad0 42610000 /dev/ashmem/dalvik-heap (deleted)
03-23 13:50:55.897: I/DEBUG(253): 5eb14ad4 5e69c300 /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so (__aeabi_fcmplt+12)
03-23 13:50:55.897: I/DEBUG(253): ........ ........
03-23 13:50:55.897: I/DEBUG(253): memory near r0:
03-23 13:50:55.897: I/DEBUG(253): 5e83d5e0 c1eb8f16 414fd898 c0f00005 41eb8f13
03-23 13:50:55.897: I/DEBUG(253): 5e83d5f0 c1880003 00000000 000002e8 000002ca
03-23 13:50:55.897: I/DEBUG(253): 5e83d600 5e7aa1e8 00000880 00000000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d610 ffffffff 5e7d75bc 01010100 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d620 000c0000 5e7b0370 5e7b0398 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d630 00000000 00000000 00000000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d640 00000000 3f800000 3f800000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d650 43778000 424a8000 00000000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d660 43610000 41e10000 3f000000 3f000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d670 43e10000 42610000 5e7aa190 41b40000
03-23 13:50:55.897: I/DEBUG(253): 5e83d680 41b40000 43e10000 42610000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d690 3f800000 00000000 00000000 3f800000
03-23 13:50:55.897: I/DEBUG(253): 5e83d6a0 00000000 00000000 3f800000 00000000
03-23 13:50:55.897: I/DEBUG(253): 5e83d6b0 80000000 3f800000 41b40000 41a20000
03-23 13:50:55.897: I/DEBUG(253): 5e83d6c0 00000000 00000000 6690d500 6690d500
03-23 13:50:55.897: I/DEBUG(253): 5e83d6d0 00000080 00000000 00000000 00000000
03-23 13:50:55.897: I/DEBUG(253): memory near r2:
03-23 13:50:55.897: I/DEBUG(253): 5e7aa1c8 5e7aa1b8 00000000 00000000 5e7aa1b8
03-23 13:50:55.897: I/DEBUG(253): 5e7aa1d8 5e3f6261 00000000 00000000 5e7aa1c0
03-23 13:50:55.897: I/DEBUG(253): 5e7aa1e8 5e3f6261 5e3f626d 5e3f62c1 5e3f6265
03-23 13:50:55.897: I/DEBUG(253): 5e7aa1f8 5e352ff1 5e352ff3 5e352ff7 5e352ffb
03-23 13:50:55.897: I/DEBUG(253): 5e7aa208 5e353233 00000000 5e7b8850 5e6e8041
03-23 13:50:55.897: I/DEBUG(253): 5e7aa218 5e7aa1c0 00000000 00000000 5e7aa210
03-23 13:50:55.897: I/DEBUG(253): 5e7aa228 5e3f6261 5e3f63cd 5e3f63e9 5e3f6265
03-23 13:50:55.897: I/DEBUG(253): 5e7aa238 5e352ff1 5e352ff3 5e352ff7 5e352ffb
03-23 13:50:55.897: I/DEBUG(253): 5e7aa248 5e353233 5e3f6477 5e3f6451 5e3f63bd
03-23 13:50:55.897: I/DEBUG(253): 5e7aa258 5e352fff 5e353003 5e353007 5e35300b
03-23 13:50:55.897: I/DEBUG(253): 5e7aa268 5e35300f 5e353013 5e353017 5e35301b
03-23 13:50:55.897: I/DEBUG(253): 5e7aa278 5e35301f 5e353023 5e353027 5e35302b
03-23 13:50:55.897: I/DEBUG(253): 5e7aa288 5e35302f 5e3f63c1 5e3f63c5 5e3f63c7
03-23 13:50:55.897: I/DEBUG(253): 5e7aa298 5e3f63c9 00000000 5e7b8850 5e6e805a
03-23 13:50:55.897: I/DEBUG(253): 5e7aa2a8 5e7aa1c0 5e7b8850 5e6e806e 5e7aa1c0
03-23 13:50:55.897: I/DEBUG(253): 5e7aa2b8 00000000 5e7aa2a0 5e3f6261 5e3f64f5
03-23 13:50:55.897: I/DEBUG(253): memory near r3:
03-23 13:50:55.897: I/DEBUG(253): 5e6e810c 384e0045 736f7243 70704173 41433031
03-23 13:50:55.897: I/DEBUG(253): 5e6e811c 656c6143 7261646e 00000045 ffff0000
03-23 13:50:55.907: I/DEBUG(253): 5e6e812c 384effff 736f7243 70704173 41433531
03-23 13:50:55.907: I/DEBUG(253): 5e6e813c 6976614e 69746167 61426e6f 4e004572
03-23 13:50:55.907: I/DEBUG(253): 5e6e814c 6f724338 70417373 41433870 42626154
03-23 13:50:55.907: I/DEBUG(253): 5e6e815c 00457261 ffffffff 00000000 7243384e
03-23 13:50:55.907: I/DEBUG(253): 5e6e816c 4173736f 43387070 74754241 456e6f74
03-23 13:50:55.907: I/DEBUG(253): 5e6e817c 43384e00 73736f72 39707041 6f434143
03-23 13:50:55.907: I/DEBUG(253): 5e6e818c 6f72746e 0000456c 00000000 ffffff00
03-23 13:50:55.907: I/DEBUG(253): 5e6e819c 4effffff 6f724338 70417373 43303170
03-23 13:50:55.907: I/DEBUG(253): 5e6e81ac 6f725041 73657267 ff004573 00ffffff
03-23 13:50:55.907: I/DEBUG(253): 5e6e81bc 4e000000 6f724338 70417373 43383170
03-23 13:50:55.907: I/DEBUG(253): 5e6e81cc 67655341 746e656d 6f436465 6f72746e
03-23 13:50:55.907: I/DEBUG(253): 5e6e81dc 4e00456c 6f724338 70417373 41433870
03-23 13:50:55.907: I/DEBUG(253): 5e6e81ec 64696c53 00457265 00000000 7243384e
03-23 13:50:55.907: I/DEBUG(253): 5e6e81fc 4173736f 43387070 69775341 45686374
03-23 13:50:55.907: I/DEBUG(253): memory near r4:
03-23 13:50:55.907: I/DEBUG(253): 5e83d5e0 c1eb8f16 414fd898 c0f00005 41eb8f13
03-23 13:50:55.907: I/DEBUG(253): 5e83d5f0 c1880003 00000000 000002e8 000002ca
03-23 13:50:55.907: I/DEBUG(253): 5e83d600 5e7aa1e8 00000880 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d610 ffffffff 5e7d75bc 01010100 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d620 000c0000 5e7b0370 5e7b0398 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d630 00000000 00000000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d640 00000000 3f800000 3f800000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d650 43778000 424a8000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d660 43610000 41e10000 3f000000 3f000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d670 43e10000 42610000 5e7aa190 41b40000
03-23 13:50:55.907: I/DEBUG(253): 5e83d680 41b40000 43e10000 42610000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d690 3f800000 00000000 00000000 3f800000
03-23 13:50:55.907: I/DEBUG(253): 5e83d6a0 00000000 00000000 3f800000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5e83d6b0 80000000 3f800000 41b40000 41a20000
03-23 13:50:55.907: I/DEBUG(253): 5e83d6c0 00000000 00000000 6690d500 6690d500
03-23 13:50:55.907: I/DEBUG(253): 5e83d6d0 00000080 00000000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): memory near r8:
03-23 13:50:55.907: I/DEBUG(253): 5eb14b50 5e808040 00000000 5ea14f44 5e3f4957
03-23 13:50:55.907: I/DEBUG(253): 5eb14b60 583103d0 5e44123d 5996142e 4120f3d0
03-23 13:50:55.907: I/DEBUG(253): 5eb14b70 5ea14f3c 00000001 00000008 42751a58
03-23 13:50:55.907: I/DEBUG(253): 5eb14b80 42752110 4123fd93 5ea14f3c 5e1a0504
03-23 13:50:55.907: I/DEBUG(253): 5eb14b90 5e441231 5e808050 00000000 5e808040
03-23 13:50:55.907: I/DEBUG(253): 5eb14ba0 42751a58 00000000 5e808068 40092310
03-23 13:50:55.907: I/DEBUG(253): 5eb14bb0 5e808040 6423ea08 00000001 00000008
03-23 13:50:55.907: I/DEBUG(253): 5eb14bc0 412aac44 4126aacd 5e10d230 5e10d236
03-23 13:50:55.907: I/DEBUG(253): 5eb14bd0 0000002a 583104b0 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5eb14be0 58010038 583104b0 00000003 0000237e
03-23 13:50:55.907: I/DEBUG(253): 5eb14bf0 00000001 00000002 00000001 00000001
03-23 13:50:55.907: I/DEBUG(253): 5eb14c00 0000000f 00000001 00000000 00000004
03-23 13:50:55.907: I/DEBUG(253): 5eb14c10 00000071 00000005 00000000 5e09d0f8
03-23 13:50:55.907: I/DEBUG(253): 5eb14c20 00000000 00000000 5ba1b000 00002377
03-23 13:50:55.907: I/DEBUG(253): 5eb14c30 00000002 e3e076f8 0000000e 00000001
03-23 13:50:55.907: I/DEBUG(253): 5eb14c40 00000001 e3e076f8 0000000e 4272e894
03-23 13:50:55.907: I/DEBUG(253): memory near r9:
03-23 13:50:55.907: I/DEBUG(253): 5ea14f1c 00000000 42751d80 42c9c468 5ea14f50
03-23 13:50:55.907: I/DEBUG(253): 5ea14f2c 5e10d2f0 583103d0 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14f3c 5ea14f6c 5996142e 58310800 5e10d2f0
03-23 13:50:55.907: I/DEBUG(253): 5ea14f4c 00000000 42751d80 428d1158 5ea14fdc
03-23 13:50:55.907: I/DEBUG(253): 5ea14f5c 59961a84 58310ff8 5996142e 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14f6c 42751d80 42752110 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14f7c 00000000 00000000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14f8c 428d1158 000004ce 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14f9c 4275cd00 00000000 00003000 57f64de8
03-23 13:50:55.907: I/DEBUG(253): 5ea14fac 4272e958 000002d0 00000000 42751d80
03-23 13:50:55.907: I/DEBUG(253): 5ea14fbc 4272e890 00000000 42752110 5ea15000
03-23 13:50:55.907: I/DEBUG(253): 5ea14fcc 00000000 583112d8 59961a84 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14fdc 4275cd00 00003a9b 00000000 42752110
03-23 13:50:55.907: I/DEBUG(253): 5ea14fec 00000000 00000000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea14ffc 00000000 00000000 00000000 00000000
03-23 13:50:55.907: I/DEBUG(253): 5ea1500c 00000000 00000000 00000000 00000000
03-23 13:50:55.917: I/DEBUG(253): memory near sl:
03-23 13:50:55.917: I/DEBUG(253): 5e808030 70704173 62696c2e 636f432e 00000453
03-23 13:50:55.917: I/DEBUG(253): 5e808040 59062666 5ea14f3c 58310800 5ba1b000
03-23 13:50:55.917: I/DEBUG(253): 5e808050 42751d80 5eb14b40 5eb14ca0 00000000
03-23 13:50:55.917: I/DEBUG(253): 5e808060 5eb14cd4 0000000c 00000000 4120f540
03-23 13:50:55.917: I/DEBUG(253): 5e808070 00000000 00000000 57510170 5ea11300
03-23 13:50:55.917: I/DEBUG(253): 5e808080 00000000 00000000 00000001 00004000
03-23 13:50:55.917: I/DEBUG(253): 5e808090 00000000 5e808490 4120f540 41214480
03-23 13:50:55.917: I/DEBUG(253): 5e8080a0 00000000 4121857c 412185f0 412184a0
03-23 13:50:55.917: I/DEBUG(253): 5e8080b0 412184c0 4121851c 00000000 00000000
03-23 13:50:55.917: I/DEBUG(253): 5e8080c0 5e9fe968 00000028 00000000 00000000
03-23 13:50:55.917: I/DEBUG(253): 5e8080d0 00000000 00000000 000018c8 412b139c
03-23 13:50:55.917: I/DEBUG(253): 5e8080e0 00000000 583104b0 00000001 5e8075c0
03-23 13:50:55.917: I/DEBUG(253): 5e8080f0 00000001 00000040 00000200 00000001
03-23 13:50:55.917: I/DEBUG(253): 5e808100 00000002 5979d272 5979d268 00000001
03-23 13:50:55.917: I/DEBUG(253): 5e808110 5979d2a4 57ff3858 00000000 6057c24c
03-23 13:50:55.917: I/DEBUG(253): 5e808120 5ff217ec 00000000 6057c168 60c41662
03-23 13:50:55.917: I/DEBUG(253): memory near fp:
03-23 13:50:55.917: I/DEBUG(253): 5eb14b64 5e44123d 5996142e 4120f3d0 5ea14f3c
03-23 13:50:55.917: I/DEBUG(253): 5eb14b74 00000001 00000008 42751a58 42752110
03-23 13:50:55.917: I/DEBUG(253): 5eb14b84 4123fd93 5ea14f3c 5e1a0504 5e441231
03-23 13:50:55.917: I/DEBUG(253): 5eb14b94 5e808050 00000000 5e808040 42751a58
03-23 13:50:55.917: I/DEBUG(253): 5eb14ba4 00000000 5e808068 40092310 5e808040
03-23 13:50:55.917: I/DEBUG(253): 5eb14bb4 6423ea08 00000001 00000008 412aac44
03-23 13:50:55.917: I/DEBUG(253): 5eb14bc4 4126aacd 5e10d230 5e10d236 0000002a
03-23 13:50:55.917: I/DEBUG(253): 5eb14bd4 583104b0 00000000 00000000 58010038
03-23 13:50:55.917: I/DEBUG(253): 5eb14be4 583104b0 00000003 0000237e 00000001
03-23 13:50:55.917: I/DEBUG(253): 5eb14bf4 00000002 00000001 00000001 0000000f
03-23 13:50:55.917: I/DEBUG(253): 5eb14c04 00000001 00000000 00000004 00000071
03-23 13:50:55.917: I/DEBUG(253): 5eb14c14 00000005 00000000 5e09d0f8 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14c24 00000000 5ba1b000 00002377 00000002
03-23 13:50:55.917: I/DEBUG(253): 5eb14c34 e3e076f8 0000000e 00000001 00000001
03-23 13:50:55.917: I/DEBUG(253): 5eb14c44 e3e076f8 0000000e 4272e894 4272e890
03-23 13:50:55.917: I/DEBUG(253): 5eb14c54 5e808040 0000000c 00000060 1dcd64ff
03-23 13:50:55.917: I/DEBUG(253): memory near sp:
03-23 13:50:55.917: I/DEBUG(253): 5eb14a68 5e83d600 5e409521 5e409501 5e83d600
03-23 13:50:55.917: I/DEBUG(253): 5eb14a78 00000000 5e3f6493 df0027ad 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14a88 5e40204d 5e83d600 00000000 5e4029bb
03-23 13:50:55.917: I/DEBUG(253): 5eb14a98 00000000 80000000 438ef91f c30abcc1
03-23 13:50:55.917: I/DEBUG(253): 5eb14aa8 5e83d600 5eb14b08 5eb14b14 5e42a129
03-23 13:50:55.917: I/DEBUG(253): 5eb14ab8 41af80da 44904cb2 5e7aa190 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14ac8 00000000 43e10000 42610000 5e69c300
03-23 13:50:55.917: I/DEBUG(253): 5eb14ad8 5e3f5a27 5e83d600 668b8f90 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14ae8 00000000 5e409b35 5e7aa190 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14af8 00000000 43e10000 42610000 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14b08 5e7aa190 41af80da 44904cb2 43e10000
03-23 13:50:55.917: I/DEBUG(253): 5eb14b18 42610000 3d4ccc00 3d87cfa2 621c6140
03-23 13:50:55.917: I/DEBUG(253): 5eb14b28 3d87cfa2 00000000 00000000 5e3f6e4b
03-23 13:50:55.917: I/DEBUG(253): 5eb14b38 5e9110b0 65552f98 3c8b0af6 5e3f76df
03-23 13:50:55.917: I/DEBUG(253): 5eb14b48 5e3f7625 5e912298 5e808040 00000000
03-23 13:50:55.917: I/DEBUG(253): 5eb14b58 5ea14f44 5e3f4957 583103d0 5e44123d
03-23 13:50:55.917: I/DEBUG(253): code around pc:
03-23 13:50:55.917: I/DEBUG(253): 5e6e810c 384e0045 736f7243 70704173 41433031
03-23 13:50:55.917: I/DEBUG(253): 5e6e811c 656c6143 7261646e 00000045 ffff0000
03-23 13:50:55.917: I/DEBUG(253): 5e6e812c 384effff 736f7243 70704173 41433531
03-23 13:50:55.917: I/DEBUG(253): 5e6e813c 6976614e 69746167 61426e6f 4e004572
03-23 13:50:55.917: I/DEBUG(253): 5e6e814c 6f724338 70417373 41433870 42626154
03-23 13:50:55.917: I/DEBUG(253): 5e6e815c 00457261 ffffffff 00000000 7243384e
03-23 13:50:55.917: I/DEBUG(253): 5e6e816c 4173736f 43387070 74754241 456e6f74
03-23 13:50:55.917: I/DEBUG(253): 5e6e817c 43384e00 73736f72 39707041 6f434143
03-23 13:50:55.917: I/DEBUG(253): 5e6e818c 6f72746e 0000456c 00000000 ffffff00
03-23 13:50:55.917: I/DEBUG(253): 5e6e819c 4effffff 6f724338 70417373 43303170
03-23 13:50:55.917: I/DEBUG(253): 5e6e81ac 6f725041 73657267 ff004573 00ffffff
03-23 13:50:55.917: I/DEBUG(253): 5e6e81bc 4e000000 6f724338 70417373 43383170
03-23 13:50:55.917: I/DEBUG(253): 5e6e81cc 67655341 746e656d 6f436465 6f72746e
03-23 13:50:55.917: I/DEBUG(253): 5e6e81dc 4e00456c 6f724338 70417373 41433870
03-23 13:50:55.917: I/DEBUG(253): 5e6e81ec 64696c53 00457265 00000000 7243384e
03-23 13:50:55.917: I/DEBUG(253): 5e6e81fc 4173736f 43387070 69775341 45686374
03-23 13:50:55.917: I/DEBUG(253): code around lr:
03-23 13:50:55.917: I/DEBUG(253): 5e402044 47981c20 bd381c28 1c04b538 fa11f7f4
03-23 13:50:55.917: I/DEBUG(253): 5e402054 d0051e05 23ad6822 58d3009b 47981c20
03-23 13:50:55.927: I/DEBUG(253): 5e402064 bd381c28 e59fc008 e08fc00c e2400f93
03-23 13:50:55.927: I/DEBUG(253): 5e402074 e12fff1c 00000009 2393b538 1c04009b
03-23 13:50:55.927: I/DEBUG(253): 5e402084 f00618c0 1e05ff89 f7f1d010 6b80ff81
03-23 13:50:55.927: I/DEBUG(253): 5e402094 d00b2800 21006803 4798695b 009b23ab
03-23 13:50:55.927: I/DEBUG(253): 5e4020a4 210058e0 33f46803 4798681b bd381c28
03-23 13:50:55.927: I/DEBUG(253): 5e4020b4 1c04b537 f8b0f027 d0152800 490b6822
03-23 13:50:55.927: I/DEBUG(253): 5e4020c4 009b2396 447958d5 a801466a fc9ef283
03-23 13:50:55.927: I/DEBUG(253): 5e4020d4 f00aa801 f01bfca1 1c01f98a 47a81c20
03-23 13:50:55.927: I/DEBUG(253): 5e4020e4 f282a801 2001fd85 46c0bd3e 002de9ab
03-23 13:50:55.927: I/DEBUG(253): 5e4020f4 1c04b5f7 fdb6f7fb 00892193 f0061860
03-23 13:50:55.927: I/DEBUG(253): 5e402104 4b49ff75 008921c1 681b447b 25004e47
03-23 13:50:55.927: I/DEBUG(253): 5e402114 32081c1a 185a6022 008921cb 185a6262
03-23 13:50:55.927: I/DEBUG(253): 5e402124 22d162a2 189b0092 00922293 239450a3
03-23 13:50:55.927: I/DEBUG(253): 5e402134 50e5009b 447e2395 1c31009b 466a18e0
03-23 13:50:55.927: I/DEBUG(253): memory map around fault addr 5e402029:
03-23 13:50:55.927: I/DEBUG(253): 5e070000-5e211000 r-- /data/dalvik-cache/data@app@[email protected]
03-23 13:50:55.927: I/DEBUG(253): 5e211000-5e789000 r-x /data/app-lib/com.guodong.gdlife-2/libCrossApp_cpp.so
03-23 13:50:55.927: I/DEBUG(253): 5e789000-5e78a000 ---
没有做过手机应用。我用的是JS版,现在大概知道怎么用API。但是如果官方能有一个项目结构的例子会比较好。或者也可以参考CPP的结构,希望能整理出来。
the app will not work when i have more than 5 6 TabBarItem.
i think it should put inside scrollview or something like it
只看到CPP的
当addButton超过1屏之后,滑动屏幕,会有数据缓存重复问题
readme 页面能否放些有用的资料文档等资源的链接,论坛什么的都行,版本更新日志可以单独文件放置。毕竟关系更新日志的不是大多数。
这个项目真的不错,但是找资料比较麻烦,希望开发人员考虑下我的建议。
祝crossApp越来越好!
FLT_MIN和FLT_MAX这两条宏在C标准头文件float.h当中
I would like to point out that identifiers like "__CROSSAPP_H__
" and "__CCDIRECTOR_H__
" do not fit to the expected naming convention of the C++ language standard.
Would you like to adjust your selection for unique names?
CAPageView 在创建时指定了frame,如果运行中动态修改frame大小会出现显示异常,跟踪到CAPageView 发现setFrame方法直接调用了CAView的setFrame,并没有在setFrame时调用setViewSize重置滚动区域大小。
问题表现,创建一个pageView 后 动态修改frame大小,这时按住pageView里面的内容拖拽就能拖动到任意位置。
project-creator.exe 好像是产生C++的。
在1.01和0.61的这些版本都有设置文字水平居中问题。
目前发现只在CADrawerController 中的2个controller里面添加使用CALabel控件有问题
void ShaderTestViewController::viewDidLoad(){
CCSize winSize = this->getView()->getBounds().size;
CAImageView *bg = CAImageView::createWithImage(CAImage::create("HelloWorld.png"));
this->getView()->addSubview(bg);
std::string imagePath = CCFileUtils::sharedFileUtils()->getWritablePath() + "image/HelloWorld.png";
bg->getImage()->saveToFile(imagePath);
}
如上代码将图片调用saveToFile保存到proj.win32\Debug.win32\image\HelloWorld.png但是这个文件打不开
想体验下,可是 几百兆 GitHub下下来估计。。。
CrossApp/shaders/ 下的CAtransformation.cpp应该为CATransformation.cpp,其中t应为大写,否则会导致linux下编译失败。
没找到js入口, Classes文件夾下面仍然是cpp代码,这是怎麼回事?
错误信息:
CrossApp/samples/multi-platform-cpp/proj.android/../../../cocos2dx/actions/CCActionManager.cpp:30:25: fatal error: CAScheduler.H: No such file or directory
使用ubuntu command line 编译
下载最新的CrossApp 0.3.1 使用两种方式创建的工程,编译都不通过,如何解决?
尝试几次都是同样的两个错误,
编译环境:Visual Studio Ultimate 2013
工程语言:Javascript
CrossApp版本:0.3.1
错误信息:
1.错误 49 error C2039: “isTextTagEqual”: 不是“CrossApp::CAButton”的成员 e:\crossapp\crossappdemo\crossapp\scripting\javascript\bindings\generated\jsb_crossapp_auto.cpp 7819 1 libJSBinding
2.错误 51 error LNK1104: 无法打开文件“libJSBinding.lib” E:\crossApp\crossappdemo\CrossApp\projects\crm\proj.win32\LINK crm
望解决或者提供下解决方案,谢谢。
当添加一个Controller时候,偶尔出现
Assert failed: Could not attach Image to framebuffer
错误
CALabel setText时如果有 \n 就会崩溃,如下:
CALabel *label = CALabel::createWithFrame(CCRect(0, 0, 200, 40));
label->setText("a\na");
this->getView()->addSubview(label);
这段代码运行就会崩溃
extensions/network/HttpClient.cpp的 processPostFileTask 方法
在上传头像文件时发生崩溃,打印日志发现崩溃在
int requestDataSize = request->getRequestDataSize();
这句话,因为我上传头像时没有post任何其他数据。
调用这句话前是不是应该先getRequestData获取一下post数据的大小,如果为0,postdata就不用处理了,我这样修改了一下
int requestDataSize = request->getRequestDataSize();
if (requestDataSize > 0){
std::string strReq = request->getRequestData();
std::vector<std::string> vv = CrossApp::Parse2StrVector(strReq, "&");
for (int i = 0; i < vv.size(); i++)
{
std::vector<std::string> v = CrossApp::Parse2StrVector(vv[i], "=");
if (v.size() == 2)
{
curl_formadd(&pFormPost, &pLastElem, CURLFORM_COPYNAME, v[0].c_str(), CURLFORM_COPYCONTENTS, v[1].c_str(), CURLFORM_END);
}
}
}
我需要同時支持浏览器打开
如果一个view的parent是一个viewcontroller,并且设置它的viewdelegate也是这个controller的话,就会陷入死循环。建议,当一个view设置了delegate的时候,获取Responder*的时候,作一下判断,看delegate是否已经添加到返回的vector中。
如:
。。。
if (view->getViewDelegate())
{
nextResponder = view->nextResponder();
std::vector<CAResponder*>::reverse_iterator itrtemp;
//delegateAlreadyCounted = false;
for (itrtemp = vector.rbegin(); itrtemp!=vector.rend(); itrtemp++) {
if (nextResponder == *itrtemp) {
//delegateAlreadyCounted = true;
nextResponder = NULL;
break;
}
}
}
。。。
CADatePickerView setDate后并不会显示到设置的日期,而是显示1900年1月1日,在win32下CADatePickerView不能正常使用
0.4.1在vs2013中编译时报错 无法打开WinSock2.h
CAImageCache::sharedImageCache()->addImageFullPathAsync()方法
callback回调返回的图片显示不正常
编译报错
Android NDK: ERROR:D:/CrossApp-master/CrossApp/platform/third_party/android/prebuilt/libfreetype2/Android.mk:cocos_freetype2_static: LOCAL_SRC_FILES points to a missing file
D:/home/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
Android NDK: Check that D:/CrossApp-master/CrossApp/platform/third_party/android/prebuilt/libfreetype2/libs/x86/libfreetype2.a exists or that its path is correct
如何调用第三方库如:百度地图、微信支付、支付宝支付库?有什么解决方案吗?
Error occured at CATextField* textField = CATextField::createWithCenter(CCRect(size.width_0.5, size.height_0.2, size.width_0.6, size.height_0.05)); in TextFieldTest.cpp
The following is the exception:
Unhandled exception at 0x0F8AF8F6 (libCrossApp.dll) in HelloCpp.exe: 0xC0000005: Access violation reading location 0x0000003A.
Using Windows 7 Visual Studio 2012
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.