Hi,
I tried to build GDAL on Win with PDF support and CV2010
Well that's an adventure. Instructions on how to build poppler are
completely absent (but there is on CMake list file that we may try to
guess what's essential from the optional stuff). Building free type
raised an error somewhere (something about an already defined INT32)
Next, there was this error (easily fixed with a pair of '/')
C:/programs/compa_libs/poppler\goo/gtypes.h(31) : error C2371: 'GBool' :
redefinition; different bas ic types
..\..\port\cpl_port.h(169) : see declaration of 'GBool'
But finally I stopped at the errors bellow. I see in the nmake.opt that
it links also against liblcms-1.lib. I don't know this one but Google
seams indicate that it is
"Little CMS (color management engine)". Is that so? And the errors below
are they explained by the fact that I'm not linking against this lib?
Clearly, we need a bit more info on how build with PDF support.
Thanks
Joaquim
lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj
frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
ogrsf_frmts.lib(resolvexlinks.obj) : warning LNK4221: This object file
does not define any previously undefined public symbols, so it will not
be used by any link operation that consumes this library
link /nologo /dll /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate /INCLUDE:_OPTGetPr
ojectionMethods /INCLUDE:_OGR_G_GetPointCount /INCLUDE:_OGRRegisterAll
/INCLUDE:_gdalsimpleimagew...@36 /INCLUDE:_gdalreprojectim...@48
/INCLUDE:_gdalcomputemediancut...@32 /INCLUDE:_gdalditherrgb2...@28
/INCLUDE:_octnewcoordinatetransformat...@8 port\*.obj gcore\*.obj
alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib
ogr\ogr.lib
C:\programs\compa_libs\hdf-4.2.5\compileds\vc10_32\lib\hm425m.lib
C:\programs\compa_libs\hdf-4.2.5\compileds\vc10_32\lib\hd425m.lib
Ws2_32.lib
c:\programs\Geo_DSDK-7.0.0.2167\lib\Release_md\lti_dsdk_dll.lib
advapi32.lib user32.lib
C:\progs_cygw\netcdf-3.6.3\compileds\VC10_32\lib\libnetcdf.lib
C:\programs\proj4\compileds\VC10_32\lib\proj_i.lib
C:\programs\compa_libs\hdf5-1.8.4-patch1\compileds\vc10_32\dll\hdf5dll.lib
C:\program
s\compa_libs\curl-7.20.0\compileds\vc10_32/lib/libcurl_imp.lib
wsock32.lib wldap32.lib winmm.lib
C:\programs\compa_libs\poppler\buildVC2010_32\Release/poppler.lib
C:\programs\compa_libs\freetype-2.4.3\objs\win32\vc2008\freetype243.lib
advapi32.lib gdi32.lib gcore\Version.res /out:gdal17.dll /implib:gdal_i.lib
Creating library gdal_i.lib and object gdal_i.exppdfdataset.obj :
error LNK2019: unresolved external symbol "public: void __thiscall
PDFDoc::displayP
ageSlice(class OutputDev
*,int,double,double,int,int,int,int,int,int,int,int,int (__cdecl*)(void *),
void *,int (__cdecl*)(class Annot *,void *),void *)"
(?displaypagesl...@pdfdoc@@QAEXPAVOutputDev@@HN
nhhhhhhhhp6ah...@z1p6ahpavannot@@1...@z1@Z) referenced in function "public:
virtual enum CPLErr __thisc
all PDFRasterBand::IReadBlock(int,int,void *)"
(?ireadbl...@pdfrasterband@@UAE?AW4CPLErr@@hh...@z)
pdfdataset.obj : error LNK2019: unresolved external symbol "public:
__thiscall SplashOutputDev::SplashOutputDev(enum
SplashColorMode,int,int,unsigned char *,int,int)"
(??0SplashOutputDev@@q...@w4splashcolormode@@hhpa...@z) referenced in
function "public: virtual enum CPLErr __thiscall PDFRasterBand::
IReadBlock(int,int,void *)"
(?ireadbl...@pdfrasterband@@UAE?AW4CPLErr@@hh...@z)
gdal17.dll : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\BIN\link.EXE"' :
return code '0x460'
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev