libarchive
NodeJS bindings to libarchive
Last updated 11 years ago by joaomoreno .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install libarchive 
SYNC missed versions from official npm registry.

Install

npm install libarchive

Build

All platforms

git submodule update --init
npm install

OS X

cd deps/libarchive
cmake .
make archive_static
cd ../..
./node_modules/.bin/node-pre-gyp rebuild

Linux

cd deps/libarchive
cmake .

Edit deps/libarchive/libarchive/CMakeFiles/archive_static.dir/flags.make and add -fPIC to CFLAGS.

make archive_static
cd ../..
./node_modules/.bin/node-pre-gyp rebuild

Windows (x64)

Powershell:

$MSBUILD="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild"

pushd deps\zlib-win64
.$MSBUILD /p:Platform=x64 /p:Configuration=Release zlib.msvs2013.vcxproj
popd

pushd deps\libarchive
cmake -A x64 -G "Visual Studio 12 2013" -D ZLIB_LIBRARY=..\zlib-win64\x64\Release\zlib.lib -D ZLIB_INCLUDE_DIR=..\zlib-win64 .
.$MSBUILD /p:Configuration=Release libarchive\archive_static.vcxproj
popd

.\node_modules\.bin\node-pre-gyp rebuild

Windows (ia32)

Powershell:

$MSBUILD="${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild"

pushd deps\zlib-win64
.$MSBUILD /p:Platform=win32 /p:Configuration=Release zlib.msvs2013.vcxproj
popd

pushd deps\libarchive
cmake -A win32 -G "Visual Studio 12 2013" -D ZLIB_LIBRARY=..\zlib-win64\Release\zlib.lib -D ZLIB_INCLUDE_DIR=..\zlib-win64 .
.$MSBUILD /p:Configuration=Release libarchive\archive_static.vcxproj
popd

.\node_modules\.bin\node-pre-gyp --target_arch=ia32 rebuild

Current Tags

  • 0.0.6                                ...           latest (11 years ago)

6 Versions

  • 0.0.6                                ...           11 years ago
  • 0.0.5                                ...           11 years ago
  • 0.0.4                                ...           11 years ago
  • 0.0.3                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |