README.md
September 15, 2020 ยท View on GitHub
Platform Compatibility
| Windows | macOS [1] | Linux | |
|---|---|---|---|
| USB | yes | yes | yes |
- [1] macOS 10.9 (Mavericks) or later
libfibre API
Refer to libfibre.h for documentation of the API.
Build instructions
Windows
- 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 yourPATHenvironment 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.aexists). - Navigate to this directory and run
make
Ubuntu
sudo apt-get libusb-1.0-dev- Navigate to this directory and run
make
macOS
brew install libusb- Navigate to this directory and run
make
Cross-compile libfibre on Linux for all other platforms
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.
Notes for Contributors
- 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