Extensions for Cocos2dx: Dynamic Font Management, HTML Widget, Powerful Asset Management...
- CCHTMLLabel Sample:
Extensions for Cocos2dx: Dynamic Font Management, HTML Widget, Powerful Asset Management...
FIXED:
bool CUtils::access(const char* path, int mode)
{
return ::_access(path, mode) == 0;
return ::access(path, mode) == 0;
}
When I Compile the extension with NDK-build
, a error come:
[armeabi] Compile++ thumb: cocos_extension_static <= CCRichOverlay.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCRichParser.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCell.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCells.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCreationFactory.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CCreationWorker.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CDownloader.cpp
[armeabi] Compile++ thumb: cocos_extension_static <= CUtils.cpp
D:\greeApps\cocos2d-x-2.2.2/extensions/./cells/CUtils.cpp: In static member function 'static bool cells::CUtils::access(const char*, int)':
D:\greeApps\cocos2d-x-2.2.2/extensions/./cells/CUtils.cpp:312:9: error: '::_access' has not been declared
return ::_access(path, mode) == 0;
^
make.exe: *** [obj/local/armeabi/objs/cocos_extension_static/./cells/CUtils.o] Error 1
so, where does the _access
defined?
hi, i have used your htmllabel,
could you please add some examples?
the code as belows:
CCSize winsize = CCDirector::sharedDirector()->getWinSize();
CCHTMLLabel* pLabel2 = CCHTMLLabel::createWithString("<font color="#FF0000">TestHTMLLabel", CCSize(200,200),DFONT_DEFAULT_FONTALIAS);
pLabel2->setAnchorPoint(ccp(0,0));
pLabel2->setPosition( ccp(winsize.width / 2, winsize.height / 3) );
this->addChild(pLabel2);
it doesn't show anything.
could please figure it out?
thanks
Andriod上面显示的时候,文字上面有时候出现线条
libfreetype.a
i don't found the < ft2build.h> head file in cocos2d-x's third_party directory,but i see your picture show is on windows.,my cocos2d-x version is 2.2.1
1.我用2.1.4版本在window下编译能够成功,2.2.4出现错误:
(md5.c 和 zpip.h) 预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)
2.在csdn下方有些人反馈,该扩展有内存泄漏问题,不知道解决了没有?
I can not use iOS system font with this framework. Or maybe I just did not find out the right way.
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.