jbrwn / NET-Mapnik

.NET bindings for mapnik
34 stars 12 forks source link

2015 RTM #20

Open jskulavik opened 9 years ago

jskulavik commented 9 years ago

Hi @jbrwn, I was trying to build NET-Mapnik using @BergWerkGIS's latest SDK built against the RTM of VC++ 2015 and am running into:

mncpp

Any ideas? Thanks!

jbrwn commented 9 years ago

My guess is that either 1) protoc.exe doesn't exist at the path listed or 2) protoc.exe was compiled with VS C++ runtime that isn't on your machine. Can you try running protoc.exe at the command line to see if you get any additional information?

I'm stoked to see your working on a VS2015 RTM build. I just created a branch for this so feel free to queue up a pull request for your work. Don't worry if the build isn't 100% working.

wilhelmberg commented 9 years ago

Some additional ideas:

wilhelmberg commented 9 years ago

Tried a quick build with mapnik/master and mapnik-vector-tile/master as of today. Despite manually copying some files from https://github.com/mapbox/protozero and https://github.com/mapnik/node-mapnik it was not successful.

A lot has moved in mapnik, node-mapnik and mapnik-vector-tile recently. I suppose we have to find the right combination of versions.

jskulavik commented 9 years ago

OK, thank you both @jbrwn & @BergWerkGIS. Yes, I finally am getting some time to work on this and use it in another project, once we're back up and running. I'll look into your suggestions and keep plugging away. We'll sort it out ;-). Thanks again.

wilhelmberg commented 9 years ago

Some hints from @springmeyer on how to continue: https://github.com/mapbox/mapnik-vector-tile/issues/137#issuecomment-125640070

wilhelmberg commented 9 years ago

@jbrwn FYI: I took another look at NET-Mapnik, VS2015 RTM and the latest mapnik@3.0.5:

https://github.com/jbrwn/NET-Mapnik/compare/vs2015-rtm...BergWerkGIS:vs2015-rtm

I've added build-local.bat, which pulls down the needed dependencies and does the build.

Unfortunately it doesn't compile yet, as I'm stuck at this error and don't know how to solve it (my C++ knowledge is more than a bit rusty):

c:\mb\NET-Mapnik\lib\x64\mapnik-sdk\include\mapnik/util/variant.hpp(859): error C2059: syntax error: 'template' 
[c:\mb\NET-Mapnik\NETMapnik\NETMapnik.vcxproj
jbrwn commented 9 years ago

It's hard for me to tell what is going on without more context. It looks like the compiler is complaining about the templates in variant.hpp in the mapnik-sdk. One thing to check is whether this error is caused by simply including the header or if it is triggered by an actual piece of code in the net-mapnik project.

wilhelmberg commented 9 years ago

@jbrwn thanks, but I didn't expect an answer, I just wanted to let you know that I keep looking into it when I find a spare minute or two.

I got past that error by changing this code to this And got hundreds of new ones :frowning:

jbrwn commented 9 years ago

@BergWerkGIS right on. Stoked to have you taking a look at it when you can. I've been slammed at my day job and haven't been able to give much attention to this project lately :disappointed:

I got past that error by changing this code to this And got hundreds of new ones :frowning:

Ha. The joy of c++