pombreda / libarchive

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

Can't build x64 with VS 10, windows 7 #387

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Use cmake to build for VS10
2.Set build to Release, Platform to x64
3.Try to build

What is the expected output? What do you see instead?
Lots of errors.  For example the linker has the command line property  
/machine:X86 appended, even to x64 Platform.

I started out trying to fix them locally, but got stumped at 
1>archive_static.lib(archive_util.obj) : error LNK2019: unresolved external 
symbol BZ2_bzlibVersion referenced in function archive_version_details
1>archive_static.lib(archive_read_support_filter_gzip.obj) : error LNK2019: 
unresolved external symbol inflateInit2_ referenced in function consume_header
1>archive_static.lib(archive_read_support_filter_gzip.obj) : error LNK2019: 
unresolved external symbol crc32 referenced in function consume_header
1>archive_static.lib(archive_read_support_filter_gzip.obj) : error LNK2019: 
unresolved external symbol inflateEnd referenced in function consume_trailer
1>archive_static.lib(archive_read_support_filter_gzip.obj) : error LNK2019: 
unresolved external symbol inflate referenced in function gzip_filter_read
1>archive_static.lib(archive_read_support_filter_bzip2.obj) : error LNK2019: 
unresolved external symbol BZ2_bzDecompressEnd referenced in function 
bzip2_filter_read
1>archive_static.lib(archive_read_support_filter_bzip2.obj) : error LNK2019: 
unresolved external symbol BZ2_bzDecompress referenced in function 
bzip2_filter_read
1>archive_static.lib(archive_read_support_filter_bzip2.obj) : error LNK2019: 
unresolved external symbol BZ2_bzDecompressInit referenced in function 
bzip2_filter_read
1>C:\source_code\ThirdParty\libarchive-master\bin\bin\Release\bsdcat.exe : 
fatal error LNK1120: 8 unresolved externals

when building project bsdcat

What version are you using?
Latest, not sure the #

On what operating system?
Windows 7 ultimate

How did you build?  (cmake, configure, or pre-packaged binary)
cmake

What compiler or development environment (please include version)?
Visual Studio 10 Pro (10.0.40219.1)

Please provide any additional information below.

Original issue reported on code.google.com by cbapti...@gmail.com on 19 Nov 2014 at 7:19

GoogleCodeExporter commented 9 years ago
Are the problems you see only affecting bsdcat?  Or other targets as well?

Original comment by kientzle@gmail.com on 20 Nov 2014 at 3:13