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 may fail on Windows 10 #44

Closed
felipenoris opened this issue Apr 23, 2019 · 11 comments
Closed

build may fail on Windows 10 #44

felipenoris opened this issue Apr 23, 2019 · 11 comments
Labels

Comments

@felipenoris
Copy link
Owner

Mongoc package build fails on Windows 10, because libmongoc can't be dlopened.

Mongoc\deps\usr\bin\libmongoc-1.0.dll cannot be dlopen'ed
@felipenoris
Copy link
Owner Author

There's a possibility to change the builder to use mingw instead of Visual Studio, but I got stuck in https://jira.mongodb.org/browse/CDRIVER-3082 .

@felipenoris felipenoris added the bug Something isn't working label Apr 25, 2019
@felipenoris
Copy link
Owner Author

Also opened this issue regarding the use of Visual Studio and Appveyor to build binaries: https://jira.mongodb.org/browse/CDRIVER-3098.

@felipenoris
Copy link
Owner Author

Today I was able to compile libmongoc on a Windows 10 machine. On the same machine, I couldn't dlopen the library. So I guess this is an upstream issue.

@felipenoris felipenoris added upstream and removed bug Something isn't working labels Apr 27, 2019
@ziong
Copy link

ziong commented Oct 31, 2019

i found that libmongoc-1.0.dll cannot be loaded when building the package.
ERROR: LoadError: LibraryProduct(nothing, ["libmongoc"], :libmongoc, "Prefix(C:\\Users\\?????\\.julia\\packages\\Mongoc\\DdY9i\\deps\\usr)") is not satisfied, cannot generate deps.jl!
This is because some dlls are missing.
copy these to [Mongoc package directory]/deps/usr/bin (alongside to libmongoc-1.0.dll):

  • libzstd.dll
  • ucrtbased.dll
  • vcruntime140d.dll

and ]build Mongoc again.

I think it's because MVS is missing on the machine.
Hope this help.

@vilim
Copy link

vilim commented Mar 5, 2020

I installed Mongoc without any issues now on Windows 10

@felipenoris
Copy link
Owner Author

@vilim good to hear that! Which version of Julia are you using? Can you post the result of versioninfo() here?

@felipenoris felipenoris changed the title build fails on Windows 10 build may fail on Windows 10 Mar 5, 2020
@vilim
Copy link

vilim commented Mar 5, 2020

This is the output

Julia Version 1.3.0
Commit 46ce4d7933 (2019-11-26 06:09 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
  JULIA_NUM_THREADS = 20

@rapus95
Copy link

rapus95 commented Mar 22, 2020

How about building onto the artifact system? I.e. request a build from https://github.com/JuliaPackaging/Yggdrasil and use it as a jll package.

@waqasahmad531
Copy link

I installed Mongoc without any issues now on Windows 10

Can someone please share the complete procedure?

I have tried to install it few months ago but after many futile attempts I decided to delay learning Julia. But, now I am trying again and still no luck.

@aviks
Copy link
Contributor

aviks commented Jun 7, 2020

Might be fixed by #67

@felipenoris
Copy link
Owner Author

Should be fixed by #67 now.

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

No branches or pull requests

6 participants