Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The build instruction doesn't work in macOS #1826

Open
wyatt-wong opened this issue Jan 29, 2025 · 8 comments
Open

The build instruction doesn't work in macOS #1826

wyatt-wong opened this issue Jan 29, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@wyatt-wong
Copy link

Please Note: This form is the minimum required information for submitting bugs.
Removing this form may lead to your issue being closed until it is completed.

Platform / OS / Hardware:
macOS

Flycast version:
Latest version

Hardware:
MacBook Pro

Description of the Issue
The build instruction does't work

Add a short, concise description of the issue here
The folllowing build instruction doesn't work:

$ git clone --recursive https://github.com/flyinghead/flycast.git $ cd flycast $ mkdir build && cd build $ cmake .. $ make

Debugging Steps Tested

  • Fill in any steps already tried here
  • Begin each new line with an asterisk
  • If no steps are required, please skip

Logs Gathered


Please paste the contents of the log / logs here
You may leave this field blank if you have none.

Screenshots

(Replace this line with any issue screenshots)

@wyatt-wong wyatt-wong added the bug Something isn't working label Jan 29, 2025
@cinnamonmatexfce
Copy link

where in the compile phase you're encountering issues?

Please provide logs.

@wyatt-wong
Copy link
Author

where in the compile phase you're encountering issues?

Please provide logs.

build.log

@wyatt-wong
Copy link
Author

Is there any update ?

@flyinghead
Copy link
Owner

Check the build file: https://github.com/flyinghead/flycast/blob/master/.github/workflows/c-cpp.yml
That's how flycast is built on macOS (and other platforms).

@appleiifanclub

This comment has been minimized.

@flyinghead
Copy link
Owner

I don't care about your comments. Good bye.

@wyatt-wong
Copy link
Author

wyatt-wong commented Feb 3, 2025

I don't care about your comments. Good bye.

The build instruction in the README page is incorrect. Furthermore, I don't understand clearly all the lines in the .yml

`

Unlink and re-link to prevent errors when github mac runner images install python outside of brew. See actions/runner-images#11545

      brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
      brew update || :
      brew install libao ldid ninja pulseaudio
      brew uninstall --ignore-dependencies zstd
      VULKAN_VER=1.3.261.1 && aria2c https://sdk.lunarg.com/sdk/download/$VULKAN_VER/mac/vulkansdk-macos-$VULKAN_VER.dmg
      hdiutil attach ./vulkansdk-macos-*.dmg -mountpoint /Volumes/VulkanSDK
      sudo /Volumes/VulkanSDK/InstallVulkan.app/Contents/MacOS/InstallVulkan --root $HOME/VulkanSDK --accept-licenses --default-answer --confirm-command install
      hdiutil detach /Volumes/VulkanSDK
      echo "VULKAN_SDK=$HOME/VulkanSDK/macOS" >> $GITHUB_ENV
    if: runner.os == 'macOS'

`

What does these lines meant:

VULKAN_VER=1.3.261.1 && aria2c https://sdk.lunarg.com/sdk/download/$VULKAN_VER/mac/vulkansdk-macos-$VULKAN_VER.dmg

if: runner.os == 'macOS'

The build instruction is still incorrect:

Image

DON'T expect everyone understand the lines in the .yml file. Not everyone is an experienced developer like yourself.

@wyatt-wong
Copy link
Author

If you ignore my request then the build instruction in the first page will be forever incomplete and no one else can build it from the source other than those who develop this application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants