我需要做什么才能在 Azure 上的 webrole 中运行 Spatialite?
我一直在研究在Azure上使用spatialite。 SpatiaLite 2.3.1 处的预编译二进制文件均适用于 x86 并尝试包含 libspatialite -1.dll 当然不会工作,因为 Azure 需要 x64。
我只是错过了一些简单的东西,还是我需要尝试将二进制文件编译成 x64 dll?这是我应该走的路吗?
任何有关在 Azure 中运行 SpatiaLite 的指南或教程链接将不胜感激。
I've been looking into using spatialite on Azure. The precompiled binaries at SpatiaLite 2.3.1 are all for x86 and trying to include libspatialite-1.dll of course won't work since Azure requires x64.
Am I just missing something simple, or do I need to try to compile the binaries into a x64 dll? Is that a path I should go down?
Any guidance or link to a tutorial to get SpatiaLite running in Azure would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我对 Azure 的理解,您需要将 SpatiaLite 程序集重新编译为 x64/AnyCPU dll。此外,如果 SpatiaLite 程序集引用任何 x32 程序集,则也需要重新编译这些程序集才能使其在 Azure 中工作。
http://blogs.msdn.com/b/haniatassi/archive/2009/03/20/using-a-32bit-dll-in-the-windows-azure.aspx
有是重新编译程序集的替代方法,但它相当复杂。
http://social.msdn.microsoft.com/Forums/en/windowsazuredevelopment/thread/43721d3c-f6e5-4f72-8c62-39904156c042
From my understanding of Azure, you will need to recompile the SpatiaLite assemblies into a x64/AnyCPU dll. Also if the SpatiaLite assemblies make reference to any x32 assemblies, these too will need to be recompiled in order to get it working in Azure.
http://blogs.msdn.com/b/haniatassi/archive/2009/03/20/using-a-32bit-dll-in-the-windows-azure.aspx
There are alternatives to recompiling your assemblies, but its quite complex.
http://social.msdn.microsoft.com/Forums/en/windowsazuredevelopment/thread/43721d3c-f6e5-4f72-8c62-39904156c042