-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
gdal-async is not compatible with Electron #28
Comments
@tris-g, this will have to be postponed for 3.5.
|
@tris-g, I have added an Electron guide, including an example application While Linux and macOS are relatively straightforward, Windows remains very problematic - you will have to either rebuild Electron from source or rebuild libc++ - which is still considered experimental - on Windows |
Hello Momtchev, I follow your electron example, I'm a little bit confused, to use gdal-async in windows 10, do I need to rebuild electron from source using visual studio, or just rebuild libc++ using visual studio? My electron version is 19.0.7. |
You need to rebuild both - unless you can find a binary of libc++ that works with visual studio. This build is not for the faint of heart. |
Hello Momtchev, I rebuilt electron 19.0.1 and libc++ on windows using clang, And then I follow your tips which provided in electron examples. However I still got link error——unresolved external symbol of 'GetBackingStore'。Did I miss something? |
You didn't build it with |
Do you mean built libc++ with Visual Studio using clang compiler, and then link gdal.node with that libc++.lib? |
If you can build libc++ with Visual Studio - it might be possible to link it - but normally libc++ has better clang support - and even this is somewhat experimental. Alas, they still do not distribute binaries. Refer to electron/electron#29893 for more information, the subject has been extensively debated in the Electron community and goes far beyond |
@mmomtchev After fighting the compilation of gdal-async for several days, I decided to give up. |
Only the Electron version matters - all versions of gdal-async should work |
Only Electron? It has nothing to do with nan? Somebody said nan after 2.15.0 use "GetBackingStore" api which is defined in new version of v8 which is integrated in electron. BTW which version of electron under 13.0.0 is best suitable for gdal-async? |
Nan has a conditional compilation depending on the V8 version - which is determined by the Electron version. Get the last one before the new |
@mmomtchev |
This continues to be a huge problem on Windows - where Electron is built with a different C++ runtime from Node.js - and cannot be cleanly solved until #35 |
zlib
which GDAL usesOpenSSL
which GDAL usesGetBackingStore
V8 API[Bug]: Link error for native c++ modules electron/electron#29893
The text was updated successfully, but these errors were encountered: