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

Build error #20

Open
behzaadh opened this issue Feb 13, 2024 · 5 comments
Open

Build error #20

behzaadh opened this issue Feb 13, 2024 · 5 comments

Comments

@behzaadh
Copy link

Hello,

I am getting the following error during the compiling library:
libcxxwrap-julia\include\jlcxx\attr.hpp(139,27): error C2027: use of undefined type 'jlcxx::detail::process_attribute<bool,void>'
Do you think it is because the master version of libcxxwrap-julia?

@behzaadh
Copy link
Author

behzaadh commented Feb 14, 2024

Apparently the library is not compatible with latest version of libcxxwrap-julia

@behzaadh
Copy link
Author

behzaadh commented Feb 19, 2024

By fixing the compatibility issue between libcxxwrap-julia and CxxWrap, I managed to compile. By setting up Overrides.toml, everything works as it should work. However, I don't know why I am not able to run QML.jl. I get the following error ERROR: InitError: Unregistered method with key (:constructor, :QObject, :QML, 0x449b7e5b89ee04fd) requested, maybe you need to precompile the Julia module?

barche added a commit that referenced this issue Feb 20, 2024
@barche
Copy link
Collaborator

barche commented Feb 20, 2024

Not sure what the last error is about, possibly still an incompatibility between libcxxwrap and CxxWrap.jl versions. I have committed a fix for jlqml to build against the latest libcxxwrap, it should now be possible to use this with CxxWrap#testjll and by setting the QML.jl CxxWrap compat to 0.15.

@behzaadh
Copy link
Author

behzaadh commented Feb 22, 2024

I don't think it is because of an incompatibility between libcxxwrap and CxxWrap.jl versions since I am able to run QML examples but not be able to export packages QML.jl. Actually, even without compiling and using the pre-compiled package, it gives the same error.

@behzaadh
Copy link
Author

behzaadh commented Feb 22, 2024

I realized that the function called _get_function_pointer(mkey) inside CxxWrap.jl gives the aforementioned error:
function _get_function_pointer(mkey) if !haskey(__global_method_map, mkey) error("Unregistered method with key $mkey requested, maybe you need to precompile the Julia module?") end return __global_method_map[mkey] end

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

2 participants