-
Notifications
You must be signed in to change notification settings - Fork 11
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
Win 32 Build #3
Comments
Thank you. The symbols problem likely needs fixing in Mapnik core by adding MAPNIK_DECL to a few more headers that the nni bindings use. |
oook, Thanks for the answer ! I quickly checked the header to see what was this MAPNIK_DECL about but ... it's beyond my c++ knowledge. |
On the off-chance that someone is looking for a Windows build, I have gotten my Mapnik 3-based fork of mapnik-jni to compile on Windows. I have committed the MSVC 2015 project to my branch here: https://github.com/jlnr/mapnik-jni/tree/msvc-2015 It assumes that the 64-bit Mapnik 3.0 SDK linked in this comment is extracted next to the It also expects the 64-bit JDK 8u60 to be installed in the default location ( jlnr@1016eb0#diff-b0df432f8c3bd5e07c6ee970a0784777R45 The generated HTH. |
How do I get the 'mapnik-jni.dll'? Thanks! |
But when I build it with Visual Studio 2019, it has a error in mapnik/feature.hpp/line108: |
Thanks for the answer !
But when I build it with Visual Studio 2019, it has a error in mapnik/feature.hpp/line108:
错误 C2664 “mapnik::geometry::geometry<double>::geometry(const mapnik::geometry::geometry<double> &)”: 无法将参数 1 从“mapnik::geometry::geometry_empty”转换为“mapbox::util::no_init” mapnik-jni D:\mapnik-jni-master\mapnik-windows-master\mapnik-windows-master\include\mapnik\feature.hpp 108
…------------------ 原始邮件 ------------------
发件人: "Julian Raschke"<[email protected]>;
发送时间: 2019年12月27日(星期五) 凌晨4:24
收件人: "springmeyer/mapnik-jni"<[email protected]>;
抄送: "无敌草上飞"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [springmeyer/mapnik-jni] Win 32 Build (#3)
By building it with the instructions I've posted above.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, no idea. The mapnik interfaces have probably changed since I've last compiled mapnik-jni. If you can find an older Windows build of mapnik somewhere (from around 2015), you might be able to make it work with that. |
I have changed many versions, but the compilation has not been successful. Could you please send the compiled mapnik-jni.dll to my mailbox? thank you very much! My email is [email protected] 原始邮件 ------------------
发件人: "Julian Raschke"<[email protected]>
发送时间: 2019年12月27日(星期五) 下午4:48
收件人: "springmeyer/mapnik-jni"<[email protected]>;
抄送: "Andy511823558"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [springmeyer/mapnik-jni] Win 32 Build (#3)
Sorry, no idea. The mapnik interfaces have probably changed since I've last compiled mapnik-jni. If you can find an older Windows build of mapnik somewhere (from around 2015), you might be able to make it work with that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sorry, I don't have a compiled mapnik-jni.dll anymore, and I doubt it would be compatible with a different version of Mapnik anyway. |
There are no instruction to build the mapnik-jni.dll for win 32.
I am trying to do it but I'm facing some errors.
Here are the steps I followed, this can be a base for a further complete build procedure under windows.
Environment
Build steps
I have been using MS VC++ 2010 through it's GUI (not the command line)
It would be nice to have a command line for automated build though.
be sure to modify and use the " release " build configuration and not the " debug "
add include directories
(C/C++ -> General -> other Include directories)
add the following :
E:\_WORK\mapnik-2.1\mapnik-jni\csrc;E:\Java32\jdk1.7.0_10\include\win32;E:\Java32\jdk1.7.0_10\include;C:\mapnik-2.1\include;C:\mapnik-2.1\include\mapnik\agg;C:\dev2\boost-49-vc100\include\boost-1_49;C:\dev2\freetype\include;C:\dev2\icu\include;E:\_WORK\mapnik-2.1\mapnik-packaging\windows\ltdl;C:\dev2\proj\src;
add preprocessor instructions
(C/C++ -> preprocessor -> preprocessor definitions)
set the value to the following :
MAPNIK_THREAD_SAFE;HAVE_LIBXML2;HAVE_JPEG;HAVE_CAIROWIN32;NDEBUG;_WINDOWS;_USRDLL;MAPNIKJNI_EXPORTS;_WINDLL;_UNICODE;UNICODE
add .lib directories
(Linker -> General -> Additional library directories)
add the following :
C:\dev2\boost-49-vc100\lib;C:\dev2\icu\lib;E:\_WORK\mapnik-2.1\mapnik-packaging\windows\build\src\msvc-10.0\release\threading-multi
add libraries
(linker -> input -> additional dependencies)
add the following :
icuuc.lib;mapnik.lib
Compilation error
I had this small compilation error :
I fixed this by editing the file class_featureset.cpp
-> after this compilation succeeds
Linkage errors
Though the compilation is OK, the linkage fails.
I have unresolved external links I can't fix.
Probably some more .lib to add so I tried to add all mapnik's dependencies I could think of but these 11 errors keep annoying me :'(
The text was updated successfully, but these errors were encountered: