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

Error in AnimateLibraryExporter when compiled to Windows target #21

Open
twilson90 opened this issue Sep 15, 2022 · 0 comments
Open

Error in AnimateLibraryExporter when compiled to Windows target #21

twilson90 opened this issue Sep 15, 2022 · 0 comments

Comments

@twilson90
Copy link

I thought I'd try compiling the swf lib to Windows for a slight speed up, I encountered this error:

Error: AnimateLibraryExporter.cpp
./src/swf/exporters/AnimateLibraryExporter.cpp(1582): error C2664: 'hx::ObjectPtr<lime::tools::Asset_obj> lime::tools::Asset_obj::__alloc(hx::Ctx *,String,String,lime::tools::AssetType,Dynamic,hx::Null<bool>)': cannot convert argument 4 from 'String' to 'lime::tools::AssetType'
./src/swf/exporters/AnimateLibraryExporter.cpp(1582): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called  
include\lime/tools/Asset.h(32): note: see declaration of 'lime::tools::Asset_obj::__alloc'

It's having trouble converting openfl.utils.AssetType to lime.tools.AssetType, which is confusing as the cast appears to be working on Neko and Hashlink targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant