Windows | macOS [1] | Linux | |
---|---|---|---|
USB | yes | yes | yes |
- [1] macOS 10.9 (Mavericks) or later
Refer to libfibre.h for documentation of the API.
- Download MinGW from here and install it.
- Add
C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
(or similar) to yourPATH
environment variable. - Download the libusb binaries from here and unpack them to
third_party/libusb-windows
(such that the filethird_party/libusb-windows/libusb-1.0.23/MinGW64/static/libusb-1.0.a
exists). - Navigate to this directory and run
make
sudo apt-get libusb-1.0-dev
- Navigate to this directory and run
make
brew install libusb
- Navigate to this directory and run
make
The file ./compile_for_all_platforms.sh
cross-compiles libfibre for all supported platforms. This is mainly intended for CI to generate releases. It written to run on Arch Linux only. Check the script to see which packages need to be installed first.
- Fibre currently targets C++11 to maximize compatibility with other projects
- Notes on platform independent programming:
- Don't use the keyword
interface
(defined as a macro on Windows inrpc.h
)
- Don't use the keyword