msmitherdc / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

unable to compile custom application linking libkml in release version under visual c++ 2010 express due to minizip.lib #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. downloaded libkml 1.2.0
2. compiled successully under Visual C++ 2010 Express
3. written a program linking libkml library

What is the expected output? What do you see instead?
in Debug mode program compiles without errors though with several warnings 
among whilst:

minizip.lib(zip.obj) : MSIL .netmodule or module compiled with /GL found; 
restarting link with /LTCG; add /LTCG to the link command line to improve 
linker performance

minizip.lib(zip.obj) : warning LNK4099: PDB 'vc80.pdb' was not found with 
'minizip.lib(zip.obj)' or at 'C:\Documents\Visual Studio 
2010\Projects\VCollector\Debug\vc80.pdb'; linking object as if no debug info

in RELEASE mode does not compile with the following error:

...\LIBRARIES\libkml-1.2.0\third_party\zlib-1.2.3.win32\lib\minizip.lib' was 
created with an older compiler than other objects; rebuild old objects and 
libraries
LINK : fatal error LNK1257: code generation failed

What version of the product are you using? On what operating system?

1.2.0, window 7 pro - Visual c++ 2010 Express

Did you run the unit test suite that comes with the project? Did all tests pass?

All except:
 ..\..\src\kml\base\string_util_test.cc(39): error: Value of: strcmp(e, a)
  Actual: -1
Expected: 0
[  FAILED  ] StringUtilTest.Testb2a_hex

Please provide any additional information below.

Can´t rebuild minizip because only partial source available. 
code is incompatible with following releases of zlib (tried with 1.2.5) due to 
custom code in unzip.c/.h in minizip module.

Please provide complete source code to build libkml-customized minizip.lib, or 
clean the libkml code to make it compatible with generic recent zlib 
distributions.

Thank you in advance, beside this issue I´m fine w. the library! (but in debug 
mode is really slow)

Cheers, 
 Massimiliano 

Original issue reported on code.google.com by Massimil...@gmail.com on 25 Mar 2011 at 1:31

GoogleCodeExporter commented 9 years ago
The same happens here. please provide the source to compile 

Original comment by ilani...@gmail.com on 28 Mar 2011 at 7:10

GoogleCodeExporter commented 9 years ago
I partly solved thanks to issue 139. 

Original comment by Massimil...@gmail.com on 28 Mar 2011 at 7:16

GoogleCodeExporter commented 9 years ago
I'll add that i am using visual studio 2005 on xp

Original comment by ilani...@gmail.com on 28 Mar 2011 at 7:33

GoogleCodeExporter commented 9 years ago
I shall try to address this via bug 139.

Original comment by fwarmerdam@gmail.com on 30 Jan 2013 at 11:19