Download and Installation

This section provides everything you need to download and install the CosmicSDK on your development machine.

Platform Support

CosmicSDK is currently available for the following platforms:

  • Windows (x64 and x86 architectures, supporting both MSVC and MinGW compilers)

  • macOS (both Intel and Apple Silicon (ARM) architectures)

  • Linux (both x64 and ARM64 architectures)

Installation Instructions

Windows

To install the CosmicSDK on Windows:

  1. Download the Installer

    Use one of the links provided above:

    • .exe file (recommended)

    • .rename file (rename it to .exe before running)

  2. Run the Installer

    Double-click the installer to launch the setup wizard.

  3. Choose Installation Directory

    By default, the SDK will be installed to:

    C:\CosmicSDK
    
    Default installation path

    If you’d like to install it to a different directory (e.g., C:\cosmicsdk110), type the full path in the Destination Folder field or use the Browse… button.

    Custom installation path

Note

If the specified directory does not exist, the installer will automatically create it.

  1. Complete Installation

    Click Install to begin. Once the progress bar is complete, click Close to exit the installer.

    Installation completed

After installation, you can navigate to the installation directory to access the debug, examples, and include folders, as well as the documentation files and release .dll files.

macOS

To install the CosmicSDK on macOS:

  1. Download the Archive

    Choose the correct .zip file for your system architecture:

    • Intel-based Macs: cosmic_sdk-mac-intel-binaries.zip

    • Apple Silicon (ARM) Macs: cosmic_sdk-mac-arm-binaries.zip

  2. Extract the Archive

    After downloading, double-click the .zip file to extract its contents.

    You will see a folder named something like:

    cosmic_sdk-mac-{arch}-binaries/
    

    Inside this folder, you’ll find:

    • include/ – C/C++ header files

    • lib/ – Precompiled .dylib binaries

    • examples/ – Sample projects to help you get started

    • README.txt and LICENSE.txt

  3. Use the SDK

    There is no installation step required. You can begin using the SDK immediately. To do so, follow the steps described in Examples.

Tip

If you’re using a macOS security feature like Gatekeeper, you may need to allow execution of third-party libraries in System Settings > Security & Privacy.

Linux

To install the CosmicSDK on Linux:

  1. Download the Linux archive

    Use one of the Linux links listed above.

  2. Extract the archive

    tar -xzf <linux-package-file>.tar.gz
    cd <cosmicsdk-linux-package-dir>
    
  3. Use the extracted artifacts directly

    CosmicSDK does not require a system-wide installer on Linux. Use:

    • <cosmicsdk-linux-package-dir>/include for headers

    • <cosmicsdk-linux-package-dir>/lib for shared/static libraries

    • <cosmicsdk-linux-package-dir>/examples for sample projects

  4. (Recommended) Install udev rules for non-root USB access

    chmod +x ./scripts/install_udev_rules.sh
    sudo ./scripts/install_udev_rules.sh
    

    Unplug and replug your Binho device after installing rules.

  5. Validate with an example

    cd examples/blocking_api/system/cpp
    cmake -B build -DLIBRARY_PATH="<cosmicsdk-linux-package-dir>/lib" -DINCLUDE_PATH="<cosmicsdk-linux-package-dir>/include"
    cmake --build build
    LD_LIBRARY_PATH="<cosmicsdk-linux-package-dir>/lib:$LD_LIBRARY_PATH" ./build/example_cpp_dynamic