JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
755 stars 107 forks source link

Cxx throws error on windows as libcxxffi not found #475

Closed rick2047 closed 4 years ago

rick2047 commented 4 years ago

I am using Cxx on windows, but it throws the following error


julia> using Cxx
[ Info: Precompiling Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2]
ERROR: LoadError: LoadError: could not load library "C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\..\deps\usr\bin\libcxxffi"
The specified procedure could not be found. 
Stacktrace:
 [1] dlopen(::String, ::UInt32; throw_error::Bool) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109
 [2] dlopen at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.4\Libdl\src\Libdl.jl:109 [inlined]
 [3] init_libcxxffi() at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\initialization.jl:23 
 [4] top-level scope at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\initialization.jl:25  
 [5] include(::Module, ::String) at .\Base.jl:377
 [6] include(::String) at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\Cxx.jl:144
 [7] top-level scope at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\Cxx.jl:170
 [8] include(::Module, ::String) at .\Base.jl:377
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:331 [inlined]
 [11] eval(::Expr) at .\client.jl:449
 [12] top-level scope at .\none:3
in expression starting at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\initialization.jl:25
in expression starting at C:\Users\paresh\.julia\packages\Cxx\1RaOv\src\Cxx.jl:170
ERROR: Failed to precompile Cxx [a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2] to C:\Users\paresh\.julia\compiled\v1.4\Cxx\ESGkI_RCdYI.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
 [3] _require(::Base.PkgId) at .\loading.jl:1029
 [4] require(::Base.PkgId) at .\loading.jl:927
 [5] require(::Module, ::Symbol) at .\loading.jl:922

I installed it by standard means, using add Cxx. I even tried executing build Cxx. How do I solve this?

rick2047 commented 4 years ago

Sorry did not see it was a duplicate of this https://github.com/JuliaInterop/Cxx.jl/issues/469