Add Linux cross-compilation support and development environment setup#1
Draft
openff wants to merge 1 commit into
Draft
Add Linux cross-compilation support and development environment setup#1openff wants to merge 1 commit into
openff wants to merge 1 commit into
Conversation
- linux_compat.h: Macros for CoInitialize and memcpy_s stubs on Linux - linux_compat.cpp: Shims for removed FFmpeg 4.x functions (av_frame_get_channels, avcodec_encode_video2) - HomeWindow.h: Symlink to homewindow.h for case-sensitive filesystems - AGENTS.md: Development environment instructions for Cursor Cloud agents Co-authored-by: openff <openff@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds files enabling EzPlayer to build and run on Linux, plus development environment documentation for Cursor Cloud agents.
Changes
linux_compat.h— Preprocessor macros stubbing Windows-only APIs (CoInitialize,memcpy_s) on Linuxlinux_compat.cpp— Shim implementations for FFmpeg 4.x functions removed in FFmpeg 6.x (av_frame_get_channels,avcodec_encode_video2), enabling linking against system FFmpeg librariesHomeWindow.h— Symlink tohomewindow.hfor Linux case-sensitive filesystems (Windows is case-insensitive)AGENTS.md— Development environment instructions for Cursor Cloud agents, including qmake invocation, build, lint, and run commandsContext
EzPlayer is a Windows-targeting Qt/C++ media player. These changes enable cross-compilation on Linux Ubuntu using system-installed Qt 5.15, FFmpeg 6.x, and SDL2 packages without modifying any existing source code. The compatibility shims bridge the gap between the project's FFmpeg 4.2.1 API usage and the system's FFmpeg 6.x libraries.
Testing
Ezplayerbinarycppcheckstatic analysis successfully