Hello,
I followed your hint trying to build through MSVC2010 express, but I'm stuck with compile errors going out of my understanding.
Here's what I did
- create a new empty project
- putting /mapnik-jni/csrc/ source files into the project source folders
- the *.cpp go to "Source files"
- the mapnikjni.h goes to "Header files"
- adding other dependencies
- right-click on the project -> properties -> C/C++ -> General
- in the "Other include directories" I added the path to include directories :
"E:\Java32\jdk1.7.0_10\include\win32" (needed for jni)
"E:\Java32\jdk1.7.0_10\include" (needed for jni)
"C:\dev2\libtool\include" (required)
"C:\dev2\proj\src" (mapnik dependency)
"C:\dev2\icu\include" (mapnik dependency)
"C:\dev2\freetype\include" (mapnik dependency)
"C:\dev2\boost-49-vc100\include\boost-1_49" (mapnik dependency)
"C:\mapnik-2.1\include\mapnik\agg" (mapnik dependency)
"C:\mapnik-2.1\include" (mapnik dependency)
... probably some others but I added them compile after compile when the compiler complained about missing header files.
at this state when I try to build I have dozens of warnings (nothing unusual) and here are the first errors :
I don't get what's wrong at all, I'm not even sure I understand these
If you have any more hint, I gladly take it :D
btw, it's precisely a java tile server I am also trying to create :D
...
e:\program
files (x86)\microsoft visual studio 10.0\vc\include\utility(167): error
C2079: 'std::_Pair_base<_Ty1,_Ty2>::second' uses a class of
'mapnik::feature_type_style' undefined
with
[
_Ty1=const std::string,
_Ty2=mapnik::feature_type_style
]
e:\program files (x86)\microsoft visual studio
10.0\vc\include\utility(174) : see reference to class template
instantiation 'std::_Pair_base<_Ty1,_Ty2>' being compiled
with
[
_Ty1=const std::string,
_Ty2=mapnik::feature_type_style
]
e:\_work\mapnik-2.1\mapnik-jni\csrc\class_map.cpp(370) : see reference
to class template instantiation 'std::pair<_Ty1,_Ty2>' being
compiled
with
[
_Ty1=const std::string,
_Ty2=mapnik::feature_type_style
]
...
e:\_work\mapnik-2.1\mapnik-jni\csrc\class_map.cpp(394):
error C2514: 'mapnik::feature_type_style' : the class doesn't have any
constructor
c:\mapnik-2.1\include\mapnik\map.hpp(40) : se declaration of 'mapnik::feature_type_style'
...
e:\_work\mapnik-2.1\mapnik-jni\csrc\class_datasource.cpp(66): error C2039: 'bind' : is not member of 'mapnik::datasource'
c:\mapnik-2.1\include\mapnik\datasource.hpp(72) : see delcaration of 'mapnik::datasource'
...