OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
868 stars 153 forks source link

MacOS build broken #296

Closed Ho-Ro closed 2 years ago

Ho-Ro commented 2 years ago

Describe the bug The MacOs build stops during creation of the *.dmg package:

CPack: Create package
CPack: - package: packages/openhantek_20220429-d48201a-1_osx_x86_64.tar.gz generated.
ERROR: Could not parse otool output line: "\t/usr/local/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0, reexport)"
ERROR: Could not parse otool output line: "\t/usr/local/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0, reexport)"
Error: Process completed with exit code 1.

This error also occurs with a previous build that was successful 4 days ago. So it is not caused by any OH6022 changes. I suspect this is from a regression in the MacOs build system. Due to a missing Mac on my end, I will not investigate further and leave it to a volunteer to get the package build working again. In any case, the compiler in the GitHub Actions still works and shows that new commits build on a Mac.

Ho-Ro commented 2 years ago

As of release 3.3.0, macOS binaries (bundles) will no longer be provided due to this issue and a missing Mac on my end unless a volunteer works out, provides and supports the bundle creation for GitHub Actions.

benjones commented 2 years ago

I have a mac so I can try stuff out and maybe do some small fixes, but I'd need some direction to know where to look/what to do

Ho-Ro commented 2 years ago

The 1st test you can do is to check the mac build provided by @dianlight. I will pull his PR when I am back from vacation next weekend.

Ho-Ro commented 2 years ago

Sorry, closed by accident.

benjones commented 2 years ago

I'll try to check it tomorrow evening when I have access to my scope. I was able to build and use the mac version by following the macos build instructions, although I did have to manually specify some QT paths becuase homebrew doesn't install it globally by default.

The 1st test you can do is to check the mac build provided by @dianlight. I will pull his PR when I am back from vacation next weekend.

benjones commented 2 years ago

I ran it with my 6022BE on an M1 mac and it seems to work fine, aside from it not being from an identified developer.

Ho-Ro commented 2 years ago

Solved by #312