Skip to content

Cross-platform patches and updates for macOS on arm64 - #6

Open
emgillis wants to merge 2 commits into
Fagear:mainfrom
emgillis:fix/macos-compilation
Open

emgillis wants to merge 2 commits into
Fagear:mainfrom
emgillis:fix/macos-compilation

Conversation

@emgillis

@emgillis emgillis commented Nov 2, 2026

Copy link
Copy Markdown

PR adds cross-platform/portability fixes so that the codebase will compile natively on Apple Silicon (ARM64) Macs running macOS and Qt 5:
• Add conditions around the Windows-specific taskbar modules (QWinTaskbarProgress / QWinTaskbarButton) inside mainwindow using #ifdef Q_OS_WIN preprocessor blocks.
• Removed Intel-specific -march=core2 optimization flag from SDVPCMdecoder.pro.
• Explicitly added QT += opengl to link the required QGLFormat dependencies on non-Windows platforms.
• Fixed 64-bit integer pointer-slicing errors by converting thread ID typecasts from (uint) to (quintptr) across all logging thread handlers.
• Resolved strict compiler sorting errors in frametrimset by setting the custom operator< comparison methods as const.

Note: English language display in the GUI on Mac required copying of the English Language package to the binary app after compiling via: cp SDVPCMdecoder_en.qm SDVPCMdecoder.app/Contents/MacOS/

@emgillis

emgillis commented Nov 2, 2026

Copy link
Copy Markdown
Author

It should be noted that actual SD to PCM conversion process is currently untested on Mac. This code update was merely to get a compilation to happen properly and have the binary launch.

@emgillis

emgillis commented Nov 3, 2026

Copy link
Copy Markdown
Author

Continued debugging and updating in order to properly open a video file on the Mac compiled version.

The PR has now been updated to address macOS ARM64 and FFmpeg 7 compatibility:

  • Resolved SIGBUS crash by prioritizing system include paths (mac using hombrew as dev environment).
  • Updated ffmpegwrapper.cpp for FFmpeg 7 field changes (such as pkt_duration -> duration).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant