[Mapserver-users] RE: compiling mapserver 4.0 with gdal support on VC7
Swaminathan, Gayathri
gayathri at ou.edu
Mon Dec 15 07:27:00 PST 2003
Try mapserver compile with this LDFLAGS settings and tell me how goes it
"LDFLAGS = /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd"
-----Original Message-----
From: Ballini Yvain [mailto:Ballini.Yvain at seat.it]
Sent: Monday, December 15, 2003 9:14 AM
To: Swaminathan, Gayathri
Subject: R: compiling mapserver 4.0 with gdal support on VC7
Thank you very much for the answer, Gayathri
In fact, I've compile mapserver 4.0 without gdal and it's everything ok. Now
I would recompile mapserver 4.0 with OGR support (which is in gdal). I've
taken gdal-1.1.9 with the following option in the makefile:
LDFLAGS = /NODEFAULTLIB:libcd $(LDEBUG)
And it builds everything without problem, apparently.
The problem is when I uncomment the lines about the GDAL and OGR support on
the nmake.opt of mapserver 4.0 in order to recompile it. I've got this
option in the makefile:
LDFLAGS = /NODEFAULTLIB:libcd
As the gdal compilation "seems" to be ok, I think my problem is in the
mapserver configuration, and this problem comes only with the gdal support
beacause I've added before proj4, zilb, freetype without any problem. I
dont'know if your compiled gdal could help me, we could try, or maybe try
another mapserver.exe if you'got it...? And when I try to recompile
mapserver 4.0 it turns the linking problem descrived under. There are some
many days that I'm trying to find what is wrong but I can't solve it...
Thanks a lot :)
Yvain.
-----Messaggio originale-----
Da: Swaminathan, Gayathri [mailto:gayathri at ou.edu]
Inviato: lunedì 15 dicembre 2003 15.58
A: Ballini Yvain
Oggetto: RE: compiling mapserver 4.0 with gdal support on VC7
Hello:
Just checking on a few things...
Do you need GDAL?
What all other options do you have going into your mapserver compile?
1) Did you compile and install GDAL before mapserver compile?
2) Was the gdal build sucessful?
3) VC7 acts kinda weird with GDAL nmake.opt...Guess it is a configuration
issue.,because the nmake.opt out there was generated using VC++6.0. Can you
try doing a workspace for GDAL and doing a workspace for mapserver and see
what happens?
If you just wanna save time and need a compiled gdal let me know..will send
ya one :) Cheers
-----Original Message-----
From: Ballini Yvain [mailto:Ballini.Yvain at seat.it]
Sent: Monday, December 15, 2003 8:55 AM
To: gayathri at ou.edu
Subject: compiling mapserver 4.0 with gdal support on VC7
Hi Gayathri
I'm trying to recompile mapserver 4.0 with OGR support (on Windows XP with
VC7).
Without the gdal support, it's everything ok but adding the gdal support
introduces a lot of problem during the recompilation of mapserver.
When I run the makefile.vc of mapserver, it gives me the following errors
for gdal 1.1.9:
cpl.lib(cpl_error.obj) : error LNK2019: unresolved external symbol
__imp___vsnpr intf referenced in function _CPLDebug
cpl.lib(cpl_string.obj) : error LNK2019: unresolved external symbol
__imp___vsnp rintf referenced in function _CSLSave
cpl.lib(cpl_vsisimple.obj) : error LNK2019: unresolved external symbol
__imp__fp uts referenced in function _VSIFPuts
cpl.lib(cpl_vsisimple.obj) : error LNK2019: unresolved external symbol
__imp__mk dir referenced in function _VSIMkdir
OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol
__imp__mkdir
cpl.lib(cpl_vsisimple.obj) : error LNK2019: unresolved external symbol
__imp__rm dir referenced in function _VSIRmdir
OLDNAMES.lib(rmdir.obi) : error LNK2001: unresolved external symbol
__imp__rmdir
cpl.lib(cpl_string.obj) : error LNK2019: unresolved external symbol
__imp__strer ror referenced in function _CSLSave
cpl.lib(cpl_string.obj) : error LNK2019: unresolved external symbol
__imp___errn o referenced in function _CSLSave
cpl.lib(cpl_dir.obj) : error LNK2019: unresolved external symbol
__imp___findclo se referenced in function _CPLReadDir
cpl.lib(cpl_dir.obj) : error LNK2019: unresolved external symbol
__imp___findnex t referenced in function _CPLReadDir
cpl.lib(cpl_dir.obj) : error LNK2019: unresolved external symbol
__imp___findfir st referenced in function _CPLReadDir
OLDNAMES.lib(mkdir.obi) : error LNK2001: unresolved external symbol
__imp___mkdi r
OLDNAMES.lib(rmdir.obi) : error LNK2001: unresolved external symbol
__imp___rmdi r mapserv.exe : fatal error LNK1120: 11 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
I think I've got a conflict problem between run-time C libraries (libc.lib,
libcmt.lib, MSVCRT.lib).
Do you know about another version of gdal which hasn't this problem, or
could you explain me please which runtime libary must be use fo all support?
I've added you the building files that I'm using for mapserver.
Thank you very much.
Yvain Ballini.
More information about the MapServer-users
mailing list