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

SDL2.framework used instead of Homebrew #13

Open
Kurtjwest opened this issue Sep 21, 2024 · 8 comments
Open

SDL2.framework used instead of Homebrew #13

Kurtjwest opened this issue Sep 21, 2024 · 8 comments

Comments

@Kurtjwest
Copy link

Having issues using script to build RPCS3, here is my error log:

log.txt

I am on MacOS 15, but had same issue on MacOS 14.
I think it is some sort of issue with libpng, but am unsure.
If more info is needed to properly diagnose/solve the issue, I am more than willing to provide.

Any help would be greatly appreciated!!!

@Kurtjwest
Copy link
Author

Also, I followed the instructions given under the previous libpng issue posted, uncommenting libpng on line 127 of the script and setting DUSE_SYSTEM_LIBPNG to off. This allowed the app to build, but resulted in different qt related errors when linking the executable, causing the application to crash immediately when run. Here is the updated build log and crash report:

log.txt
crash-report.txt

@shinra-electric
Copy link
Owner

The Qt errors when linking are a known issue (#6). It just means that the Qt frameworks are not embedded in the app and it requires a local version to be installed (which you would have done already with the script).

The crash report says that it's an issue with SDL2:

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2

I'll change the title of this issue while I have a look at it.

@shinra-electric shinra-electric changed the title Error: use of undeclared identifier 'png_process_data_pause' SDL2.framework not found Sep 21, 2024
@shinra-electric
Copy link
Owner

shinra-electric commented Sep 21, 2024

I noticed that the [Process completed] message in your log wasn't there. Did you not copy it to the txt file? Or was the codesigning process interrupted?

Can you dig into the app bundle and run the otool -L rpcs3 command on the executable, and post the output here?

@shinra-electric
Copy link
Owner

I see you have the SDL2 framework installed and it is using that instead of homebrew.
I also noticed this line too:
ERROR: Cannot resolve rpath "@rpath/SDL2.framework/Versions/A/SDL2"

The code starting from line 89 is supposed to solve this issue, but it seems like it is not working...

@shinra-electric
Copy link
Owner

shinra-electric commented Sep 21, 2024

Can you try changing line 93 to SEARCH_FRAMEWORKS_SEQUENCE=FIRST and see if that helps?
(It shouldn't, unless the default sequence has changed in Sequoia...)

@shinra-electric
Copy link
Owner

A hotfix would just be to remove the SDL2.framework from /Library/Frameworks/SDL2.framework

@shinra-electric shinra-electric changed the title SDL2.framework not found SDL2.framework used instead of Homebrew Sep 21, 2024
@Kurtjwest
Copy link
Author

Thanks for your help, removing SDL2.framework from /Library/Frameworks/SDL2.framework solved the issue. Changing line 93 did nothing however.

Also, the [Process completed] message did not appear in either the failed or successful build attempts, however the emulator seemed to run without a hitch after I took the necessary steps.

@Kurtjwest
Copy link
Author

Kurtjwest commented Sep 21, 2024

recloned the repo, now receiving "Script has completed" at end of build process.

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

No branches or pull requests

2 participants