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

Building fails on windows for Julia 1.4 #5

Closed
shipengcheng1230 opened this issue Mar 22, 2020 · 3 comments
Closed

Building fails on windows for Julia 1.4 #5

shipengcheng1230 opened this issue Mar 22, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@shipengcheng1230
Copy link
Owner

No description provided.

@shipengcheng1230 shipengcheng1230 added the help wanted Extra attention is needed label Mar 22, 2020
@shipengcheng1230
Copy link
Owner Author

shipengcheng1230 commented Apr 22, 2020

julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

julia> pwd()
"C:\\Users\\User\\AppData\\Local\\Programs\\Julia\\Julia-1.4.1"

julia> cd(raw"C:\Users\User\Downloads\gmsh-4.5.6-Windows64-sdk\gmsh-4.5.6-Windows64-sdk\lib")

julia> cd(readdir, ".")
4-element Array{String,1}:
 "gmsh-4.5.dll"
 "gmsh.jl"
 "gmsh.lib"
 "gmsh.py"

julia> include("gmsh.jl")
Main.gmsh

julia> gmsh.initialize()
ERROR: could not load library ""
The parameter is incorrect.
Stacktrace:
 [1] initialize(::Array{String,1}, ::Bool) at C:\Users\User\Downloads\gmsh-4.5.6-Windows64-sdk\gmsh-4.5.6-Windows64-sdk\lib\gmsh.jl:39
 [2] initialize() at C:\Users\User\Downloads\gmsh-4.5.6-Windows64-sdk\gmsh-4.5.6-Windows64-sdk\lib\gmsh.jl:38
 [3] top-level scope at REPL[7]:1

julia> dlopen("gmsh-4.5.dll")
Ptr{Nothing} @0x00000000365b0000

julia> find_library(["gmsh-4.5"], [pwd()])
""

@shipengcheng1230
Copy link
Owner Author

julia> cd(raw"C:\Users\User\Downloads\gmsh-4.5.6-Windows64-sdk\gmsh-4.5.6-Windows64-sdk\lib")

julia> include("gmsh.jl")
Main.gmsh

julia> gmsh.initialize()

julia> gmsh.model.mesh.getElementProperties(5)
("Hexahedron 8", 3, 1, 8, [-1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, -1.0, -1.0    1.0, 1.0, -1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0], 8)

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

julia>         

@shipengcheng1230
Copy link
Owner Author

Temporarily solved by applying a patch to force change libname = "libgmsh" on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant