Install Couchbase Lite for C
Description — Installing Couchbase Lite for C
- Steps in Getting Started
-
Install | Build and Run
Download
Couchbase Lite for C 3.0.0 is available for all supported platforms — see: Platform Availability.
You can obtain the downloads here:
-
Android, iOS and Windows — Extend with Mobile.
-
Linux and macOS — downloads table
The binary release download comprises a root directory (libcblite-community), which contains:
-
For Linux, Windows and Mac OS:
-
lib
— the core library binaries -
include
— the header files for inclusion -
bin
— the Couchbase Lite for C.dll
files (Microsoft Windows-only) .
-
-
For iOS, an xcframework.
-
For Android, a ready-to-adapt, skeleton application project.
Debug Symbols
Debug symbol versions are available for all desktop variants of C (Windows, macOS, Debian, Ubuntu and Raspbian) - see: downloads table. For Android and iOS the symbols are incorporated in the standard release package. |
Install for Linux
Using APT
Using the Advanced Package Tool (apt) is the easiest way to install Couchbase Lite on Ubuntu and Debian platforms. Just download the meta package that apt requires to automatically get and install Couchbase Lite, including any dependencies.
-
Download the meta package
-
curl
-
wget
curl -O https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-noarch.deb
wget https://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-noarch.deb
-
-
Install the meta package
-
apt
-
dpkg
sudo apt install ./couchbase-release-1.0-noarch.deb
sudo dpkg -i ./couchbase-release-1.0-noarch.deb
-
-
Update the local package database
sudo apt update
-
Install the required release package(s)
-
Enterprise
-
Community
Runtime Onlysudo apt install libcblite
Developmentsudo apt install libcblite-dev
Runtime Onlysudo apt install libcblite-community
Developmentsudo apt install libcblite-dev-community
-
That’s it. At this point, you are ready to start building the Getting Started app, or doing your own thing with Couchbase Lite for C
Using .deb Package
Use your package manager to install from a local .deb
file.
-
Just
wget
the appropriate.deb
package — see downloads table for a package URL. -
Install the package and its dependency, using
apt install
-
For community version:
sudo apt install ./libcblite-community sudo apt install ./libcblite-dev-community
-
For enterprise version:
sudo apt install ./libcblite sudo apt install ./libcblite-dev
-
-
That’s it.
You just need to pass the-lcblite
command-line flag to the compiler when you build.
At this point, you are ready to start building the Getting Started app, or doing your own thing with Couchbase Lite for C
Install for Windows
To install the Couchbase for C libraries on Windows from a downloaded release binary:
-
Download and extract the release package — see: Extend with Mobile
-
From within the root directory, libcblite-community, deploy the
lib
,include
andbin
libraries to a location accessible to your compiler. -
Within Visual Studio:
-
Create a new C++ project
Be sure to select x64 for 64-bit builds
-
Within Project Properties → C++ directories → Library Directories, Add
<path-to-deployed-directories>/lib
-
Within Project Properties → C++ directories → Include Directories, Add
<path-to-deployed-directories>/include
-
Within Project Properties → Linker → Input → Additional Dependencies, Add
cblite.lib
-
-
Copy
<path-to-deployed-directories>/bin/cblite.dll
to your build locationCouchbase Lite for C does not have any preferred installation path for the
.dll
. It is up to you to determine where best to place it so it is available during execution, though copying to a location on the system path is not recommended on Windows
Install for macOS
Direct access from Swift to Couchbase Lite for C is not possible in this release [1], but will be available in the next release. |
To install the Couchbase for C libraries on macOS from a downloaded release package:
-
Download and extract the release package here — downloads table.
-
Optionally … From within the root directory, libcblite-community, Copy the
include
andlib
directories to/usr/local/
-
Within Xcode:
-
Create a new project
-
Add
<path/to>/include
to the project’s Header Search Path -
Add
<path/to>/lib
to the project’s Library Search Path -
Drag
libcblite-community.dylib
into your Xcode project. Then, within the dialog:-
Select Create Directory References If Needed
-
Check the correct target is selected
-
-
At this point, you are ready to start building the Getting Started app, or doing your own thing with Couchbase Lite for C
Install for iOS
Direct access from Swift to Couchbase Lite for C is not possible in this release [2], but will be available in the next release. |
To install the Couchbase for C libraries for iOS from a downloaded release package:
-
Download and extract the release package here — Extend with Mobile.
-
Drag
CouchbaseLite.xcframework
into your Xcode project, then within the dialog:-
Select Create Directory References If Needed
-
Check the correct target is selected
-
At this point, you are ready to start building the Getting Started app, or doing your own thing with Couchbase Lite for C
If you encounter a build error — Include of non-modular header inside framework module — You may need to change the build setting
allow non-modular includes in framework module
to Yes
.
Install for Android
This install assumes use of the Android Studio IDE. In addition to the Couchbase Lite for C download you also require the following tool chain dependencies, all installable from within Android Studio if necessary:
-
CMake 3.18.1
-
NDK 21.4.7075529
-
Build tools 30.0.2
In this instance the release comprises a ready to adapt application project.
-
Download and Unpack the binary release here — Extend with Mobile
-
Within Android Studio, select and open the project folder (within the libcblite-community folder)
-
-
Check the above dependencies are installed, select any that are not
OK to Continue
Once the install is finished, you can build and run this skeleton app.
At this point, you are ready to start building the Getting Started app, or doing your own thing with Couchbase Lite for C
Download Links
Couchbase Lite for C is available for all Supported Platforms. You can obtain downloads for Linux and macOS from the links here in the downloads table.
Release 3.0.15
MacOS
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Windows
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
couchbase-lite-c-enterprise-3.0.15-windows-x86_64.zip.sha256 |
couchbase-lite-c-enterprise-3.0.15-windows-x86_64-symbols.zip |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
couchbase-lite-c-community-3.0.15-windows-x86_64-symbols.zip |
Debian
-
Enterprise Edition
-
Community Edition
Raspbian
-
Enterprise Edition
-
Community Edition
Ubuntu
-
Enterprise Edition
-
Community Edition
Couchbase Lite for C is available for all Supported Platforms. You can obtain downloads for Linux and macOS from the links here in the downloads table.
Release 3.0.2
MacOS
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Windows
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
couchbase-lite-c-enterprise-3.0.2-windows-x86_64-symbols.zip |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
Debian
-
Enterprise Edition
-
Community Edition
Raspbian
-
Enterprise Edition
-
Community Edition
Ubuntu
-
Enterprise Edition
-
Community Edition
Couchbase Lite for C is available for all Supported Platforms. You can obtain downloads for Linux and macOS from the links here in the downloads table.
Release 3.0.0
MacOS
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
MacOS |
Windows
-
Enterprise Edition
-
Community Edition
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
couchbase-lite-c-enterprise-3.0.0-windows-x86_64-symbols.zip |
Platform | Download | SHA | Debug Symbols |
---|---|---|---|
Windows |
Debian
-
Enterprise Edition
-
Community Edition
Raspbian
-
Enterprise Edition
-
Community Edition
Ubuntu
-
Enterprise Edition
-
Community Edition