qFlipper icon indicating copy to clipboard operation
qFlipper copied to clipboard

Building on MacOS x86_64

Open TQMatvey opened this issue 2 years ago • 2 comments

Describe the bug Building qFlipper on Mac OS Ventura and earlier with X86_64 architecture

To Reproduce Steps to reproduce the behavior:

  1. Get qt, libusb packages from brew
  2. ./build_mac.sh
  3. Project ERROR: libusb-1.0 development package not found

Expected behavior i should be able to download flipper's libusb with brew install libusb_universal

Actual behavior running brew install libusb_universal throws libusb_universal: The arm64 architecture is **required** for this software

Additional troubleshooting I tried googling, installing other libusb packages with brew, pip3

The report must also include at least one of the following: Screenshot_QEMU_4 Screenshot_QEMU_5

TQMatvey avatar Jan 12 '23 00:01 TQMatvey

This build process was designed for our automatic build server, which is running on an ARM mac, so it wasn't tested for x86_64 much.

We'll try to adapt it so it would work on any architecture, but it may take some time. (Pull requests will be greatly appreciated!)

Qt and libusb must not necessarily be installed from the flipper tap, however, it's possible to use the regular brew versions, depending on your needs (should be sufficient for development purposes, for example).

gsurkov avatar Jan 12 '23 09:01 gsurkov

It would be great to have qflipper formula/cask in brew though. Even better, also have fbt as a brew formula.

sprrw avatar Feb 27 '23 11:02 sprrw