草庐IT

zip-archive

全部标签

android - 使用 Jack 编译器时出错 - app/build/intermediates/packaged/debug/classes.zip' is an invalid library

我在使用Jack编译器时遇到这些错误,但我不明白是什么问题:Error:Libraryreadingphase:file'/Users/daniele.vitali/Development/android-studio/INTROCKAND/app/build/intermediates/packaged/debug/classes.zip'isaninvalidlibrarycom.android.jack.api.v01.CompilationException:Libraryreadingphase:file'/Users/daniele.vitali/Development/a

android - Gradle 插件 v0.13.1 后的重复 Zip 条目

我一直在使用GradleAndroid插件v0.12,但我决定升级到新版本,因为我需要新功能(速度的提高总是一个优势)。更新到新的v0.13.1后,我不断收到“DuplicateZipEntry”(来自Proguard),而之前一切正常。完整错误:java.io.IOException:Can'twrite[/Users/.../classes-proguard/netherlands/release/classes.jar](Can'tread[/Users/.../.gradle/caches/modules-2/files-2.1/org.apache.commons/commo

android - 将 Zip 提取到 SD 卡非常慢。我如何优化性能?

我的应用下载了一个包含大约350个文件的zip。JPG和HTML文件的混合。我为它编写的函数工作得很好,但解压缩需要永远。起初我认为原因可能是写入sd卡很慢。但是当我用手机上的其他应用程序解压缩相同的zip时,它的运行速度要快得多。我可以做些什么来优化它吗?代码如下:privatevoidextract(){try{FileInputStreaminStream=newFileInputStream(targetFilePath);ZipInputStreamzipStream=newZipInputStream(newBufferedInputStream(inStream));Zi

c++ - 在 boost 元组、zip_iterator 等上使用 std::get 和 std::tie

使用std::get()有哪些选择?和std::tie()与boost结构一起?例子:我想使用基于范围的for循环对多个容器进行迭代。我可以实现zip函数,它使用boost::zip_iterator.#include#includetemplateautozip(TContainer&...containers)->boost::iterator_range>{autozip_begin=boost::make_zip_iterator(boost::make_tuple(std::begin(containers)...));autozip_end=boost::make_zip_

c++ - 在 Mac 上安装 xgboost 失败 - ar : no archive members specified

我正在尝试在Mac上安装xgboost。我按照github上的说明进行操作,但是当我运行make-j4时出现错误:c++-std=c++0x-Wall-O3-msse2-Wno-unknown-pragmas-funroll-loops-Iinclude-Idmlc-core/include-Irabit/include-fPIC-DDISABLE_OPENMP-oxgboostbuild/cli_main.obuild/learner.obuild/logging.obuild/c_api/c_api.obuild/c_api/c_api_error.obuild/common/co

file - 在 Kotlin 中创建一个 ZIP 文件

我正在尝试在Kotlin中创建一个zip文件。这是代码:funmain(args:Array){varfiles:Array=arrayOf("/home/matte/theres_no_place.png","/home/matte/vladstudio_the_moon_and_the_ocean_1920x1440_signed.jpg")varout=ZipOutputStream(BufferedOutputStream(FileOutputStream("/home/matte/Desktop/test.zip")))vardata=ByteArray(1024)for(f

file - 在 Kotlin 中创建一个 ZIP 文件

我正在尝试在Kotlin中创建一个zip文件。这是代码:funmain(args:Array){varfiles:Array=arrayOf("/home/matte/theres_no_place.png","/home/matte/vladstudio_the_moon_and_the_ocean_1920x1440_signed.jpg")varout=ZipOutputStream(BufferedOutputStream(FileOutputStream("/home/matte/Desktop/test.zip")))vardata=ByteArray(1024)for(f

C++ zip 可变参数模板

这是C++中的一个简单的双容器zip函数:templatestd::list>simple_zip(conststd::list&lhs,conststd::list&rhs){std::list>result;for(std::pair::const_iterator,typenamestd::list::const_iterator>iter=std::pair::const_iterator,typenamestd::list::const_iterator>(lhs.cbegin(),rhs.cbegin());iter.first!=lhs.end()&&iter.secon

c++ - g++:使用 ZIP 文件作为输入

我们身边有Boost库。它由大量永远不会更改的文件组成,并且只使用其中的一小部分。如果我们要更改版本,我们会交换整个boost目录。目前,我们的SVN中有Boost源,逐个文件,这使得结帐操作非常缓慢,尤其是在Windows上。如果有一个符号/插件来处理ZIP文件中的C++文件,那就太好了,比如://@ZIPFSASSIGN'boost''boost.zip/boost'#includeg++是否支持编译器Hook?是否有任何关于ZIP支持的努力?其他想法? 最佳答案 我假设make或类似的构建系统参与构建您的软件的过程。我会将zi

c++ - 从 boost::archive::text_oarchive_impl 和 boost::archive::text_iarchive_impl 派生自定义存档类

注意:Boost的存档方案基于对称的输入和输出存档类。一直写这两者很乏味,所以我将使用?archive来表示oarchive和iarchive。总结:将自定义存档的基类从binary_?archive_impl更改为text_?archive_impl后,当编译器实例化时,我的自定义存档类不再“找到”>serialize(...)我的其他类中的方法。背景:我的应用程序使用binary_?archive_impl的子类成功地读取和写入文件到磁盘(文档和/或代码注释建议这优于从binary_?archive派生)。我需要从二进制文件格式切换到文本格式,因此我将自定义存档的基类切换为text