[mapserver-users] problem compiling with gdal and ecw
Richard Greenwood
Rich at GreenwoodMap.com
Mon Feb 4 20:41:13 PST 2002
I wish I kept better notes, but I edited the nmake.opt file in GDAL and added:
ECWDIR = E:\Inetpub\wwwroot\mapserver\download\etc\ecw_sdk
ECWLIB = $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib \
$(ECWDIR)\lib\NCSUtil.lib
I compiled GDAL and tested for ecw functionality.
Then in the mapserver makefile.vc I added:
GDAL=-DUSE_GDAL
ECW_DIR = E:\Inetpub\wwwroot\mapserver\download\etc\ecw_sdk\lib
GDAL_LIB= $(GDAL_DIR)/gdal.lib $(ECW_DIR)\NCSEcwC.lib
$(ECW_DIR)\NCSEcw.lib $(ECW_DIR)\NCSUtil.lib
Basically when I get an unresolved external, I search for files containing
the referenced external string and try to include the library or object
file that includes that string (this is the way an uneducated person solves
this sort of problem, my apologies to those of you who know how to do it
correctly).
Rich
At 09:06 PM 2/1/2002 -0600, you wrote:
>Folks,
>
>While trying to compile MapServer with GDAL (which has been compiled
>successfully with ECW support enabled), I ran into the error messages below.
>Has anyone trying to use ECW stuff encountered this problem before and found
>a way to fix it? Any help would be appreciated.
>
>Here come the messages:
>
> Creating library mapserv.lib and object mapserv.exp
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCScbmRead
>ViewLineBIL
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSGetErro
>rText
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCScbmSetF
>ileView
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCScbmGetV
>iewFileInfo
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCScbmOpen
>FileView
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSEcwComp
>ressFreeClient
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSEcwComp
>ressClose
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSEcwComp
>ress
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSEcwComp
>ressOpen
>gdal.lib(ecwdataset.obj) : error LNK2001: unresolved external symbol
>_NCSEcwComp
>ressAllocClient
>mapserv.exe : fatal error LNK1120: 10 unresolved externals
>NMAKE : fatal error U1077: 'link' : return code '0x460'
>Stop.
>
>Thanks in advance for your help.
>
>-Perry N.
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com
More information about the MapServer-users
mailing list