philr / bzip2-windows Goto Github PK
View Code? Open in Web Editor NEWPatches and a PowerShell script to build bzip2 with Visual Studio 2013 using a dynamic library (libbz2.dll).
License: MIT License
Patches and a PowerShell script to build bzip2 with Visual Studio 2013 using a dynamic library (libbz2.dll).
License: MIT License
Hi there,
i have a project with an external dependency that requires a library from bzip2... So i had to make it for visual studio 2015. Your repo is a godsend because the source code of the library contains old commands switches and other things that needs to be cleaned. However...
When i have downloaded your files, i have also modified Build-Bzip2.ps1
, that
Param (
[string]$GitPath = 'git',
[string]$VisualStudioDir = 'C:\Program Files (x86)\Microsoft Visual Studio 12.0'
)
Becomes
Param (
[string]$GitPath = 'git',
[string]$VisualStudioDir = 'C:\Program Files (x86)\Visual Studio 14.0'
)
In the above folder, there is a subfolder "VC" which then contains vcvarsall.bat
PS C:\Program Files (x86)\Visual Studio 14.0\VC> Get-ChildItem -name
atlmfc
bin
crt
include
lib
Profile
redist
Snippets
UnitTest
VCAddClass
VCContextItems
VCNewItems
vcpackages
VCProjectDefaults
vcprojectitems
vcprojects
VCResourceTemplates
VCWizards
vcEmptyTestProject.vsz
vcvarsall.bat
see the last line. It is compliant with what you're doing when setting up a path:
$VcVarsAllPath = Join-Path -Path (Join-Path -Path $VisualStudioDir -ChildPath 'VC') -ChildPath 'vcvarsall.bat'
But, when running the script, I get an error.
PS D:\downloads\temp\bzip2-windows-master> .\Build-Bzip2.ps1
Extracting archive
Applying patches
Applying patch 01-replace_deprecated_compile_options.diff
Applying patch 02-build_dll.diff
Applying patch 03-add_version_resource.diff
Applying patch 04-remove_unsupported_description_option.diff
Building x86
'""C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Failed to build x86
At D:\downloads\temp\bzip2-windows-master\Build-Bzip2.ps1:100 char:13
+ throw "Failed to build $Architecture"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Failed to build x86:String) [], RuntimeException
+ FullyQualifiedErrorId : Failed to build x86
Apparently there could be some escaping issues, but the line that causes the error
cmd /C "`"`"$VcVarsAllPath`" $VcVars & nmake -f makefile.msc all`""
doesn't seem wrong. Well, if i could understand the mix of escapes...
So I couldn't figure out the problem. I'm surprised that it has worked at you :P
Can you look into that ?
( in the meanwhile, i have used developer console to issue the nmake command on your patched files so that i have the dll. Many thanks for that)
subj
Julian Seward handed over maintainership of bzip2 to Federico Mena Quintero earlier this month: https://people.gnome.org/~federico/blog/maintaining-bzip2.html
Bzip2 finally has an official public repository, found here on gitlab: https://gitlab.com/federicomenaquintero/bzip2
Would you consider contributing your patches and version.rc file in a pull request to the new official repo? I've been using them for my project for our Windows builds and they appear to work well for us.
Version: 1.0.6-win
Neither the x64 nor the x86 version managed to compress a 4.5 GB file.
bzip2: Input file large.file is not a normal file.
Small testfiles (few KB) worked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.