Any ideas on how to fix this? After ./autogen.sh img4tool recognizes plist, but make compiles without it.
andrew@andrew-MacBookPro:~$ git clone https://github.com/tihmstar/img4tool
Cloning into 'img4tool'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 1005 (delta 0), reused 1 (delta 0), pack-reused 1002
Receiving objects: 100% (1005/1005), 259.30 KiB | 1.71 MiB/s, done.
Resolving deltas: 100% (555/555), done.
andrew@andrew-MacBookPro:~$ cd img4tool/
andrew@andrew-MacBookPro:~/img4tool$ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:6: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:6: error: required file './ltmain.sh' not found
configure.ac:8: installing './missing'
img4tool/Makefile.am: installing './depcomp'
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /home/linuxbrew/.linuxbrew/bin/ld
checking if the linker (/home/linuxbrew/.linuxbrew/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/linuxbrew/.linuxbrew/bin/nm -B
checking the name lister (/home/linuxbrew/.linuxbrew/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/linuxbrew/.linuxbrew/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... mawk
checking command to parse /home/linuxbrew/.linuxbrew/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64
checking if the linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking whether we need platform-specific build settings... checking for pkg-config... /home/linuxbrew/.linuxbrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for openssl >= 0.9.8... yes
checking for libplist-2.0 >= 2.2.0... yes
checking for libgeneral >= 32... no
configure: error: Package requirements (libgeneral >= 32) were not met:
No package 'libgeneral' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libgeneral_CFLAGS
and libgeneral_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
andrew@andrew-MacBookPro:~/img4tool$ export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
andrew@andrew-MacBookPro:~/img4tool$ ./autogen.sh
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /home/linuxbrew/.linuxbrew/bin/ld
checking if the linker (/home/linuxbrew/.linuxbrew/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /home/linuxbrew/.linuxbrew/bin/nm -B
checking the name lister (/home/linuxbrew/.linuxbrew/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/linuxbrew/.linuxbrew/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... mawk
checking command to parse /home/linuxbrew/.linuxbrew/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64
checking if the linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/home/linuxbrew/.linuxbrew/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking whether we need platform-specific build settings... checking for pkg-config... /home/linuxbrew/.linuxbrew/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for openssl >= 0.9.8... yes
checking for libplist-2.0 >= 2.2.0... yes
checking for libgeneral >= 32... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for compression_decode_buffer in -lcompression... no
checking for lzfse_decode_buffer in -llzfse... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for memmem... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating libimg4tool.pc
config.status: creating include/img4tool/img4tool.hpp
config.status: creating img4tool/Makefile
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
Configuration for img4tool-193:
-------------------------------------------
install prefix ..........: /usr/local
have plist ..............: yes
crypto backend ..........: openssl
compiler ................: gcc
Now type 'make' to build img4tool-193,
and then 'make install' for installation.
andrew@andrew-MacBookPro:~/img4tool$ make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/andrew/img4tool/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory '/home/andrew/img4tool'
Making all in img4tool
make[2]: Entering directory '/home/andrew/img4tool/img4tool'
g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT img4tool-main.o -MD -MP -MF .deps/img4tool-main.Tpo -c -o img4tool-main.o `test -f 'main.cpp' || echo './'`main.cpp
mv -f .deps/img4tool-main.Tpo .deps/img4tool-main.Po
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c -o libimg4tool_la-ASN1DERElement.lo `test -f 'ASN1DERElement.cpp' || echo './'`ASN1DERElement.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c ASN1DERElement.cpp -fPIC -DPIC -o .libs/libimg4tool_la-ASN1DERElement.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c ASN1DERElement.cpp -o libimg4tool_la-ASN1DERElement.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-ASN1DERElement.Tpo .deps/libimg4tool_la-ASN1DERElement.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c -o libimg4tool_la-lzssdec.lo `test -f 'lzssdec.c' || echo './'`lzssdec.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c lzssdec.c -fPIC -DPIC -o .libs/libimg4tool_la-lzssdec.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c lzssdec.c -o libimg4tool_la-lzssdec.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-lzssdec.Tpo .deps/libimg4tool_la-lzssdec.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c -o libimg4tool_la-img4tool.lo `test -f 'img4tool.cpp' || echo './'`img4tool.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.cpp -fPIC -DPIC -o .libs/libimg4tool_la-img4tool.o
img4tool.cpp:37:2: warning: #warning TODO adjust this for HAVE_COMMCRYPTO [-Wcpp]
#warning TODO adjust this for HAVE_COMMCRYPTO
^
img4tool.cpp:777:22: warning: multi-character character constant [-Wmultichar]
case 'TSGD': //DGST
^
img4tool.cpp:805:51: warning: multi-character character constant [-Wmultichar]
ASN1DERElement bnch = getValFromIM4M(im4m,'BNCH');
^
img4tool.cpp:1003:40: warning: multi-character character constant [-Wmultichar]
assure(ptagVal == htonl('BNCN'));
^
img4tool.cpp:1004:77: warning: multi-character character constant [-Wmultichar]
assure(*(uint32_t*)ptag[0].getStringValue().c_str() == htonl('BNCN'));
^
img4tool.cpp:1123:22: warning: multi-character character constant [-Wmultichar]
case 'DROB': //BORD
^
img4tool.cpp:1127:22: warning: multi-character character constant [-Wmultichar]
case 'PIHC': //CHIP
^
img4tool.cpp:1131:22: warning: multi-character character constant [-Wmultichar]
case 'MODS': //SDOM
^
img4tool.cpp:1243:30: warning: multi-character character constant [-Wmultichar]
case 'TSGD': //DGST
^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.cpp -o libimg4tool_la-img4tool.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-img4tool.Tpo .deps/libimg4tool_la-img4tool.Plo
/bin/bash ../libtool --tag=CXX --mode=link g++ -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -L/usr/local/lib -lplist-2.0 -L/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/lib -lssl -lcrypto -L/usr/local/lib -lgeneral -o libimg4tool.la -rpath /usr/local/lib libimg4tool_la-ASN1DERElement.lo libimg4tool_la-lzssdec.lo libimg4tool_la-img4tool.lo -llzfse
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /lib/x86_64-linux-gnu/crti.o /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/crtbeginS.o .libs/libimg4tool_la-ASN1DERElement.o .libs/libimg4tool_la-lzssdec.o .libs/libimg4tool_la-img4tool.o -L/usr/local/lib /usr/local/lib/libplist-2.0.so -lpthread -L/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/lib -lssl -lcrypto /usr/local/lib/libgeneral.so -llzfse -L/home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/lib/gcc/x86_64-unknown-linux-gnu/5.5.0 -L/home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/../../.. -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -lstdc++ -lm -lc -lgcc_s /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/lib/gcc/x86_64-unknown-linux-gnu/5.5.0/crtendS.o /lib/x86_64-linux-gnu/crtn.o -g -O2 -pthread -Wl,-soname -Wl,libimg4tool.so.0 -o .libs/libimg4tool.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libimg4tool.so.0" && ln -s "libimg4tool.so.0.0.0" "libimg4tool.so.0")
libtool: link: (cd ".libs" && rm -f "libimg4tool.so" && ln -s "libimg4tool.so.0.0.0" "libimg4tool.so")
libtool: link: ar cru .libs/libimg4tool.a libimg4tool_la-ASN1DERElement.o libimg4tool_la-lzssdec.o libimg4tool_la-img4tool.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libimg4tool.a
libtool: link: ( cd ".libs" && rm -f "libimg4tool.la" && ln -s "../libimg4tool.la" "libimg4tool.la" )
/bin/bash ../libtool --tag=CXX --mode=link g++ -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -L/usr/local/lib -lplist-2.0 -L/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/lib -lssl -lcrypto -L/usr/local/lib -lgeneral -o img4tool img4tool-main.o libimg4tool.la -llzfse
libtool: link: g++ -I../include -I../include/img4tool -I/usr/local/include -I/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -g -O2 -std=c++11 -o .libs/img4tool img4tool-main.o -L/usr/local/lib -L/home/linuxbrew/.linuxbrew/Cellar/openssl@1.1/1.1.1g/lib ./.libs/libimg4tool.so /usr/local/lib/libplist-2.0.so -lm -lpthread -lssl -lcrypto /usr/local/lib/libgeneral.so -llzfse -pthread
make[2]: Leaving directory '/home/andrew/img4tool/img4tool'
Making all in include
make[2]: Entering directory '/home/andrew/img4tool/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/andrew/img4tool/include'
make[2]: Entering directory '/home/andrew/img4tool'
make[2]: Leaving directory '/home/andrew/img4tool'
make[1]: Leaving directory '/home/andrew/img4tool'
andrew@andrew-MacBookPro:~/img4tool$ sudo make install
[sudo] password for andrew:
Making install in img4tool
make[1]: Entering directory '/home/andrew/img4tool/img4tool'
make[2]: Entering directory '/home/andrew/img4tool/img4tool'
/usr/bin/mkdir -p '/usr/local/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libimg4tool.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libimg4tool.so.0.0.0 /usr/local/lib/libimg4tool.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libimg4tool.so.0.0.0 libimg4tool.so.0 || { rm -f libimg4tool.so.0 && ln -s libimg4tool.so.0.0.0 libimg4tool.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libimg4tool.so.0.0.0 libimg4tool.so || { rm -f libimg4tool.so && ln -s libimg4tool.so.0.0.0 libimg4tool.so; }; })
libtool: install: /usr/bin/install -c .libs/libimg4tool.lai /usr/local/lib/libimg4tool.la
libtool: install: /usr/bin/install -c .libs/libimg4tool.a /usr/local/lib/libimg4tool.a
libtool: install: chmod 644 /usr/local/lib/libimg4tool.a
libtool: install: ranlib /usr/local/lib/libimg4tool.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/usr/local/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c img4tool '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/img4tool /usr/local/bin/img4tool
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/andrew/img4tool/img4tool'
make[1]: Leaving directory '/home/andrew/img4tool/img4tool'
Making install in include
make[1]: Entering directory '/home/andrew/img4tool/include'
make[2]: Entering directory '/home/andrew/img4tool/include'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/mkdir -p '/usr/local/include/img4tool'
/usr/bin/install -c -m 644 img4tool/img4tool.hpp img4tool/ASN1DERElement.hpp '/usr/local/include/img4tool'
make[2]: Leaving directory '/home/andrew/img4tool/include'
make[1]: Leaving directory '/home/andrew/img4tool/include'
make[1]: Entering directory '/home/andrew/img4tool'
make[2]: Entering directory '/home/andrew/img4tool'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 libimg4tool.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/andrew/img4tool'
make[1]: Leaving directory '/home/andrew/img4tool'
andrew@andrew-MacBookPro:~/img4tool$ img4tool
img4tool version: 0.182-22a2671082a9232c180e1856dfce04eea9681315
Compiled with plist: NO
Usage: img4tool [OPTIONS] FILE
Parses img4, im4p, im4m files
-h, --help prints usage information
-a, --print-all print everything from im4m
-i, --im4p-only print only im4p
-e, --extract extracts im4m/im4p payload
UNAVAILABLE: -s, --shsh <PATH> Filepath for shsh (for reading/writing im4m)
-m, --im4m <PATH> Filepath for im4m (depending on -e being set)
-p, --im4p <PATH> Filepath for im4p (depending on -e being set)
-c, --create <PATH> creates an img4 with the specified im4m, im4p or creates im4p with raw file (last argument)
-o, --outfile output path for extracting im4p payload (-e) or renaming im4p (-n)
-t, --type set type for creating IM4P files from raw
-d, --desc set desc for creating IM4P files from raw
-n, --rename-payload NAME rename im4p payload (NAME must be exactly 4 bytes)
UNAVAILABLE: -v, --verify BUILDMANIFEST verify img4, im4m
--iv IV for decrypting payload when extracting (requires -e and -o)
--key Key for decrypting payload when extracting (requires -e and -o)
UNAVAILABLE: --convert convert IM4M file to .shsh (use with -s)
Any ideas on how to fix this? After
./autogen.sh
img4tool recognizes plist, butmake
compiles without it.