dense flow安装

Dense Flow安装

详见brantch opencv-3.1
参考dense_flow安装日志

虚拟环境

denseflow

路径

/home/ubuntu/users/zhanghao/opencv_3.4.10/dense_flow

1. 在虚拟环境py36下安装libzip:

sudo apt-get install libzip-dev

2. 下载dense_flow

git clone --recursive http://github.com/yjxiong/dense_flow

路径为:/home/ubuntu/users/zhanghao/dense_flow

3. 安装cmake

CMake是一个跨平台的编译(Build)工具,可以用简单的语句来描述所有平台的编译过程。 CMake能够输出各种各样的makefile或者project文件,能测试编译器所支持的C++特性,类似UNIX下的automake。

tar zxvf cmake-3.18.1-Linux-x86_64.tar.gz  

我所安装的路径为:/home/ubuntu/users/zhanghao/cmake-3.18.1-Linux-x86_64,没有跟dense_flow安装到一个文件夹下。

  • 添加cmake到环境变量
vim /etc/profile
export CMAKE_HOME=/opt/cmake/cmake-3.5.2-Linux-x86_64/bin
export PATH=$CMAKE_HOME:$PATH
  • 激活环境变量
source /etc/profile
  • 检验是否安装成功
cmake -version

在这里插入图片描述
这时就会退出
在这里插入图片描述
进入cmake界面:
在这里插入图片描述
每次用cmake都需要source /etc/profile激活。

4. 编译

在dense_flow中建立build文件夹,这点跟源码readme不同。

mkdir build && cd build

路径为:/home/ubuntu/users/zhanghao/dense_flow/bulid

  • 安装libzip:
wget https://libzip.org/download/libzip-1.7.3.tar.gz
tar -zxvf libzip-1.7.3.tar.gz
cd libzip-1.7.3
mkdir build && cd build

build路径为:/home/ubuntu/users/zhanghao/libzip-1.7.3/build

cmake ..
-- The C compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for include file CommonCrypto/CommonCrypto.h
-- Looking for include file CommonCrypto/CommonCrypto.h - not found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Could NOT find Nettle (missing: Nettle_LIBRARY Nettle_INCLUDE_DIR) (Required is at least version "3.0")
-- Could NOT find GnuTLS (missing: GNUTLS_LIBRARY GNUTLS_INCLUDE_DIR) 
-- Could NOT find MbedTLS (missing: MbedTLS_LIBRARY MbedTLS_INCLUDE_DIR) (Required is at least version "1.0")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")  
-- Looking for _close
-- Looking for _close - not found
-- Looking for _dup
-- Looking for _dup - not found
-- Looking for _fdopen
-- Looking for _fdopen - not found
-- Looking for _fileno
-- Looking for _fileno - not found
-- Looking for _setmode
-- Looking for _setmode - not found
-- Looking for _snprintf
-- Looking for _snprintf - not found
-- Looking for _strdup
-- Looking for _strdup - not found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for _strtoi64
-- Looking for _strtoi64 - not found
-- Looking for _strtoui64
-- Looking for _strtoui64 - not found
-- Looking for _unlink
-- Looking for _unlink - not found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for clonefile
-- Looking for clonefile - not found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - found
-- Looking for explicit_memset
-- Looking for explicit_memset - not found
-- Looking for fileno
-- Looking for fileno - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for ftello
-- Looking for ftello - found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for setmode
-- Looking for setmode - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for 3 include files sys/types.h, ..., fts.h
-- Looking for 3 include files sys/types.h, ..., fts.h - found
-- Looking for fts_open
-- Looking for fts_open - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int8
-- Check size of __int8 - failed
-- Check size of int8_t
-- Check size of int8_t - done
-- Check size of uint8_t
-- Check size of uint8_t - done
-- Check size of __int16
-- Check size of __int16 - failed
-- Check size of int16_t
-- Check size of int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Check size of __int32
-- Check size of __int32 - failed
-- Check size of int32_t
-- Check size of int32_t - done
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Performing Test HAVE_FICLONERANGE
-- Performing Test HAVE_FICLONERANGE - Success
-- Performing Test HAVE_NULLABLE
-- Performing Test HAVE_NULLABLE - Failed
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Searching 16 bit integer - Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.1.2") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Found LibLZMA: /usr/lib/x86_64-linux-gnu/liblzma.so (found suitable version "5.2.2", minimum required is "5.2") 
-- Looking for getopt
-- Looking for getopt - found
-- Found Perl: /usr/bin/perl (found version "5.26.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/users/zhanghao/libzip-1.7.3/build

make
Scanning dependencies of target zip
[  0%] Building C object lib/CMakeFiles/zip.dir/zip_add.c.o
[  0%] Building C object lib/CMakeFiles/zip.dir/zip_add_dir.c.o
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_add_entry.c.o
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_deflate.c.o
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_buffer.c.o
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_close.c.o
[  1%] Building C object lib/CMakeFiles/zip.dir/zip_delete.c.o
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_dir_add.c.o
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_dirent.c.o
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_discard.c.o
[  3%] Building C object lib/CMakeFiles/zip.dir/zip_entry.c.o
[  5%] Building C object lib/CMakeFiles/zip.dir/zip_error.c.o
[  5%] Building C object lib/CMakeFiles/zip.dir/zip_error_clear.c.o
[  5%] Building C object lib/CMakeFiles/zip.dir/zip_error_get.c.o
[  5%] Building C object lib/CMakeFiles/zip.dir/zip_error_get_sys_type.c.o
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_error_strerror.c.o
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_error_to_str.c.o
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_extra_field.c.o
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_extra_field_api.c.o
[  7%] Building C object lib/CMakeFiles/zip.dir/zip_fclose.c.o
[  8%] Building C object lib/CMakeFiles/zip.dir/zip_fdopen.c.o
[  8%] Building C object lib/CMakeFiles/zip.dir/zip_file_add.c.o
[  8%] Building C object lib/CMakeFiles/zip.dir/zip_file_error_clear.c.o
[  8%] Building C object lib/CMakeFiles/zip.dir/zip_file_error_get.c.o
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_comment.c.o
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_external_attributes.c.o
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_file_get_offset.c.o
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_file_rename.c.o
[ 10%] Building C object lib/CMakeFiles/zip.dir/zip_file_replace.c.o
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_comment.c.o
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_encryption.c.o
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_external_attributes.c.o
[ 12%] Building C object lib/CMakeFiles/zip.dir/zip_file_set_mtime.c.o
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_file_strerror.c.o
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_fopen.c.o
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_encrypted.c.o
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_index.c.o
[ 14%] Building C object lib/CMakeFiles/zip.dir/zip_fopen_index_encrypted.c.o
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_fread.c.o
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_fseek.c.o
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_ftell.c.o
[ 16%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_comment.c.o
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_get_archive_flag.c.o
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_get_encryption_implementation.c.o
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_get_file_comment.c.o
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_get_name.c.o
[ 17%] Building C object lib/CMakeFiles/zip.dir/zip_get_num_entries.c.o
[ 19%] Building C object lib/CMakeFiles/zip.dir/zip_get_num_files.c.o
[ 19%] Building C object lib/CMakeFiles/zip.dir/zip_hash.c.o
[ 19%] Building C object lib/CMakeFiles/zip.dir/zip_io_util.c.o
[ 19%] Building C object lib/CMakeFiles/zip.dir/zip_libzip_version.c.o
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_memdup.c.o
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_name_locate.c.o
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_new.c.o
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_open.c.o
[ 21%] Building C object lib/CMakeFiles/zip.dir/zip_pkware.c.o
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_progress.c.o
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_rename.c.o
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_replace.c.o
[ 23%] Building C object lib/CMakeFiles/zip.dir/zip_set_archive_comment.c.o
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_set_archive_flag.c.o
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_set_default_password.c.o
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_comment.c.o
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_set_file_compression.c.o
[ 25%] Building C object lib/CMakeFiles/zip.dir/zip_set_name.c.o
[ 26%] Building C object lib/CMakeFiles/zip.dir/zip_source_accept_empty.c.o
[ 26%] Building C object lib/CMakeFiles/zip.dir/zip_source_begin_write.c.o
[ 26%] Building C object lib/CMakeFiles/zip.dir/zip_source_begin_write_cloning.c.o
[ 26%] Building C object lib/CMakeFiles/zip.dir/zip_source_buffer.c.o
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_source_call.c.o
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_source_close.c.o
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_source_commit_write.c.o
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_source_compress.c.o
[ 28%] Building C object lib/CMakeFiles/zip.dir/zip_source_crc.c.o
[ 30%] Building C object lib/CMakeFiles/zip.dir/zip_source_error.c.o
[ 30%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_common.c.o
[ 30%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_stdio.c.o
[ 30%] Building C object lib/CMakeFiles/zip.dir/zip_source_free.c.o
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_source_function.c.o
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_source_get_file_attributes.c.o
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_source_is_deleted.c.o
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_source_layered.c.o
[ 32%] Building C object lib/CMakeFiles/zip.dir/zip_source_open.c.o
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_decode.c.o
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_source_pkware_encode.c.o
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_source_read.c.o
[ 33%] Building C object lib/CMakeFiles/zip.dir/zip_source_remove.c.o
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_source_rollback_write.c.o
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_source_seek.c.o
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_source_seek_write.c.o
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_source_stat.c.o
[ 35%] Building C object lib/CMakeFiles/zip.dir/zip_source_supports.c.o
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_source_tell.c.o
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_source_tell_write.c.o
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_source_window.c.o
[ 37%] Building C object lib/CMakeFiles/zip.dir/zip_source_write.c.o
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_source_zip.c.o
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_source_zip_new.c.o
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_stat.c.o
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_stat_index.c.o
[ 39%] Building C object lib/CMakeFiles/zip.dir/zip_stat_init.c.o
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_strerror.c.o
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_string.c.o
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_unchange.c.o
[ 41%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_all.c.o
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_archive.c.o
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_unchange_data.c.o
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_utf-8.c.o
[ 42%] Building C object lib/CMakeFiles/zip.dir/__/zip_err_str.c.o
[ 42%] Building C object lib/CMakeFiles/zip.dir/zip_mkstempm.c.o
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_source_file_stdio_named.c.o
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_random_unix.c.o
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_bzip2.c.o
[ 44%] Building C object lib/CMakeFiles/zip.dir/zip_algorithm_xz.c.o
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_crypto_openssl.c.o
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_winzip_aes.c.o
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_decode.c.o
[ 46%] Building C object lib/CMakeFiles/zip.dir/zip_source_winzip_aes_encode.c.o
[ 46%] Linking C shared library libzip.so
[ 46%] Built target zip
Scanning dependencies of target man
[ 48%] Preparing ZIP_SOURCE_GET_ARGS.3
[ 48%] Preparing libzip.3
[ 48%] Preparing zip_add.3
[ 48%] Preparing zip_add_dir.3
[ 48%] Preparing zip_close.3
[ 50%] Preparing zip_compression_method_supported.3
[ 50%] Preparing zip_delete.3
[ 50%] Preparing zip_dir_add.3
[ 50%] Preparing zip_discard.3
[ 51%] Preparing zip_encryption_method_supported.3
[ 51%] Preparing zip_error_clear.3
[ 51%] Preparing zip_error_code_system.3
[ 51%] Preparing zip_error_code_zip.3
[ 51%] Preparing zip_error_fini.3
[ 53%] Preparing zip_error_get.3
[ 53%] Preparing zip_error_get_sys_type.3
[ 53%] Preparing zip_error_init.3
[ 53%] Preparing zip_error_set.3
[ 55%] Preparing zip_error_strerror.3
[ 55%] Preparing zip_error_system_type.3
[ 55%] Preparing zip_error_to_data.3
[ 55%] Preparing zip_error_to_str.3
[ 55%] Preparing zip_errors.3
[ 57%] Preparing zip_fclose.3
[ 57%] Preparing zip_fdopen.3
[ 57%] Preparing zip_file_add.3
[ 57%] Preparing zip_file_attributes_init.3
[ 58%] Preparing zip_file_extra_field_delete.3
[ 58%] Preparing zip_file_extra_field_get.3
[ 58%] Preparing zip_file_extra_field_set.3
[ 58%] Preparing zip_file_extra_fields_count.3
[ 58%] Preparing zip_file_get_comment.3
[ 60%] Preparing zip_file_get_error.3
[ 60%] Preparing zip_file_get_external_attributes.3
[ 60%] Preparing zip_file_rename.3
[ 60%] Preparing zip_file_set_comment.3
[ 62%] Preparing zip_file_set_encryption.3
[ 62%] Preparing zip_file_set_external_attributes.3
[ 62%] Preparing zip_file_set_mtime.3
[ 62%] Preparing zip_file_strerror.3
[ 62%] Preparing zip_fopen.3
[ 64%] Preparing zip_fopen_encrypted.3
[ 64%] Preparing zip_fread.3
[ 64%] Preparing zip_fseek.3
[ 64%] Preparing zip_ftell.3
[ 66%] Preparing zip_get_archive_comment.3
[ 66%] Preparing zip_get_archive_flag.3
[ 66%] Preparing zip_get_error.3
[ 66%] Preparing zip_get_file_comment.3
[ 66%] Preparing zip_get_name.3
[ 67%] Preparing zip_get_num_entries.3
[ 67%] Preparing zip_get_num_files.3
[ 67%] Preparing zip_libzip_version.3
[ 67%] Preparing zip_name_locate.3
[ 69%] Preparing zip_open.3
[ 69%] Preparing zip_register_progress_callback.3
[ 69%] Preparing zip_register_progress_callback_with_state.3
[ 69%] Preparing zip_rename.3
[ 69%] Preparing zip_set_archive_comment.3
[ 71%] Preparing zip_set_archive_flag.3
[ 71%] Preparing zip_set_default_password.3
[ 71%] Preparing zip_set_file_comment.3
[ 71%] Preparing zip_set_file_compression.3
[ 73%] Preparing zip_source.3
[ 73%] Preparing zip_source_begin_write.3
[ 73%] Preparing zip_source_buffer.3
[ 73%] Preparing zip_source_buffer_fragment.3
[ 73%] Preparing zip_source_close.3
[ 75%] Preparing zip_source_commit_write.3
[ 75%] Preparing zip_source_error.3
[ 75%] Preparing zip_source_file.3
[ 75%] Preparing zip_source_filep.3
[ 76%] Preparing zip_source_free.3
[ 76%] Preparing zip_source_function.3
[ 76%] Preparing zip_source_is_deleted.3
[ 76%] Preparing zip_source_keep.3
[ 76%] Preparing zip_source_make_command_bitmap.3
[ 78%] Preparing zip_source_open.3
[ 78%] Preparing zip_source_read.3
[ 78%] Preparing zip_source_rollback_write.3
[ 78%] Preparing zip_source_seek.3
[ 80%] Preparing zip_source_seek_compute_offset.3
[ 80%] Preparing zip_source_seek_write.3
[ 80%] Preparing zip_source_stat.3
[ 80%] Preparing zip_source_tell.3
[ 80%] Preparing zip_source_tell_write.3
[ 82%] Preparing zip_source_win32a.3
[ 82%] Preparing zip_source_win32handle.3
[ 82%] Preparing zip_source_win32w.3
[ 82%] Preparing zip_source_write.3
[ 83%] Preparing zip_source_zip.3
[ 83%] Preparing zip_stat.3
[ 83%] Preparing zip_stat_init.3
[ 83%] Preparing zip_unchange.3
[ 85%] Preparing zip_unchange_all.3
[ 85%] Preparing zip_unchange_archive.3
[ 85%] Preparing zipcmp.1
[ 85%] Preparing zipmerge.1
[ 85%] Preparing ziptool.1
[ 85%] Built target man
Scanning dependencies of target zipcmp
[ 87%] Building C object src/CMakeFiles/zipcmp.dir/zipcmp.c.o
[ 87%] Linking C executable zipcmp
[ 87%] Built target zipcmp
Scanning dependencies of target zipmerge
[ 87%] Building C object src/CMakeFiles/zipmerge.dir/zipmerge.c.o
[ 87%] Linking C executable zipmerge
[ 87%] Built target zipmerge
Scanning dependencies of target ziptool
[ 89%] Building C object src/CMakeFiles/ziptool.dir/ziptool.c.o
[ 89%] Linking C executable ziptool
[ 89%] Built target ziptool
Scanning dependencies of target testinput
[ 89%] Built target testinput
Scanning dependencies of target nonrandomopen
[ 91%] Building C object regress/CMakeFiles/nonrandomopen.dir/nonrandomopen.c.o
[ 91%] Linking C shared module libnonrandomopen.so
[ 91%] Built target nonrandomopen
Scanning dependencies of target fopen_unchanged
[ 92%] Building C object regress/CMakeFiles/fopen_unchanged.dir/fopen_unchanged.c.o
[ 92%] Linking C executable fopen_unchanged
[ 92%] Built target fopen_unchanged
Scanning dependencies of target hole
[ 92%] Building C object regress/CMakeFiles/hole.dir/hole.c.o
[ 94%] Building C object regress/CMakeFiles/hole.dir/source_hole.c.o
[ 94%] Linking C executable hole
[ 94%] Built target hole
Scanning dependencies of target ziptool_regress
[ 94%] Building C object regress/CMakeFiles/ziptool_regress.dir/ziptool_regress.c.o
[ 94%] Building C object regress/CMakeFiles/ziptool_regress.dir/source_hole.c.o
[ 96%] Linking C executable ziptool_regress
[ 96%] Built target ziptool_regress
Scanning dependencies of target can_clone_file
[ 96%] Building C object regress/CMakeFiles/can_clone_file.dir/can_clone_file.c.o
[ 96%] Linking C executable can_clone_file
[ 96%] Built target can_clone_file
Scanning dependencies of target tryopen
[ 98%] Building C object regress/CMakeFiles/tryopen.dir/tryopen.c.o
[ 98%] Linking C executable tryopen
[ 98%] Built target tryopen
Scanning dependencies of target add_from_filep
[ 98%] Building C object regress/CMakeFiles/add_from_filep.dir/add_from_filep.c.o
[ 98%] Linking C executable add_from_filep
[ 98%] Built target add_from_filep
Scanning dependencies of target fuzz_main
[ 98%] Building C object regress/CMakeFiles/fuzz_main.dir/fuzz_main.c.o
[ 98%] Linking C executable fuzz_main
[ 98%] Built target fuzz_main
Scanning dependencies of target fseek
[100%] Building C object regress/CMakeFiles/fseek.dir/fseek.c.o
[100%] Linking C executable fseek
[100%] Built target fseek
Scanning dependencies of target nonrandomopentest
[100%] Building C object regress/CMakeFiles/nonrandomopentest.dir/nonrandomopentest.c.o
[100%] Linking C executable nonrandomopentest
[100%] Built target nonrandomopentest
Scanning dependencies of target fread
[100%] Building C object regress/CMakeFiles/fread.dir/fread.c.o
[100%] Linking C executable fread
[100%] Built target fread
Scanning dependencies of target in-memory
[100%] Building C object examples/CMakeFiles/in-memory.dir/in-memory.c.o
[100%] Linking C executable in-memory
[100%] Built target in-memory

make test
Running tests...
Test project /home/ubuntu/users/zhanghao/libzip-1.7.3/build
        Start   1: add_dir.test
  1/134 Test   #1: add_dir.test .....................................   Passed    0.11 sec
        Start   2: add_from_buffer.test
  2/134 Test   #2: add_from_buffer.test .............................   Passed    0.04 sec
        Start   3: add_from_file.test
  3/134 Test   #3: add_from_file.test ...............................   Passed    0.04 sec
        Start   4: add_from_file_duplicate.test
  4/134 Test   #4: add_from_file_duplicate.test .....................   Passed    0.04 sec
        Start   5: add_from_file_twice_duplicate.test
  5/134 Test   #5: add_from_file_twice_duplicate.test ...............   Passed    0.04 sec
        Start   6: add_from_filep.test
  6/134 Test   #6: add_from_filep.test ..............................   Passed    0.04 sec
        Start   7: add_from_stdin.test
  7/134 Test   #7: add_from_stdin.test ..............................   Passed    0.04 sec
        Start   8: add_from_zip_closed.test
  8/134 Test   #8: add_from_zip_closed.test .........................   Passed    0.03 sec
        Start   9: add_from_zip_deflated.test
  9/134 Test   #9: add_from_zip_deflated.test .......................   Passed    0.04 sec
        Start  10: add_from_zip_deflated2.test
 10/134 Test  #10: add_from_zip_deflated2.test ......................   Passed    0.04 sec
        Start  11: add_from_zip_partial_deflated.test
 11/134 Test  #11: add_from_zip_partial_deflated.test ...............   Passed    0.04 sec
        Start  12: add_from_zip_partial_stored.test
 12/134 Test  #12: add_from_zip_partial_stored.test .................   Passed    0.03 sec
        Start  13: add_from_zip_stored.test
 13/134 Test  #13: add_from_zip_stored.test .........................   Passed    0.03 sec
        Start  14: add_stored.test
 14/134 Test  #14: add_stored.test ..................................   Passed    0.03 sec
        Start  15: add_stored_in_memory.test
 15/134 Test  #15: add_stored_in_memory.test ........................   Passed    0.03 sec
        Start  16: buffer-fragment-read.test
 16/134 Test  #16: buffer-fragment-read.test ........................   Passed    0.04 sec
        Start  17: buffer-fragment-write.test
 17/134 Test  #17: buffer-fragment-write.test .......................   Passed    0.04 sec
        Start  18: cancel_45.test
 18/134 Test  #18: cancel_45.test ...................................   Passed    0.04 sec
        Start  19: cancel_90.test
 19/134 Test  #19: cancel_90.test ...................................   Passed    0.03 sec
        Start  20: clone-buffer-add.test
 20/134 Test  #20: clone-buffer-add.test ............................   Passed    0.03 sec
        Start  21: clone-buffer-delete.test
 21/134 Test  #21: clone-buffer-delete.test .........................   Passed    0.03 sec
        Start  22: clone-buffer-replace.test
 22/134 Test  #22: clone-buffer-replace.test ........................   Passed    0.03 sec
        Start  23: clone-fs-add.test
 23/134 Test  #23: clone-fs-add.test ................................***Skipped   0.03 sec
        Start  24: clone-fs-delete.test
 24/134 Test  #24: clone-fs-delete.test .............................***Skipped   0.03 sec
        Start  25: clone-fs-replace.test
 25/134 Test  #25: clone-fs-replace.test ............................***Skipped   0.03 sec
        Start  26: cm-default.test
 26/134 Test  #26: cm-default.test ..................................   Passed    0.04 sec
        Start  27: count_entries.test
 27/134 Test  #27: count_entries.test ...............................   Passed    0.51 sec
        Start  28: decrypt-correct-password-aes128.test
 28/134 Test  #28: decrypt-correct-password-aes128.test .............   Passed    0.04 sec
        Start  29: decrypt-correct-password-aes192.test
 29/134 Test  #29: decrypt-correct-password-aes192.test .............   Passed    0.03 sec
        Start  30: decrypt-correct-password-aes256.test
 30/134 Test  #30: decrypt-correct-password-aes256.test .............   Passed    0.03 sec
        Start  31: decrypt-correct-password-pkware.test
 31/134 Test  #31: decrypt-correct-password-pkware.test .............   Passed    0.03 sec
        Start  32: decrypt-no-password-aes256.test
 32/134 Test  #32: decrypt-no-password-aes256.test ..................   Passed    0.03 sec
        Start  33: decrypt-wrong-password-aes128.test
 33/134 Test  #33: decrypt-wrong-password-aes128.test ...............   Passed    0.03 sec
        Start  34: decrypt-wrong-password-aes192.test
 34/134 Test  #34: decrypt-wrong-password-aes192.test ...............   Passed    0.03 sec
        Start  35: decrypt-wrong-password-aes256.test
 35/134 Test  #35: decrypt-wrong-password-aes256.test ...............   Passed    0.03 sec
        Start  36: decrypt-wrong-password-pkware.test
 36/134 Test  #36: decrypt-wrong-password-pkware.test ...............   Passed    0.03 sec
        Start  37: delete_add_same.test
 37/134 Test  #37: delete_add_same.test .............................   Passed    0.04 sec
        Start  38: delete_invalid.test
 38/134 Test  #38: delete_invalid.test ..............................   Passed    0.03 sec
        Start  39: delete_last.test
 39/134 Test  #39: delete_last.test .................................   Passed    0.03 sec
        Start  40: delete_multiple_last.test
 40/134 Test  #40: delete_multiple_last.test ........................   Passed    0.03 sec
        Start  41: delete_multiple_partial.test
 41/134 Test  #41: delete_multiple_partial.test .....................   Passed    0.04 sec
        Start  42: delete_renamed_rename.test
 42/134 Test  #42: delete_renamed_rename.test .......................   Passed    0.04 sec
        Start  43: encrypt.test
 43/134 Test  #43: encrypt.test .....................................   Passed    0.03 sec
        Start  44: encryption-nonrandom-aes128.test
 44/134 Test  #44: encryption-nonrandom-aes128.test .................   Passed    0.04 sec
        Start  45: encryption-nonrandom-aes192.test
 45/134 Test  #45: encryption-nonrandom-aes192.test .................   Passed    0.04 sec
        Start  46: encryption-nonrandom-aes256.test
 46/134 Test  #46: encryption-nonrandom-aes256.test .................   Passed    0.04 sec
        Start  47: encryption-nonrandom-pkware.test
 47/134 Test  #47: encryption-nonrandom-pkware.test .................   Passed    0.04 sec
        Start  48: encryption-remove.test
 48/134 Test  #48: encryption-remove.test ...........................   Passed    0.03 sec
        Start  49: extra_add.test
 49/134 Test  #49: extra_add.test ...................................   Passed    0.04 sec
        Start  50: extra_add_multiple.test
 50/134 Test  #50: extra_add_multiple.test ..........................   Passed    0.04 sec
        Start  51: extra_count.test
 51/134 Test  #51: extra_count.test .................................   Passed    0.03 sec
        Start  52: extra_count_by_id.test
 52/134 Test  #52: extra_count_by_id.test ...........................   Passed    0.03 sec
        Start  53: extra_count_ignore_zip64.test
 53/134 Test  #53: extra_count_ignore_zip64.test ....................   Passed    0.04 sec
        Start  54: extra_delete.test
 54/134 Test  #54: extra_delete.test ................................   Passed    0.04 sec
        Start  55: extra_delete_by_id.test
 55/134 Test  #55: extra_delete_by_id.test ..........................   Passed    0.04 sec
        Start  56: extra_field_align.test
 56/134 Test  #56: extra_field_align.test ...........................   Passed    0.04 sec
        Start  57: extra_get.test
 57/134 Test  #57: extra_get.test ...................................   Passed    0.04 sec
        Start  58: extra_get_by_id.test
 58/134 Test  #58: extra_get_by_id.test .............................   Passed    0.04 sec
        Start  59: extra_set.test
 59/134 Test  #59: extra_set.test ...................................   Passed    0.03 sec
        Start  60: extra_set_modify_c.test
 60/134 Test  #60: extra_set_modify_c.test ..........................   Passed    0.04 sec
        Start  61: extra_set_modify_l.test
 61/134 Test  #61: extra_set_modify_l.test ..........................   Passed    0.04 sec
        Start  62: fdopen_ok.test
 62/134 Test  #62: fdopen_ok.test ...................................   Passed    0.06 sec
        Start  63: file_comment_encmismatch.test
 63/134 Test  #63: file_comment_encmismatch.test ....................   Passed    0.04 sec
        Start  64: fopen_unchanged.test
 64/134 Test  #64: fopen_unchanged.test .............................   Passed    0.03 sec
        Start  65: fread.test
 65/134 Test  #65: fread.test .......................................   Passed    0.04 sec
        Start  66: fseek_deflated.test
 66/134 Test  #66: fseek_deflated.test ..............................   Passed    0.04 sec
        Start  67: fseek_fail.test
 67/134 Test  #67: fseek_fail.test ..................................   Passed    0.04 sec
        Start  68: fseek_ok.test
 68/134 Test  #68: fseek_ok.test ....................................   Passed    0.04 sec
        Start  69: get_comment.test
 69/134 Test  #69: get_comment.test .................................   Passed    0.04 sec
        Start  70: junk_at_end.test
 70/134 Test  #70: junk_at_end.test .................................   Passed    0.03 sec
        Start  71: junk_at_start.test
 71/134 Test  #71: junk_at_start.test ...............................   Passed    0.03 sec
        Start  72: name_locate.test
 72/134 Test  #72: name_locate.test .................................   Passed    0.04 sec
        Start  73: open_cons_extrabytes.test
 73/134 Test  #73: open_cons_extrabytes.test ........................   Passed    0.03 sec
        Start  74: open_empty.test
 74/134 Test  #74: open_empty.test ..................................   Passed    0.04 sec
        Start  75: open_empty_2.test
 75/134 Test  #75: open_empty_2.test ................................   Passed    0.03 sec
        Start  76: open_extrabytes.test
 76/134 Test  #76: open_extrabytes.test .............................   Passed    0.03 sec
        Start  77: open_file_count.test
 77/134 Test  #77: open_file_count.test .............................   Passed    0.04 sec
        Start  78: open_filename_duplicate.test
 78/134 Test  #78: open_filename_duplicate.test .....................   Passed    0.03 sec
        Start  79: open_filename_duplicate_consistency.test
 79/134 Test  #79: open_filename_duplicate_consistency.test .........   Passed    0.04 sec
        Start  80: open_filename_duplicate_empty.test
 80/134 Test  #80: open_filename_duplicate_empty.test ...............   Passed    0.03 sec
        Start  81: open_filename_duplicate_empty_consistency.test
 81/134 Test  #81: open_filename_duplicate_empty_consistency.test ...   Passed    0.03 sec
        Start  82: open_filename_empty.test
 82/134 Test  #82: open_filename_empty.test .........................   Passed    0.04 sec
        Start  83: open_incons.test
 83/134 Test  #83: open_incons.test .................................   Passed    0.05 sec
        Start  84: open_many_fail.test
 84/134 Test  #84: open_many_fail.test ..............................   Passed    3.93 sec
        Start  85: open_many_ok.test
 85/134 Test  #85: open_many_ok.test ................................   Passed    2.36 sec
        Start  86: open_multidisk.test
 86/134 Test  #86: open_multidisk.test ..............................   Passed    0.03 sec
        Start  87: open_new_but_exists.test
 87/134 Test  #87: open_new_but_exists.test .........................   Passed    0.03 sec
        Start  88: open_new_ok.test
 88/134 Test  #88: open_new_ok.test .................................   Passed    0.03 sec
        Start  89: open_nonarchive.test
 89/134 Test  #89: open_nonarchive.test .............................   Passed    0.03 sec
        Start  90: open_nosuchfile.test
 90/134 Test  #90: open_nosuchfile.test .............................   Passed    0.03 sec
        Start  91: open_ok.test
 91/134 Test  #91: open_ok.test .....................................   Passed    0.03 sec
        Start  92: open_too_short.test
 92/134 Test  #92: open_too_short.test ..............................   Passed    0.03 sec
        Start  93: open_truncate.test
 93/134 Test  #93: open_truncate.test ...............................   Passed    0.03 sec
        Start  94: open_zip64_3mf.test
 94/134 Test  #94: open_zip64_3mf.test ..............................   Passed    0.03 sec
        Start  95: open_zip64_ok.test
 95/134 Test  #95: open_zip64_ok.test ...............................   Passed    0.03 sec
        Start  96: preload.test
 96/134 Test  #96: preload.test .....................................   Passed    0.03 sec
        Start  97: progress.test
 97/134 Test  #97: progress.test ....................................   Passed    0.04 sec
        Start  98: rename_ascii.test
 98/134 Test  #98: rename_ascii.test ................................   Passed    0.03 sec
        Start  99: rename_cp437.test
 99/134 Test  #99: rename_cp437.test ................................   Passed    0.03 sec
        Start 100: rename_deleted.test
100/134 Test #100: rename_deleted.test ..............................   Passed    0.03 sec
        Start 101: rename_fail.test
101/134 Test #101: rename_fail.test .................................   Passed    0.03 sec
        Start 102: rename_ok.test
102/134 Test #102: rename_ok.test ...................................   Passed    0.03 sec
        Start 103: rename_utf8.test
103/134 Test #103: rename_utf8.test .................................   Passed    0.03 sec
        Start 104: rename_utf8_encmismatch.test
104/134 Test #104: rename_utf8_encmismatch.test .....................   Passed    0.03 sec
        Start 105: set_comment_all.test
105/134 Test #105: set_comment_all.test .............................   Passed    0.03 sec
        Start 106: set_comment_localonly.test
106/134 Test #106: set_comment_localonly.test .......................   Passed    0.03 sec
        Start 107: set_comment_removeglobal.test
107/134 Test #107: set_comment_removeglobal.test ....................   Passed    0.03 sec
        Start 108: set_comment_revert.test
108/134 Test #108: set_comment_revert.test ..........................   Passed    0.03 sec
        Start 109: set_compression_bzip2_to_deflate.test
109/134 Test #109: set_compression_bzip2_to_deflate.test ............   Passed    0.03 sec
        Start 110: set_compression_deflate_to_bzip2.test
110/134 Test #110: set_compression_deflate_to_bzip2.test ............   Passed    0.03 sec
        Start 111: set_compression_deflate_to_deflate.test
111/134 Test #111: set_compression_deflate_to_deflate.test ..........   Passed    0.03 sec
        Start 112: set_compression_deflate_to_store.test
112/134 Test #112: set_compression_deflate_to_store.test ............   Passed    0.03 sec
        Start 113: set_compression_store_to_bzip2.test
113/134 Test #113: set_compression_store_to_bzip2.test ..............   Passed    0.03 sec
        Start 114: set_compression_store_to_deflate.test
114/134 Test #114: set_compression_store_to_deflate.test ............   Passed    0.03 sec
        Start 115: set_compression_store_to_store.test
115/134 Test #115: set_compression_store_to_store.test ..............   Passed    0.03 sec
        Start 116: set_compression_store_to_xz.test
116/134 Test #116: set_compression_store_to_xz.test .................   Passed    0.04 sec
        Start 117: set_compression_unknown.test
117/134 Test #117: set_compression_unknown.test .....................   Passed    0.03 sec
        Start 118: set_compression_xz_to_store.test
118/134 Test #118: set_compression_xz_to_store.test .................   Passed    0.03 sec
        Start 119: set_file_dostime.test
119/134 Test #119: set_file_dostime.test ............................   Passed    0.03 sec
        Start 120: stat_index_cp437_guess.test
120/134 Test #120: stat_index_cp437_guess.test ......................   Passed    0.03 sec
        Start 121: stat_index_cp437_raw.test
121/134 Test #121: stat_index_cp437_raw.test ........................   Passed    0.03 sec
        Start 122: stat_index_cp437_strict.test
122/134 Test #122: stat_index_cp437_strict.test .....................   Passed    0.03 sec
        Start 123: stat_index_fileorder.test
123/134 Test #123: stat_index_fileorder.test ........................   Passed    0.03 sec
        Start 124: stat_index_streamed.test
124/134 Test #124: stat_index_streamed.test .........................   Passed    0.03 sec
        Start 125: stat_index_streamed_zip64.test
125/134 Test #125: stat_index_streamed_zip64.test ...................   Passed    0.03 sec
        Start 126: stat_index_utf8_guess.test
126/134 Test #126: stat_index_utf8_guess.test .......................   Passed    0.04 sec
        Start 127: stat_index_utf8_raw.test
127/134 Test #127: stat_index_utf8_raw.test .........................   Passed    0.03 sec
        Start 128: stat_index_utf8_strict.test
128/134 Test #128: stat_index_utf8_strict.test ......................   Passed    0.03 sec
        Start 129: stat_index_utf8_unmarked_strict.test
129/134 Test #129: stat_index_utf8_unmarked_strict.test .............   Passed    0.04 sec
        Start 130: stat_index_zip64.test
130/134 Test #130: stat_index_zip64.test ............................   Passed    0.88 sec
        Start 131: utf-8-standardization.test
131/134 Test #131: utf-8-standardization.test .......................   Passed    0.04 sec
        Start 132: zip-in-archive-comment.test
132/134 Test #132: zip-in-archive-comment.test ......................   Passed    0.04 sec
        Start 133: zip64_creation.test
133/134 Test #133: zip64_creation.test ..............................   Passed   24.67 sec
        Start 134: zip64_stored_creation.test
134/134 Test #134: zip64_stored_creation.test .......................   Passed   14.84 sec

100% tests passed, 0 tests failed out of 134

Total Test time (real) =  51.87 sec

The following tests did not run:
	 23 - clone-fs-add.test (Skipped)
	 24 - clone-fs-delete.test (Skipped)
	 25 - clone-fs-replace.test (Skipped)

sudo make install
[ 46%] Built target zip
[ 85%] Built target man
[ 87%] Built target zipcmp
[ 87%] Built target zipmerge
[ 89%] Built target ziptool
[ 89%] Built target testinput
[ 91%] Built target nonrandomopen
[ 92%] Built target fopen_unchanged
[ 94%] Built target hole
[ 96%] Built target ziptool_regress
[ 96%] Built target can_clone_file
[ 98%] Built target tryopen
[ 98%] Built target add_from_filep
[ 98%] Built target fuzz_main
[100%] Built target fseek
[100%] Built target nonrandomopentest
[100%] Built target fread
[100%] Built target in-memory
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/pkgconfig/libzip.pc
-- Installing: /usr/local/include/zipconf.h
-- Installing: /usr/local/lib/cmake/libzip/libzip-config.cmake
-- Installing: /usr/local/lib/cmake/libzip/libzip-config-version.cmake
-- Installing: /usr/local/lib/cmake/libzip/libzip-targets.cmake
-- Installing: /usr/local/lib/cmake/libzip/libzip-targets-noconfig.cmake
-- Installing: /usr/local/lib/libzip.so.5.3
-- Installing: /usr/local/lib/libzip.so.5
-- Installing: /usr/local/lib/libzip.so
-- Installing: /usr/local/include/zip.h
-- Installing: /usr/local/share/man/man3/ZIP_SOURCE_GET_ARGS.3
-- Installing: /usr/local/share/man/man3/libzip.3
-- Installing: /usr/local/share/man/man3/zip_add.3
-- Installing: /usr/local/share/man/man3/zip_add_dir.3
-- Installing: /usr/local/share/man/man3/zip_close.3
-- Installing: /usr/local/share/man/man3/zip_compression_method_supported.3
-- Installing: /usr/local/share/man/man3/zip_delete.3
-- Installing: /usr/local/share/man/man3/zip_dir_add.3
-- Installing: /usr/local/share/man/man3/zip_discard.3
-- Installing: /usr/local/share/man/man3/zip_encryption_method_supported.3
-- Installing: /usr/local/share/man/man3/zip_error_clear.3
-- Installing: /usr/local/share/man/man3/zip_error_code_system.3
-- Installing: /usr/local/share/man/man3/zip_error_code_zip.3
-- Installing: /usr/local/share/man/man3/zip_error_fini.3
-- Installing: /usr/local/share/man/man3/zip_error_get.3
-- Installing: /usr/local/share/man/man3/zip_error_get_sys_type.3
-- Installing: /usr/local/share/man/man3/zip_error_init.3
-- Installing: /usr/local/share/man/man3/zip_error_set.3
-- Installing: /usr/local/share/man/man3/zip_error_strerror.3
-- Installing: /usr/local/share/man/man3/zip_error_system_type.3
-- Installing: /usr/local/share/man/man3/zip_error_to_data.3
-- Installing: /usr/local/share/man/man3/zip_error_to_str.3
-- Installing: /usr/local/share/man/man3/zip_errors.3
-- Installing: /usr/local/share/man/man3/zip_fclose.3
-- Installing: /usr/local/share/man/man3/zip_fdopen.3
-- Installing: /usr/local/share/man/man3/zip_file_add.3
-- Installing: /usr/local/share/man/man3/zip_file_attributes_init.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_field_delete.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_field_get.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_field_set.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_fields_count.3
-- Installing: /usr/local/share/man/man3/zip_file_get_comment.3
-- Installing: /usr/local/share/man/man3/zip_file_get_error.3
-- Installing: /usr/local/share/man/man3/zip_file_get_external_attributes.3
-- Installing: /usr/local/share/man/man3/zip_file_rename.3
-- Installing: /usr/local/share/man/man3/zip_file_set_comment.3
-- Installing: /usr/local/share/man/man3/zip_file_set_encryption.3
-- Installing: /usr/local/share/man/man3/zip_file_set_external_attributes.3
-- Installing: /usr/local/share/man/man3/zip_file_set_mtime.3
-- Installing: /usr/local/share/man/man3/zip_file_strerror.3
-- Installing: /usr/local/share/man/man3/zip_fopen.3
-- Installing: /usr/local/share/man/man3/zip_fopen_encrypted.3
-- Installing: /usr/local/share/man/man3/zip_fread.3
-- Installing: /usr/local/share/man/man3/zip_fseek.3
-- Installing: /usr/local/share/man/man3/zip_ftell.3
-- Installing: /usr/local/share/man/man3/zip_get_archive_comment.3
-- Installing: /usr/local/share/man/man3/zip_get_archive_flag.3
-- Installing: /usr/local/share/man/man3/zip_get_error.3
-- Installing: /usr/local/share/man/man3/zip_get_file_comment.3
-- Installing: /usr/local/share/man/man3/zip_get_name.3
-- Installing: /usr/local/share/man/man3/zip_get_num_entries.3
-- Installing: /usr/local/share/man/man3/zip_get_num_files.3
-- Installing: /usr/local/share/man/man3/zip_libzip_version.3
-- Installing: /usr/local/share/man/man3/zip_name_locate.3
-- Installing: /usr/local/share/man/man3/zip_open.3
-- Installing: /usr/local/share/man/man3/zip_register_progress_callback.3
-- Installing: /usr/local/share/man/man3/zip_register_progress_callback_with_state.3
-- Installing: /usr/local/share/man/man3/zip_rename.3
-- Installing: /usr/local/share/man/man3/zip_set_archive_comment.3
-- Installing: /usr/local/share/man/man3/zip_set_archive_flag.3
-- Installing: /usr/local/share/man/man3/zip_set_default_password.3
-- Installing: /usr/local/share/man/man3/zip_set_file_comment.3
-- Installing: /usr/local/share/man/man3/zip_set_file_compression.3
-- Installing: /usr/local/share/man/man3/zip_source.3
-- Installing: /usr/local/share/man/man3/zip_source_begin_write.3
-- Installing: /usr/local/share/man/man3/zip_source_buffer.3
-- Installing: /usr/local/share/man/man3/zip_source_buffer_fragment.3
-- Installing: /usr/local/share/man/man3/zip_source_close.3
-- Installing: /usr/local/share/man/man3/zip_source_commit_write.3
-- Installing: /usr/local/share/man/man3/zip_source_error.3
-- Installing: /usr/local/share/man/man3/zip_source_file.3
-- Installing: /usr/local/share/man/man3/zip_source_filep.3
-- Installing: /usr/local/share/man/man3/zip_source_free.3
-- Installing: /usr/local/share/man/man3/zip_source_function.3
-- Installing: /usr/local/share/man/man3/zip_source_is_deleted.3
-- Installing: /usr/local/share/man/man3/zip_source_keep.3
-- Installing: /usr/local/share/man/man3/zip_source_make_command_bitmap.3
-- Installing: /usr/local/share/man/man3/zip_source_open.3
-- Installing: /usr/local/share/man/man3/zip_source_read.3
-- Installing: /usr/local/share/man/man3/zip_source_rollback_write.3
-- Installing: /usr/local/share/man/man3/zip_source_seek.3
-- Installing: /usr/local/share/man/man3/zip_source_seek_compute_offset.3
-- Installing: /usr/local/share/man/man3/zip_source_seek_write.3
-- Installing: /usr/local/share/man/man3/zip_source_stat.3
-- Installing: /usr/local/share/man/man3/zip_source_tell.3
-- Installing: /usr/local/share/man/man3/zip_source_tell_write.3
-- Installing: /usr/local/share/man/man3/zip_source_win32a.3
-- Installing: /usr/local/share/man/man3/zip_source_win32handle.3
-- Installing: /usr/local/share/man/man3/zip_source_win32w.3
-- Installing: /usr/local/share/man/man3/zip_source_write.3
-- Installing: /usr/local/share/man/man3/zip_source_zip.3
-- Installing: /usr/local/share/man/man3/zip_stat.3
-- Installing: /usr/local/share/man/man3/zip_stat_init.3
-- Installing: /usr/local/share/man/man3/zip_unchange.3
-- Installing: /usr/local/share/man/man3/zip_unchange_all.3
-- Installing: /usr/local/share/man/man3/zip_unchange_archive.3
-- Installing: /usr/local/share/man/man1/zipcmp.1
-- Installing: /usr/local/share/man/man1/zipmerge.1
-- Installing: /usr/local/share/man/man1/ziptool.1
-- Installing: /usr/local/share/man/man3/zip_replace.3
-- Installing: /usr/local/share/man/man3/zip_file_error_clear.3
-- Installing: /usr/local/share/man/man3/zip_file_error_get.3
-- Installing: /usr/local/share/man/man3/zip_error_init_with_code.3
-- Installing: /usr/local/share/man/man3/zip_file_replace.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_field_delete_by_id.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_field_get_by_id.3
-- Installing: /usr/local/share/man/man3/zip_file_extra_fields_count_by_id.3
-- Installing: /usr/local/share/man/man3/zip_file_set_dostime.3
-- Installing: /usr/local/share/man/man3/zip_strerror.3
-- Installing: /usr/local/share/man/man3/zip_fopen_index.3
-- Installing: /usr/local/share/man/man3/zip_fopen_index_encrypted.3
-- Installing: /usr/local/share/man/man3/zip_open_from_source.3
-- Installing: /usr/local/share/man/man3/zip_source_begin_write_cloning.3
-- Installing: /usr/local/share/man/man3/zip_source_buffer_create.3
-- Installing: /usr/local/share/man/man3/zip_source_buffer_fragment_create.3
-- Installing: /usr/local/share/man/man3/zip_source_file_create.3
-- Installing: /usr/local/share/man/man3/zip_source_filep_create.3
-- Installing: /usr/local/share/man/man3/zip_source_function_create.3
-- Installing: /usr/local/share/man/man3/zip_source_win32a_create.3
-- Installing: /usr/local/share/man/man3/zip_source_win32handle_create.3
-- Installing: /usr/local/share/man/man3/zip_source_win32w_create.3
-- Installing: /usr/local/share/man/man3/zip_stat_index.3
-- Installing: /usr/local/bin/zipcmp
-- Set runtime path of "/usr/local/bin/zipcmp" to ""
-- Installing: /usr/local/bin/zipmerge
-- Set runtime path of "/usr/local/bin/zipmerge" to ""
-- Installing: /usr/local/bin/ziptool
-- Set runtime path of "/usr/local/bin/ziptool" to ""

1. ERROR:找不到opencv相关组件

  • error:
$ cmake ..
CMake Error at CMakeLists.txt:18 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/users/zhanghao/dense_flow/build/CMakeFiles/CMakeOutput.log".
  • Solution:
    之所以会出现这种错误,是因为cmake找不到opencv。
  • opencv/cmake/OpenCVConfig.cmake下载OpenCVConfig.cmake;
  • 将opencv路径添加进OpenCVConfig.cmake

2. CMake Error:Unable to find the requested Boost libraries

  • error:
(py36) 
# zhanghao @ Lab164 in ~/dense_flow/build on git:master x [10:49:42] 
$ cmake ..
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found LIBZIP: /usr/local/lib/libzip.so  
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:567 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:22 (FIND_PACKAGE)


CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:22 (FIND_PACKAGE)


-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.9") 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow
   used as include directory in directory /home/ubuntu/users/zhanghao/dense_flow

-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/users/zhanghao/dense_flow/build/CMakeFiles/CMakeOutput.log".

  • Solution:
sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev

详情参见dense_flow安装日志

3. 23004 abort (core dumped)

  • error:
# zhanghao @ Lab164 in ~/opencv_3.4.10/dense_flow/build on git:opencv-3.1 x [20:21:53] C:134
$ ./extract_gpu -f=test.avi -x=tmp/flow_x -y=tmp/flow_y -i=tmp/image -b=20 -t=1 -d=0 -s=1 -o=dir
2020-08-18 20:42:09,904 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal
2020-08-18 20:42:09,904 WARN  [default] Aborting application. Reason: Fatal log at [/home/ubuntu/users/zhanghao/opencv_3.4.10/dense_flow/include/easylogging++/src/easylogging++.h:5583]
[1]    23004 abort (core dumped)  ./extract_gpu -f=test.avi -x=tmp/flow_x -y=tmp/flow_y -i=tmp/image -b=20 -t=1

  • solution:
    test.avi放入./opencv_3.4.10/dense_flow/build文件夹中,并在build文件夹下创建tmp文件夹用于存放flow_x.zipflow_y.zipimage.zip三个运行结果。
  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值