Re: [gdal-dev] Windows link issue with Poppler/PDF

2011-04-10 Thread Joaquim Luis

Jeff,

I get the same thing (VS2010 ). I could only link the 0.14 built for 32 
bits. For 64 there were some other problems that I don't remember anymore.


Joaquim


Hello,

On windows using Visual Studio 2008 I have compiled poppler.lib (from 
poppler-0.16.4, using cmake), excellent, and if I cd to /frmts/pdf and 
'nmake /f makefile.vc' there are no problems; however during GDAL's 
link I get the following error:


***
poppler.lib(GlobalParams.obj) : error LNK2005: _DllMain@12 already 
defined in gdaldllmain.

obj
   Creating library gdal_i.lib and object gdal_i.exp
gdal19dev.dll : fatal error LNK1169: one or more multiply defined 
symbols found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
9.0\VC\BIN\link.EXE"

' : return code '0x491'
Stop.
***

(I have tried both GDAL-1.8.0 and trunk, same error)

Anyone see what I am doing wrong, or give me some hints as to how to 
solve this "DLLMain already defined" problem?  Thanks.


-jeff



___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Windows link issue with Poppler/PDF

2011-04-10 Thread Jeff McKenna

Hello Joaquim,

Oh ok thanks, I will try with poppler 0.14.x as you recommend.

(I can add to the GDAL linker flags "/FORCE:MULTIPLE" and it will 
compile, but that is not good practice I imagine)


Should I file this issue in GDAL Trac?

-jeff



On 11-04-10 2:52 PM, Joaquim Luis wrote:

Jeff,

I get the same thing (VS2010 ). I could only link the 0.14 built for 32
bits. For 64 there were some other problems that I don't remember anymore.

Joaquim


Hello,

On windows using Visual Studio 2008 I have compiled poppler.lib (from
poppler-0.16.4, using cmake), excellent, and if I cd to /frmts/pdf and
'nmake /f makefile.vc' there are no problems; however during GDAL's
link I get the following error:

***
poppler.lib(GlobalParams.obj) : error LNK2005: _DllMain@12 already
defined in gdaldllmain.
obj
Creating library gdal_i.lib and object gdal_i.exp
gdal19dev.dll : fatal error LNK1169: one or more multiply defined
symbols found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\link.EXE"
' : return code '0x491'
Stop.
***

(I have tried both GDAL-1.8.0 and trunk, same error)

Anyone see what I am doing wrong, or give me some hints as to how to
solve this "DLLMain already defined" problem? Thanks.

-jeff







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


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Windows link issue with Poppler/PDF

2011-04-10 Thread Joaquim Luis

On 10-04-2011 19:03, Jeff McKenna wrote:

Hello Joaquim,

Oh ok thanks, I will try with poppler 0.14.x as you recommend.

(I can add to the GDAL linker flags "/FORCE:MULTIPLE" and it will 
compile, but that is not good practice I imagine)


Should I file this issue in GDAL Trac?



Perhaps, but maybe Tamas has something to say about this.

Joaquim



-jeff



On 11-04-10 2:52 PM, Joaquim Luis wrote:

Jeff,

I get the same thing (VS2010 ). I could only link the 0.14 built for 32
bits. For 64 there were some other problems that I don't remember 
anymore.


Joaquim


Hello,

On windows using Visual Studio 2008 I have compiled poppler.lib (from
poppler-0.16.4, using cmake), excellent, and if I cd to /frmts/pdf and
'nmake /f makefile.vc' there are no problems; however during GDAL's
link I get the following error:

***
poppler.lib(GlobalParams.obj) : error LNK2005: _DllMain@12 already
defined in gdaldllmain.
obj
Creating library gdal_i.lib and object gdal_i.exp
gdal19dev.dll : fatal error LNK1169: one or more multiply defined
symbols found
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\link.EXE"
' : return code '0x491'
Stop.
***

(I have tried both GDAL-1.8.0 and trunk, same error)

Anyone see what I am doing wrong, or give me some hints as to how to
solve this "DLLMain already defined" problem? Thanks.

-jeff









___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] Windows link issue with Poppler/PDF

2011-04-10 Thread Tamas Szekeres
You may require to set: 'ENABLE_RELOCATABLE:BOOL=OFF' in CMakeCache.txt

Best regards,

Tamas


2011/4/10 Joaquim Luis 

> On 10-04-2011 19:03, Jeff McKenna wrote:
>
>> Hello Joaquim,
>>
>> Oh ok thanks, I will try with poppler 0.14.x as you recommend.
>>
>> (I can add to the GDAL linker flags "/FORCE:MULTIPLE" and it will compile,
>> but that is not good practice I imagine)
>>
>> Should I file this issue in GDAL Trac?
>>
>
>
> Perhaps, but maybe Tamas has something to say about this.
>
> Joaquim
>
>
>
>> -jeff
>>
>>
>>
>> On 11-04-10 2:52 PM, Joaquim Luis wrote:
>>
>>> Jeff,
>>>
>>> I get the same thing (VS2010 ). I could only link the 0.14 built for 32
>>> bits. For 64 there were some other problems that I don't remember
>>> anymore.
>>>
>>> Joaquim
>>>
>>>  Hello,

 On windows using Visual Studio 2008 I have compiled poppler.lib (from
 poppler-0.16.4, using cmake), excellent, and if I cd to /frmts/pdf and
 'nmake /f makefile.vc' there are no problems; however during GDAL's
 link I get the following error:

 ***
 poppler.lib(GlobalParams.obj) : error LNK2005: _DllMain@12 already
 defined in gdaldllmain.
 obj
 Creating library gdal_i.lib and object gdal_i.exp
 gdal19dev.dll : fatal error LNK1169: one or more multiply defined
 symbols found
 NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
 9.0\VC\BIN\link.EXE"
 ' : return code '0x491'
 Stop.
 ***

 (I have tried both GDAL-1.8.0 and trunk, same error)

 Anyone see what I am doing wrong, or give me some hints as to how to
 solve this "DLLMain already defined" problem? Thanks.

 -jeff


>>>
>>>
>>
>>
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Windows link issue with Poppler/PDF

2011-04-11 Thread Jeff McKenna

On 11-04-10 5:42 PM, Tamas Szekeres wrote:

You may require to set: 'ENABLE_RELOCATABLE:BOOL=OFF' in CMakeCache.txt


Hello Tamas,

That worked, now I am able to compile GDAL with Poppler 0.16.4 through 
cmake.  Thanks!


-jeff



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


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev