Lines Matching +full:linux +full:- +full:headers
4 Pre-built Linux packages are available in most mainstream distributions
8 .. code-block:: bash
10 apt-get install libcbor-dev
14 .. code-block:: bash
16 yum install libcbor-devel
21 .. code-block:: bash
28 ------------------------------
31 - C99 compiler
32 …- CMake_ 2.8 or newer (might also be called ``cmakesetup``, ``cmake-gui`` or ``ccmake`` depending …
33 - C build system CMake can target (make, Apple Xcode, MinGW, ...)
39 …on flags can be passed to `cmake`. The following table lists libcbor compile-time directives and s…
41 .. list-table::
42 :header-rows: 1
44 * - Option
45 - Meaning
46 - Default
47 - Possible values
48 * - ``CMAKE_C_COMPILER``
49 - C compiler to use
50 - ``cc``
51 - ``gcc``, ``clang``, ``clang-3.5``, ...
52 * - ``CMAKE_INSTALL_PREFIX``
53 - Installation prefix
54 - System-dependent
55 - ``/usr/local/lib``, ...
56 * - ``CMAKE_INTERPROCEDURAL_OPTIMIZATION``
57 - Enable LTO (if supported)
58 - System-dependent
59 - ``ON``, ``OFF``
60 * - ``BUILD_SHARED_LIBS``
61 - Build as a shared library
62 - ``OFF``
63 - ``ON``, ``OFF``
64 * - ``HUGE_FUZZ``
65 - :doc:`Fuzz test </tests>` with 8GB of data
66 - ``OFF``
67 - ``ON``, ``OFF``
68 * - ``SANE_MALLOC``
69 - Assume ``malloc`` will refuse unreasonable allocations
70 - ``OFF``
71 - ``ON``, ``OFF``
72 * - ``COVERAGE``
73 - Generate test coverage instrumentation
74 - ``OFF``
75 - ``ON``, ``OFF``
76 * - ``WITH_TESTS``
77 - Build unit tests (see :doc:`development`)
78 - ``OFF``
79 - ``ON``, ``OFF``
84 .. list-table::
85 :header-rows: 1
87 * - Option
88 - Meaning
89 - Default
90 - Possible values
91 * - ``CBOR_PRETTY_PRINTER``
92 - Include a pretty-printing routine
93 - ``ON``
94 - ``ON``, ``OFF``
95 * - ``CBOR_BUFFER_GROWTH``
96 - Factor for buffer growth & shrinking
97 - ``2``
98 - Decimals > 1
106 …cbor.a`) should be used with an LTO-enabled linker downstream. On LLVM toolchains without bitcode …
118 .. code-block:: bash
120 cd $(mktemp -d /tmp/cbor_build.XXXX)
124 .. code-block:: bash
126 cmake -DCMAKE_BUILD_TYPE=Release path_to_libcbor_dir
131 .. code-block:: bash
133 cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON path_to_libcbor_dir
138 .. code-block:: bash
147 libcbor is highly portable and works on both little- and big-endian systems regardless of the opera…
151 … to successfully work on ARM Android devices. Cross-compilation is possible with ``arm-linux-gnuea…
155 ---------------------
162 .. code-block:: c
175 .. code-block:: bash
177 cc hello_cbor.c -lcbor -o hello_cbor
180 …-config <https://wiki.freedesktop.org/www/Software/pkg-config/>`_ support. If you install libcbor …
182 .. code-block:: bash
184 cc $(pkg-config --cflags libcbor) hello_cbor.c $(pkg-config --libs libcbor) -o hello_cbor
189 …(Linux) or the dylib `"Compatibility version" <https://developer.apple.com/library/archive/documen…
191 …- 0.Y for the 0.Y.Z branch. Patches are backwards compatible, minor releases are generally not and…
192 …- X for the X.Y.Z stable versions starting 1.X.Y. All minor release of the major version are backw…
198 ---------------------
200 **cbor.h not found**: The headers directory is probably not in your include path. First, verify the…
203 .. code-block:: text
206 -- Installing: /usr/local/include/cbor
207 -- Installing: /usr/local/include/cbor/callbacks.h
208 -- Installing: /usr/local/include/cbor/encoding.h
213 .. code-block:: bash
215 cc -I/usr/local/include hello_cbor.c -lcbor -o hello_cbor
218 **cannot find -lcbor during linking**: Most likely the same problem as before. Include the installa…
219 linker shared path using ``-R``, e.g.:
221 .. code-block:: bash
223 cc -Wl,-rpath,/usr/local/lib -lcbor -o hello_cbor
227 .. code-block:: text
230 linux-vdso.so.1 => (0x00007ffe85585000)
232 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9af65eb000)
233 /lib64/ld-linux-x86-64.so.2 (0x00007f9af6be9000)