Project

General

Profile

Actions

Feature #8469

closed

Support for Apple's new M1 System on a Chip Architecture

Added by Brian Jalet over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/23/2020
Due date:
% Done:

0%

Estimated time:
Chirp Version:
daily
Model affected:
(All models)
I read the instructions above:

Description

The subject line speaks for itself really. I do know from the documentation that CHIRP is only supported on the Intel architecture today, but I was hoping there might be plans on the roadmap to build in support for this new chip. I've upgraded to the Apple Macbook Air M1 architecture and it is incredible. But I didn't think ahead to realize the M1 was not supported.

Thanks for your consideration.


Related issues

Is duplicate of Bug #8639: Mac M1 ChipClosed01/02/2021

Actions
Actions #1

Updated by Who Cares over 3 years ago

+1 for this one and get it fixed.

after some troubleshooting, it looks like it simply requires a re-compilation and it should be running fine.

Using package embedded Python leads to a killed process:

> bash -x CHIRP.app/Contents/MacOS/chirp
++ dirname CHIRP.app/Contents/MacOS/chirp
+ LOCATION=CHIRP.app/Contents/MacOS
+ PYTHON=CHIRP.app/Contents/MacOS/../CHIRP
+ export PYTHONPATH=/Library/Python/2.7/site-packages:CHIRP.app/Contents/MacOS/../Resources/site-packages:.
+ PYTHONPATH=/Library/Python/2.7/site-packages:CHIRP.app/Contents/MacOS/../Resources/site-packages:.
+ export DYLD_FALLBACK_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ DYLD_FALLBACK_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ export DYLD_VERSIONED_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ DYLD_VERSIONED_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ exec CHIRP.app/Contents/MacOS/../CHIRP CHIRP.app/Contents/MacOS/../Resources/chirp/chirpw
Killed: 9

Changing the script to use the system python fails with not found library (didn't realize there is a hard-coded dependency on it):

> bash -x CHIRP.app/Contents/MacOS/chirp
++ dirname CHIRP.app/Contents/MacOS/chirp
+ LOCATION=CHIRP.app/Contents/MacOS
+ PYTHON=CHIRP.app/Contents/MacOS/../CHIRP
+ export PYTHONPATH=/Library/Python/2.7/site-packages:CHIRP.app/Contents/MacOS/../Resources/site-packages:.
+ PYTHONPATH=/Library/Python/2.7/site-packages:CHIRP.app/Contents/MacOS/../Resources/site-packages:.
+ export DYLD_FALLBACK_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ DYLD_FALLBACK_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ export DYLD_VERSIONED_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ DYLD_VERSIONED_LIBRARY_PATH=CHIRP.app/Contents/MacOS/../Resources/lib:/opt/homebrew/lib/
+ /usr/bin/arch -x86_64 /usr/bin/python CHIRP.app/Contents/MacOS/../Resources/chirp/chirpw
Traceback (most recent call last):
  File "CHIRP.app/Contents/MacOS/../Resources/chirp/chirpw", line 24, in 
    from chirp.drivers import *
  File "CHIRP.app/Contents/Resources/chirp/chirp/drivers/anytone_iii.py", line 33, in 
    from chirp.ui.memdetail import MemoryDetailEditor
  File "CHIRP.app/Contents/Resources/chirp/chirp/ui/memdetail.py", line 16, in 
    import gtk
  File "CHIRP.app/Contents/Resources/site-packages/gtk/__init__.py", line 30, in 
    import gobject as _gobject
  File "CHIRP.app/Contents/Resources/site-packages/gobject/__init__.py", line 26, in 
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "CHIRP.app/Contents/Resources/site-packages/glib/__init__.py", line 22, in 
    from glib._glib import *
ImportError: dlopen(CHIRP.app/Contents/Resources/site-packages/glib/_glib.so, 2): Library not loaded: /usr/local/opt/glib/lib/libgobject-2.0.0.dylib
  Referenced from: CHIRP.app/Contents/Resources/site-packages/glib/_glib.so
  Reason: image not found

I guess, installing x64 version of Homebrew might solve the problem, but I don't really want to keep two versions of Homebrew.

Actions #2

Updated by Bernhard Hailer over 3 years ago

  • Status changed from New to Closed

Duplicates #8639. That ticket might offer a solution for you. If it doesn't, please follow and post there. Thanks!

Actions #3

Updated by Brian Jalet about 3 years ago

Unfortunately, the referenced #8639 doesn't solve the problem for me.

Actions

Also available in: Atom PDF