Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler errors with AX_EXT_HINT and lua #1943

Closed
iAndyHD3 opened this issue May 30, 2024 · 0 comments
Closed

compiler errors with AX_EXT_HINT and lua #1943

iAndyHD3 opened this issue May 30, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@iAndyHD3
Copy link
Contributor

iAndyHD3 commented May 30, 2024

  • axmol version: 2.1.3
  • devices test on: Windows

With the option AX_EXT_HINT enabled and using lua, the lua bindings for cocos studio are not disabled.

Reproduce:
generate lua project
add set(AX_EXT_HINT OFF) to CMakeLists.txt
use axmol build to build

Errors:

lld-link: error: undefined symbol: public: static class cocostudio::timeline::ActionTimelineCache * __cdecl cocostudio::timeline::ActionTimelineCache::getInstance(void)
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_studio_ActionTimelineCache_getInstance(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl cocostudio::ArmatureAnimation::setMovementEventCallFunc(class std::function<void __cdecl(class cocostudio::Armature *, enum cocostudio::MovementEventType, class std::basic_string_view<char, struct std::char_traits<char>>)>)
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_ArmatureAnimation_setMovementEventCallFunc(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl cocostudio::ArmatureAnimation::setFrameEventCallFunc(class std::function<void __cdecl(class cocostudio::Bone *, class std::basic_string_view<char, struct std::char_traits<char>>, int, int)>)
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_ArmatureAnimation_setFrameEventCallFunc(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl cocostudio::ArmatureDataManager::addArmatureFileInfoAsync(class std::basic_string_view<char, struct std::char_traits<char>>, class ax::Object *, void (__cdecl ax::Object::*)(float))
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl cocostudio::ArmatureDataManager::addArmatureFileInfoAsync(class std::basic_string_view<char, struct std::char_traits<char>>, class std::basic_string_view<char, struct std::char_traits<char>>, class std::basic_string_view<char, struct std::char_traits<char>>, class ax::Object *, void (__cdecl ax::Object::*)(float))
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_ArmatureDataManager_addArmatureFileInfoAsyncCallFunc(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl cocostudio::timeline::ActionTimeline::setFrameEventCallFunc(class std::function<void __cdecl(class cocostudio::timeline::Frame *)>)
>>> referenced by axlua.lib(axlua_cocostudio_manual.cpp.obj):(int __cdecl axlua_ActionTimeline_setFrameEventCallFunc(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl ax::extension::AssetsManager::setDelegate(class ax::extension::AssetsManagerDelegateProtocol *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(int __cdecl axlua_AssetsManager_setDelegate(struct lua_State *))

lld-link: error: undefined symbol: public: static class ax::extension::EventListenerAssetsManagerEx * __cdecl ax::extension::EventListenerAssetsManagerEx::create(class ax::extension::AssetsManagerEx *, class std::function<void __cdecl(class ax::extension::EventAssetsManagerEx *)> const &)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(int __cdecl axlua_Extension_EventListenerAssetsManagerEx_create(struct lua_State *))

lld-link: error: undefined symbol: public: static class ax::extension::TableView * __cdecl ax::extension::TableView::create(class ax::extension::TableViewDataSource *, class ax::Vec2)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(int __cdecl axlua_extension_TableView_create(struct lua_State *))

lld-link: error: undefined symbol: public: void __cdecl ax::extension::TableView::reloadData(void)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(int __cdecl axlua_extension_TableView_create(struct lua_State *))
>>> referenced by axlua.lib(axlua_extension_auto.cpp.obj):(int __cdecl lua_ax_extension_TableView_reloadData(struct lua_State *))

lld-link: error: undefined symbol: public: static class ax::extension::TableView * __cdecl ax::extension::TableView::create(class ax::extension::TableViewDataSource *, class ax::Vec2, class ax::Node *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(int __cdecl axlua_extension_TableView_create(struct lua_State *))

lld-link: error: undefined symbol: public: virtual void __cdecl ax::extension::TableViewDelegate::tableCellHighlight(class ax::extension::TableView *, class ax::extension::TableViewCell *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const ax::extension::TableViewDelegate::`vftable')

lld-link: error: undefined symbol: public: virtual void __cdecl ax::extension::TableViewDelegate::tableCellUnhighlight(class ax::extension::TableView *, class ax::extension::TableViewCell *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const ax::extension::TableViewDelegate::`vftable')

lld-link: error: undefined symbol: public: virtual void __cdecl ax::extension::TableViewDelegate::tableCellWillRecycle(class ax::extension::TableView *, class ax::extension::TableViewCell *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const ax::extension::TableViewDelegate::`vftable')

lld-link: error: undefined symbol: public: virtual class ax::Vec2 __cdecl ax::extension::TableViewDataSource::cellSizeForTable(class ax::extension::TableView *)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const LUA_TableViewDataSource::`vftable'{for `ax::extension::TableViewDataSource'})
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const ax::extension::TableViewDataSource::`vftable')

lld-link: error: undefined symbol: public: virtual class ax::Vec2 __cdecl ax::extension::TableViewDataSource::tableCellSizeForIndex(class ax::extension::TableView *, __int64)
>>> referenced by axlua.lib(axlua_extension_manual.cpp.obj):(const ax::extension::TableViewDataSource::`vftable')

lld-link: error: undefined symbol: public: class spine::Animation * __cdecl spine::TrackEntry::getAnimation(void)
>>> referenced by axlua.lib(axlua_spine_manual.cpp.obj):(int __cdecl executeSpineEvent(class LuaSkeletonAnimation *, int, enum spine::EventType, class spine::TrackEntry *, class spine::Event *))
>>> referenced by axlua.lib(axlua_spine_manual.cpp.obj):(int __cdecl executeSpineEvent(class LuaSkeletonAnimation *, int, enum spine::EventType, class spine::TrackEntry *, class spine::Event *))

lld-link: error: undefined symbol: public: class spine::String const & __cdecl spine::Animation::getName(void)
>>> referenced by axlua.lib(axlua_spine_manual.cpp.obj):(int __cdecl executeSpineEvent(class LuaSkeletonAnimation *, int, enum spine::EventType, class spine::TrackEntry *, class spine::Event *))

lld-link: error: undefined symbol: public: int __cdecl spine::TrackEntry::getTrackIndex(void)
>>> referenced by axlua.lib(axlua_spine_manual.cpp.obj):(int __cdecl executeSpineEvent(class LuaSkeletonAnimation *, int, enum spine::EventType, class spine::TrackEntry *, class spine::Event *))

lld-link: error: undefined symbol: public: float __cdecl spine::TrackEntry::getTrackTime(void)
>>> referenced by axlua.lib(axlua_spine_manual.cpp.obj):(int __cdecl executeSpineEvent(class LuaSkeletonAnimation *, int, enum spine::EventType, class spine::TrackEntry *, class spine::Event *))

lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
@halx99 halx99 added the help wanted Extra attention is needed label Jun 6, 2024
@halx99 halx99 closed this as completed in 0b2e9d0 Jul 8, 2024
@halx99 halx99 added this to the 2.1.4 milestone Jul 8, 2024
@halx99 halx99 added enhancement New feature or request and removed help wanted Extra attention is needed labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants