Error compiling MapServer Trunk on Windows

4 messages Options
Embed this post
Permalink
Debasish Sahu-2

Error compiling MapServer Trunk on Windows

Reply Threaded More More options
Print post
Permalink
Hi,

I had downloaded the BuildKit from http://www.gatewaygeomatics.com/dl/buildkit/  and the source code contained in the kit complied without any problems. Then I replaced the mapserver source with the latest code from SVN trunk and tried to build but without success. I am getting the following errors

   Creating library mapserver_i.lib and object mapserver_i.exp
maplegend.obj : error LNK2019: unresolved external symbol _msDrawShadeSymbol ref
erenced in function _msDrawLegendIcon
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawShadeSymbol
mapgeomtransform.obj : error LNK2001: unresolved external symbol _msDrawShadeSym
bol
maplegend.obj : error LNK2019: unresolved external symbol _msDrawLineSymbol refe
renced in function _msDrawLegendIcon
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLineSymbol
mapgeomtransform.obj : error LNK2019: unresolved external symbol _msDrawMarkerSy
mbol referenced in function _msDrawTransformedShape
maplegend.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapscale.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapraster.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
maputil.obj : error LNK2019: unresolved external symbol _msSaveRasterBuffer refe
renced in function _msSaveImage
maputil.obj : error LNK2019: unresolved external symbol _msSaveRasterBufferToBuf
fer referenced in function _msSaveImageBuffer
mapdraw.obj : error LNK2019: unresolved external symbol _msDrawText referenced i
n function _msDrawLabel
mapdraw.obj : error LNK2019: unresolved external symbol _msDrawTextLine referenc
ed in function _msDrawLabelCache
mapdraw.obj : error LNK2019: unresolved external symbol _msCircleDrawShadeSymbol
 referenced in function _msDrawShape
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleOGL referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoSVG referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoPDF referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoRaster referenced in function _msInitializeRendererVTable
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse8x16_bold" (?gse8x16_bold@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x15" (?gse7x15@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x11_bold" (?gse7x11_bold@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x11" (?gse7x11@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse5x7" (?gse5x7@mapserver@@3QBEB)
mapagg.obj : error LNK2019: unresolved external symbol "unsigned short * mapserv
er::g_sqrt_table" (?g_sqrt_table@mapserver@@3PAGA) referenced in function "unsig
ned int __cdecl mapserver::fast_sqrt(unsigned int)" (?fast_sqrt@mapserver@@YAII@
Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: static unsigned
char const * const mapserver::line_parameters::s_diagonal_quadrant" (?s_diagonal
_quadrant@line_parameters@mapserver@@2QBEB) referenced in function "public: unsi
gned int __thiscall mapserver::line_parameters::diagonal_quadrant(void)const " (
?diagonal_quadrant@line_parameters@mapserver@@QBEIXZ)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve3_div::init(double,double,double,double,double,double)" (?init@c
urve3_div@mapserver@@QAEXNNNNNN@Z) referenced in function "public: void __thisca
ll mapserver::curve3::init(double,double,double,double,double,double)" (?init@cu
rve3@mapserver@@QAEXNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve3_inc::init(double,double,double,double,double,double)" (?init@c
urve3_inc@mapserver@@QAEXNNNNNN@Z) referenced in function "public: void __thisca
ll mapserver::curve3::init(double,double,double,double,double,double)" (?init@cu
rve3@mapserver@@QAEXNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve4_div::init(double,double,double,double,double,double,double,dou
ble)" (?init@curve4_div@mapserver@@QAEXNNNNNNNN@Z) referenced in function "publi
c: void __thiscall mapserver::curve4::init(double,double,double,double,double,do
uble,double,double)" (?init@curve4@mapserver@@QAEXNNNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve4_inc::init(double,double,double,double,double,double,double,dou
ble)" (?init@curve4_inc@mapserver@@QAEXNNNNNNNN@Z) referenced in function "publi
c: void __thiscall mapserver::curve4::init(double,double,double,double,double,do
uble,double,double)" (?init@curve4@mapserver@@QAEXNNNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: struct mapserver
::trans_affine const & __thiscall mapserver::trans_affine::multiply(struct mapse
rver::trans_affine const &)" (?multiply@trans_affine@mapserver@@QAEABU12@ABU12@@
Z) referenced in function "public: struct mapserver::trans_affine const & __this
call mapserver::trans_affine::operator*=(struct mapserver::trans_affine const &)
" (??Xtrans_affine@mapserver@@QAEABU01@ABU01@@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: __thiscall mapse
rver::font_engine_freetype_base::font_engine_freetype_base(bool,unsigned int)" (
??0font_engine_freetype_base@mapserver@@QAE@_NI@Z) referenced in function "publi
c: __thiscall mapserver::font_engine_freetype_int16::font_engine_freetype_int16(
unsigned int)" (??0font_engine_freetype_int16@mapserver@@QAE@I@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: __thiscall mapse
rver::font_engine_freetype_base::~font_engine_freetype_base(void)" (??1font_engi
ne_freetype_base@mapserver@@QAE@XZ) referenced in function "public: __thiscall m
apserver::font_engine_freetype_int16::~font_engine_freetype_int16(void)" (??1fon
t_engine_freetype_int16@mapserver@@QAE@XZ)
mapagg.obj : error LNK2019: unresolved external symbol "public: unsigned int __t
hiscall mapserver::vcgen_contour::vertex(double *,double *)" (?vertex@vcgen_cont
our@mapserver@@QAEIPAN0@Z) referenced in function "public: unsigned int __thisca
ll mapserver::conv_adaptor_vcgen<class mapserver::path_base<class mapserver::ver
tex_block_storage<double,8,256> >,class mapserver::vcgen_contour,struct mapserve
r::null_markers>::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcgen@V?$pa
th_base@V?$vertex_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen_contour
@2@Unull_markers@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::rewind(unsigned int)" (?rewind@vcgen_contour@mapserver
@@QAEXI@Z) referenced in function "public: unsigned int __thiscall mapserver::co
nv_adaptor_vcgen<class mapserver::path_base<class mapserver::vertex_block_storag
e<double,8,256> >,class mapserver::vcgen_contour,struct mapserver::null_markers>
::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcgen@V?$path_base@V?$verte
x_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen_contour@2@Unull_markers
@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::add_vertex(double,double,unsigned int)" (?add_vertex@v
cgen_contour@mapserver@@QAEXNNI@Z) referenced in function "public: unsigned int
__thiscall mapserver::conv_adaptor_vcgen<class mapserver::path_base<class mapser
ver::vertex_block_storage<double,8,256> >,class mapserver::vcgen_contour,struct
mapserver::null_markers>::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcg
en@V?$path_base@V?$vertex_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen
_contour@2@Unull_markers@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::remove_all(void)" (?remove_all@vcgen_contour@mapserver
@@QAEXXZ) referenced in function "public: unsigned int __thiscall mapserver::con
v_adaptor_vcgen<class mapserver::path_base<class mapserver::vertex_block_storage




--
Thanks and Warm Regards
Debasish Sahu

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Tamas Szekeres

Re: Error compiling MapServer Trunk on Windows

Reply Threaded More More options
Print post
Permalink
Hi,

Didn't you replace the makefile (makefile.vc, nmake.opt) of the SVN trunk with an older version?

You could also download either of the SDK packages (depending on your compiler/architecture) from this location at the bottom of the page:

http://vbkto.dyndns.org/sdk/

Extract the SDK files in a directory and type 'nmake ms' in a Visual Studio Command Prompt

Best regards,

Tamas




2009/10/8 Debasish Sahu <[hidden email]>
Hi,

I had downloaded the BuildKit from http://www.gatewaygeomatics.com/dl/buildkit/  and the source code contained in the kit complied without any problems. Then I replaced the mapserver source with the latest code from SVN trunk and tried to build but without success. I am getting the following errors

   Creating library mapserver_i.lib and object mapserver_i.exp
maplegend.obj : error LNK2019: unresolved external symbol _msDrawShadeSymbol ref
erenced in function _msDrawLegendIcon
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawShadeSymbol
mapgeomtransform.obj : error LNK2001: unresolved external symbol _msDrawShadeSym
bol
maplegend.obj : error LNK2019: unresolved external symbol _msDrawLineSymbol refe
renced in function _msDrawLegendIcon
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawLineSymbol
mapgeomtransform.obj : error LNK2019: unresolved external symbol _msDrawMarkerSy
mbol referenced in function _msDrawTransformedShape
maplegend.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapscale.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapraster.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
mapdraw.obj : error LNK2001: unresolved external symbol _msDrawMarkerSymbol
maputil.obj : error LNK2019: unresolved external symbol _msSaveRasterBuffer refe
renced in function _msSaveImage
maputil.obj : error LNK2019: unresolved external symbol _msSaveRasterBufferToBuf
fer referenced in function _msSaveImageBuffer
mapdraw.obj : error LNK2019: unresolved external symbol _msDrawText referenced i
n function _msDrawLabel
mapdraw.obj : error LNK2019: unresolved external symbol _msDrawTextLine referenc
ed in function _msDrawLabelCache
mapdraw.obj : error LNK2019: unresolved external symbol _msCircleDrawShadeSymbol
 referenced in function _msDrawShape
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleOGL referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoSVG referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoPDF referenced in function _msInitializeRendererVTable
mapoutput.obj : error LNK2019: unresolved external symbol _msPopulateRendererVTa
bleCairoRaster referenced in function _msInitializeRendererVTable
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse8x16_bold" (?gse8x16_bold@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x15" (?gse7x15@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x11_bold" (?gse7x11_bold@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse7x11" (?gse7x11@mapserver@@3QBEB)
mapagg.obj : error LNK2001: unresolved external symbol "unsigned char const * co
nst mapserver::gse5x7" (?gse5x7@mapserver@@3QBEB)
mapagg.obj : error LNK2019: unresolved external symbol "unsigned short * mapserv
er::g_sqrt_table" (?g_sqrt_table@mapserver@@3PAGA) referenced in function "unsig
ned int __cdecl mapserver::fast_sqrt(unsigned int)" (?fast_sqrt@mapserver@@YAII@
Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: static unsigned
char const * const mapserver::line_parameters::s_diagonal_quadrant" (?s_diagonal
_quadrant@line_parameters@mapserver@@2QBEB) referenced in function "public: unsi
gned int __thiscall mapserver::line_parameters::diagonal_quadrant(void)const " (
?diagonal_quadrant@line_parameters@mapserver@@QBEIXZ)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve3_div::init(double,double,double,double,double,double)" (?init@c
urve3_div@mapserver@@QAEXNNNNNN@Z) referenced in function "public: void __thisca
ll mapserver::curve3::init(double,double,double,double,double,double)" (?init@cu
rve3@mapserver@@QAEXNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve3_inc::init(double,double,double,double,double,double)" (?init@c
urve3_inc@mapserver@@QAEXNNNNNN@Z) referenced in function "public: void __thisca
ll mapserver::curve3::init(double,double,double,double,double,double)" (?init@cu
rve3@mapserver@@QAEXNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve4_div::init(double,double,double,double,double,double,double,dou
ble)" (?init@curve4_div@mapserver@@QAEXNNNNNNNN@Z) referenced in function "publi
c: void __thiscall mapserver::curve4::init(double,double,double,double,double,do
uble,double,double)" (?init@curve4@mapserver@@QAEXNNNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::curve4_inc::init(double,double,double,double,double,double,double,dou
ble)" (?init@curve4_inc@mapserver@@QAEXNNNNNNNN@Z) referenced in function "publi
c: void __thiscall mapserver::curve4::init(double,double,double,double,double,do
uble,double,double)" (?init@curve4@mapserver@@QAEXNNNNNNNN@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: struct mapserver
::trans_affine const & __thiscall mapserver::trans_affine::multiply(struct mapse
rver::trans_affine const &)" (?multiply@trans_affine@mapserver@@QAEABU12@ABU12@@
Z) referenced in function "public: struct mapserver::trans_affine const & __this
call mapserver::trans_affine::operator*=(struct mapserver::trans_affine const &)
" (??Xtrans_affine@mapserver@@QAEABU01@ABU01@@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: __thiscall mapse
rver::font_engine_freetype_base::font_engine_freetype_base(bool,unsigned int)" (
??0font_engine_freetype_base@mapserver@@QAE@_NI@Z) referenced in function "publi
c: __thiscall mapserver::font_engine_freetype_int16::font_engine_freetype_int16(
unsigned int)" (??0font_engine_freetype_int16@mapserver@@QAE@I@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: __thiscall mapse
rver::font_engine_freetype_base::~font_engine_freetype_base(void)" (??1font_engi
ne_freetype_base@mapserver@@QAE@XZ) referenced in function "public: __thiscall m
apserver::font_engine_freetype_int16::~font_engine_freetype_int16(void)" (??1fon
t_engine_freetype_int16@mapserver@@QAE@XZ)
mapagg.obj : error LNK2019: unresolved external symbol "public: unsigned int __t
hiscall mapserver::vcgen_contour::vertex(double *,double *)" (?vertex@vcgen_cont
our@mapserver@@QAEIPAN0@Z) referenced in function "public: unsigned int __thisca
ll mapserver::conv_adaptor_vcgen<class mapserver::path_base<class mapserver::ver
tex_block_storage<double,8,256> >,class mapserver::vcgen_contour,struct mapserve
r::null_markers>::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcgen@V?$pa
th_base@V?$vertex_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen_contour
@2@Unull_markers@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::rewind(unsigned int)" (?rewind@vcgen_contour@mapserver
@@QAEXI@Z) referenced in function "public: unsigned int __thiscall mapserver::co
nv_adaptor_vcgen<class mapserver::path_base<class mapserver::vertex_block_storag
e<double,8,256> >,class mapserver::vcgen_contour,struct mapserver::null_markers>
::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcgen@V?$path_base@V?$verte
x_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen_contour@2@Unull_markers
@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::add_vertex(double,double,unsigned int)" (?add_vertex@v
cgen_contour@mapserver@@QAEXNNI@Z) referenced in function "public: unsigned int
__thiscall mapserver::conv_adaptor_vcgen<class mapserver::path_base<class mapser
ver::vertex_block_storage<double,8,256> >,class mapserver::vcgen_contour,struct
mapserver::null_markers>::vertex(double *,double *)" (?vertex@?$conv_adaptor_vcg
en@V?$path_base@V?$vertex_block_storage@N$07$0BAA@@mapserver@@@mapserver@@Vvcgen
_contour@2@Unull_markers@2@@mapserver@@QAEIPAN0@Z)
mapagg.obj : error LNK2019: unresolved external symbol "public: void __thiscall
mapserver::vcgen_contour::remove_all(void)" (?remove_all@vcgen_contour@mapserver
@@QAEXXZ) referenced in function "public: unsigned int __thiscall mapserver::con
v_adaptor_vcgen<class mapserver::path_base<class mapserver::vertex_block_storage




--
Thanks and Warm Regards
Debasish Sahu

_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev



_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Jeff McKenna

Re: Error compiling MapServer Trunk on Windows

Reply Threaded More More options
Print post
Permalink
In reply to this post by Debasish Sahu-2
Debasish Sahu wrote:
> Hi,
>
> I had downloaded the BuildKit from
> http://www.gatewaygeomatics.com/dl/buildkit/  and the source code
> contained in the kit complied without any problems. Then I replaced the
> mapserver source with the latest code from SVN trunk and tried to build
> but without success. I am getting the following errors

Hello Debasish,

It definitely tricky changing the nmake.opt for trunk or another release
with the buildkit paths (indeed I am facing the issue with Beta3,
wondering if it is my own path problems or not).  What I do is do a diff
from the last working build nmake.opt to the one you are working
on....but it's difficult.  It's very easy with Unix, but difficult with
Windows.

-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
Tamas Szekeres

Re: Error compiling MapServer Trunk on Windows

Reply Threaded More More options
Print post
Permalink
Hi Jeff,

You can customize the things without having to change the nmake.opt, by creating your custom nmake.opt let's say mynmake.opt and specify that in the nmake command line:

nmake -f makefile.vc EXT_NMAKE_OPT=mynmake.opt.

This option is exensively used in practice by the buildbot windows slaves.


Best regards,

Tamas



2009/10/9 Jeff McKenna <[hidden email]>
Debasish Sahu wrote:
Hi,

I had downloaded the BuildKit from http://www.gatewaygeomatics.com/dl/buildkit/  and the source code contained in the kit complied without any problems. Then I replaced the mapserver source with the latest code from SVN trunk and tried to build but without success. I am getting the following errors

Hello Debasish,

It definitely tricky changing the nmake.opt for trunk or another release with the buildkit paths (indeed I am facing the issue with Beta3, wondering if it is my own path problems or not).  What I do is do a diff from the last working build nmake.opt to the one you are working on....but it's difficult.  It's very easy with Unix, but difficult with Windows.

-jeff

--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev


_______________________________________________
mapserver-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-dev