NET-Mapnik icon indicating copy to clipboard operation
NET-Mapnik copied to clipboard

2015 RTM

Open jskulavik opened this issue 10 years ago • 9 comments

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!

jskulavik avatar Jul 28 '15 04:07 jskulavik

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.

jbrwn avatar Jul 28 '15 05:07 jbrwn

Some additional ideas:

  • are you sure, you are using the SDK linked here: https://github.com/mapbox/windows-builds/issues/38#issuecomment-123672083 It's the only one built with VS2015. All other automated builds are still built with VS2014 CTP4.
  • Look at the Output tab, you might find more information there
  • Go to Tools -> Options -> Projects and Solutions -> Build and Run
    • Change MSBuild project build output verbosity to Diagnostic
    • Do you get more information?

wilhelmberg avatar Jul 28 '15 08:07 wilhelmberg

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.

wilhelmberg avatar Jul 28 '15 11:07 wilhelmberg

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.

jskulavik avatar Jul 28 '15 14:07 jskulavik

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

wilhelmberg avatar Jul 28 '15 20:07 wilhelmberg

@jbrwn FYI: I took another look at NET-Mapnik, VS2015 RTM and the latest [email protected]:

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

wilhelmberg avatar Sep 23 '15 13:09 wilhelmberg

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.

jbrwn avatar Sep 24 '15 17:09 jbrwn

@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:

wilhelmberg avatar Sep 25 '15 10:09 wilhelmberg

@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++

jbrwn avatar Sep 26 '15 21:09 jbrwn