JuliaGraphics / jlqml

C++ component of the QML.jl package
Other
9 stars 4 forks source link

Build error #20

Open behzaadh opened 8 months ago

behzaadh commented 8 months ago

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 commented 8 months ago

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

behzaadh commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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