Error on ./build_unix.sh


#1

Error:

root@ali-All-Series:/home/ali/couchbase-lite-core/build_cmake/scripts# ./build_unix.sh
/home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
/home/ali/couchbase-lite-core/build_cmake/unix /home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
– The C compiler identification is Clang 3.8.0
– The CXX compiler identification is Clang 3.8.0
– Check for working C compiler: /usr/bin/clang
– Check for working C compiler: /usr/bin/clang – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/clang++
– Check for working CXX compiler: /usr/bin/clang++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
Found libc++ at /usr/lib/x86_64-linux-gnu/libc++.so
Found libc++abi at /usr/lib/x86_64-linux-gnu/libc++abi.so
Using libc++ header files in /usr/include
CMake Error at CMakeLists.txt:121 (message):
libicuuc not found

– Configuring incomplete, errors occurred!
See also “/home/ali/couchbase-lite-core/build_cmake/unix/CMakeFiles/CMakeOutput.log”.
make: *** No targets specified and no makefile found. Stop.
/home/ali/couchbase-lite-core/build_cmake/unix /home/ali/couchbase-lite-core/build_cmake/unix
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target= Assume input file is in format
-O --output-target= Create an output file in format
-F --target= Set both input and output format to
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives (default)
-U --disable-deterministic-archives
Disable -D behavior
-R --remove-section= Also remove section from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
–strip-dwo Remove all DWO sections
–strip-unneeded Remove all symbols not needed by relocations
–only-keep-debug Strip everything but the debug information
-N --strip-symbol= Do not copy symbol
-K --keep-symbol= Do not strip symbol
–keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program’s version number
-h --help Display this output
–info List object formats & architectures supported
-o Place stripped output into
strip: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex
rm: cannot remove ‘libLiteCore.so’: No such file or directory
make: *** No rule to make target ‘LiteCore’. Stop.
objcopy: ‘libLiteCore.so’: No such file
strip: ‘libLiteCore.so’: No such file
objcopy: ‘libLiteCore.so’: No such file
/home/ali/couchbase-lite-core/build_cmake/unix
/home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
/home/ali/couchbase-lite-core/build_cmake/scripts
root@ali-All-Series:/home/ali/couchbase-lite-core/build_cmake/scripts# sudo apt-get install libicuuc
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libicuuc
root@ali-All-Series:/home/ali/couchbase-lite-core/build_cmake/scripts# sudo apt-get install libicuuc
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libicuuc
root@ali-All-Series:/home/ali/couchbase-lite-core/build_cmake/scripts# ./build_unix.sh
/home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
/home/ali/couchbase-lite-core/build_cmake/unix /home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
Found libc++ at /usr/lib/x86_64-linux-gnu/libc++.so
Found libc++abi at /usr/lib/x86_64-linux-gnu/libc++abi.so
Using libc++ header files in /usr/include
CMake Error at CMakeLists.txt:121 (message):
libicuuc not found

– Configuring incomplete, errors occurred!
See also “/home/ali/couchbase-lite-core/build_cmake/unix/CMakeFiles/CMakeOutput.log”.
make: *** No targets specified and no makefile found. Stop.
/home/ali/couchbase-lite-core/build_cmake/unix /home/ali/couchbase-lite-core/build_cmake/unix
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target= Assume input file is in format
-O --output-target= Create an output file in format
-F --target= Set both input and output format to
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives (default)
-U --disable-deterministic-archives
Disable -D behavior
-R --remove-section= Also remove section from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
–strip-dwo Remove all DWO sections
–strip-unneeded Remove all symbols not needed by relocations
–only-keep-debug Strip everything but the debug information
-N --strip-symbol= Do not copy symbol
-K --keep-symbol= Do not strip symbol
–keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program’s version number
-h --help Display this output
–info List object formats & architectures supported
-o Place stripped output into
strip: supported targets: elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex
rm: cannot remove ‘libLiteCore.so’: No such file or directory
make: *** No rule to make target ‘LiteCore’. Stop.
objcopy: ‘libLiteCore.so’: No such file
strip: ‘libLiteCore.so’: No such file
objcopy: ‘libLiteCore.so’: No such file
/home/ali/couchbase-lite-core/build_cmake/unix
/home/ali/couchbase-lite-core/build_cmake /home/ali/couchbase-lite-core/build_cmake/scripts
/home/ali/couchbase-lite-core/build_cmake/scripts


#2

You are missing ICU, install it and try again.


#3

Thanks a lot
Now how can I use LiteCore libraries in Qt?
I installed LiteCore on my ubuntu.