• Home
  • Raw
  • Download

Lines Matching +full:download +full:- +full:git +full:- +full:cache

6 This project uses some third-party code:
7 - src/phonenumbers/utf/ sources come from lib9 which is also used in Go.
11 -----------------------------------
12 In recent Debian-based distributions you may be able to simply install the
16 - Use this if you just need to use or link against the library:
17 $ sudo apt-get install libphonenumber8 libphonenumber-dev
20 - Use this if you wish to develop or debug the library:
21 $ sudo apt-get source libphonenumber
28 --------------------------------------------
31 The example command lines below assume that you have a Debian-based GNU/Linux
35 - In recent Debian-based distributions, it should be sufficient to run:
36 $ sudo apt-get install \
37 cmake cmake-curses-gui libprotobuf-dev libgtest-dev libre2-dev \
38 libicu-dev libboost-dev libboost-thread-dev libboost-system-dev \
39 protobuf-compiler
45 - CMake build system
49 $ sudo apt-get install cmake
52 $ sudo apt-get install cmake-curses-gui
54 - Protocol Buffers
57 recent Debian-based GNU/Linux distributions).
60 $ apt-cache show libprotobuf-dev
61 Package: libprotobuf-dev
63 Version: 3.6.1-9ubuntu1 <-- This must be >= 3.6.1
67 $ sudo apt-get install libprotobuf-dev
70 please download and install it manually:
74 - Google Test
78 $ sudo apt-get install libgtest-dev
80 - RE2
84 $ sudo apt-get install libre2-dev
87 so you might need to download and install it manually.
89 Find and download the Debian packages for your system. For example:
90 https://packages.ubuntu.com/search?keywords=libre2-9
91 https://packages.ubuntu.com/search?keywords=libre2-dev
93 You need to download both the libre2-dev and libre2-1 packages.
95 $ sudo dpkg -i libre2*.deb
97 - ICU
99 $ sudo apt-get install libicu-dev
101 Otherwise you need to download the source tarball for the latest version
103 http://site.icu-project.org/download
105 $ tar xzf icu4c-*-src.tgz
109 $ svn export http://source.icu-project.org/repos/icu/icu/tags/release-XX-y-z/
115 - A thread synchronization solution or more recent is required if you need
116 libphonenumber to be thread-safe. Supported solution are:
117 - Boost Version 1.40 or more recent
118 - Posix Thread. Linux or Apple (ios/mac) detection is automatic. On other
119 Posix environnement, uses -DUSE_POSIX_THREAD = ON
120 - C++ 2011 (and later) std::mutex. Uses -DUSE_STDMUTEX = ON to enable
122 - Windows Win32 synchronization API.
127 You can install it very easily on a Debian-based GNU/Linux distribution:
128 $ sudo apt-get install libboost-dev libboost-thread-dev libboost-system-dev
133 - abseil-cpp
141 - Official [installation guide](https://abseil.io/docs/cpp/tools/cmake-installs).
143 $ git clone https://github.com/abseil/abseil-cpp.git
144 $ cd abseil-cpp
145 $ cmake . -DCMAKE_INSTALL_PREFIX="$HOME/lpn-deps" -DCMAKE_POSITION_INDEPENDENT_CODE=ON
146 $ cmake --build . --target install
147 - When building libphonenumber library, if abseil-cpp is still getting downloaded and
148 built, use flags like ```CMAKE_PREFIX_PATH="$HOME/lpn-deps"```
149 - Notes:
150 - We are cloning only a particular version of the abseil-cpp so that we
153 version to build abseil-cpp library.
154 - libphonenumber is presently using C++11 by default, you can always
158 --------------------------------
168 --------------------------------------
174 $ /usr/bin/ruby -e "$(curl -fsSL \
176 $ brew install boost cmake icu4c pkg-config protobuf wget
178 See https://github.com/Homebrew/homebrew/issues/14099 - homebrew does not have
182 $ git clone https://github.com/google/googletest.git
187 $ git clone https://github.com/google/libphonenumber.git
195 -DGTEST_SOURCE_DIR=~/googletest_clone/googletest/googletest/ \
196 -DGTEST_INCLUDE_DIR=~/googletest_clone/googletest/googletest/include/ \
197 -DICU_UC_INCLUDE_DIR=/usr/local/Cellar/icu4c/XXX/include/ \
198 -DICU_UC_LIB=/usr/local/Cellar/icu4c/XXX/lib/libicuuc.dylib \
199 -DICU_I18N_INCLUDE_DIR=/usr/local/Cellar/icu4c/XXX/include/ \
200 -DICU_I18N_LIB=/usr/local/Cellar/icu4c/XXX/lib/libicui18n.dylib \
201 -DUSE_STD_MAP=ON \
208 $ rm -rf ~/libphonenumber_clone ~/googletest_clone
212 $ brew uninstall boost cmake icu4c openssl pkg-config protobuf wget
214 $ /usr/bin/ruby -e "$(curl -fsSL \
224 --------------------------------
227 - Incorrect protocol buffer library issues
238 libraries, install cmake-curses-gui and use ccmake as follows.
253 - Protoc binary not executing properly
268 - Incorrect ICU library issues
289 -----------------------------------------------
291 Update 2 (https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update2-vs)
294 This enables support of plain UTF-8 source files, for which you also need to specify
295 the /utf-8 option in build files; see "New Options in VS2015 Update 2" at
296 …//blogs.msdn.microsoft.com/vcblog/2016/02/22/new-options-for-managing-character-sets-in-the-micros…
301 setting the codepage for non-Unicode applications on Windows to one of the CJK
302 code pages, since libphonenumber has UTF-8 strings in source files. While these
304 suppressed, but we reserve the right to introduce UTF-8 string literals.
309 - CMake (tested with v2.8.6):
311 * Download and install the Win32 installer.
313 - Boost (tested with v1.44) from BoostPro:
314 http://www.boostpro.com/download/
317 See Linux instructions for information about thread-safety.
319 - GTest (tested with v1.6.0):
321 * Open msvc/gtest-md.sln with Visual Studio and build the whole solution.
323 - ICU (MSVC binaries, tested with v4.8.1):
324 http://site.icu-project.org/download/48#ICU4C-Download
327 - Protocol Buffers:
332 Then run cmake-gui and specify the path to the libphonenumber's cpp directory
342 GTEST_INCLUDE_DIR C:/gtest-1.6.0/include
343 GTEST_LIB C:/gtest-1.6.0/msvc/gtest-md/Release/gtest.lib
351 PROTOBUF_INCLUDE_DIR C:/protobuf-3.6.1/src
352 PROTOBUF_LIB C:/protobuf-3.6.1/vsprojects/Release/libprotobuf.lib
353 PROTOC_BIN C:/protobuf-3.6.1/vsprojects/Release/protoc.exe
364 with cmake-gui.
368 --------------------------
369 Build parameters can be specified invoking CMake with '-DKEY=VALUE' or using a
370 CMake user interface (ccmake or cmake-gui).
372 USE_ALTERNATE_FORMATS = ON | OFF [ON] -- Use alternate formats for the phone
374 USE_BOOST = ON | OFF [ON] -- Use Boost. This is only needed in
375 multi-threaded environments that
378 non-POSIX, non-Windows and non-C++ 2011
379 multi-threading.
380 USE_ICU_REGEXP = ON | OFF [ON] -- Use ICU regexp engine.
381 USE_LITE_METADATA = ON | OFF [OFF] -- Generates smaller metadata that
383 USE_POSIX_THREAD = ON | OFF [OFF] -- Use Posix thread for multi-threading.
384 USE_RE2 = ON | OFF [OFF] -- Use RE2.
385 USE_STD_MAP = ON | OFF [OFF] -- Force the use of std::map.
386 USE_STDMUTEX = ON | OFF [OFF] -- Detect and use C++2011 for multi-threading.
387 REGENERATE_METADATA = ON | OFF [ON] -- When this is set to OFF it will skip