Skip to content

Instantly share code, notes, and snippets.

@Frityet
Last active November 29, 2024 03:45
Show Gist options
  • Save Frityet/448a945690bd7c8cff5fef49daae858e to your computer and use it in GitHub Desktop.
Save Frityet/448a945690bd7c8cff5fef49daae858e to your computer and use it in GitHub Desktop.

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

Why would I want this?

Playing Windows games on MacOS

How?

First, install homebrew which is an amazing macOS package manager, which is weirdly enough what Apple themselves have used for distrobution of this program

brew tap apple/homebrew-apple

This adds apple's offical "repository" for their "forumula" (package), which includes the game-porting-toolkit

AArch64 (ARM, Apple's chips, not x86_64/Intel)

Make sure that rosetta2 is installed

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

homebrew to inside Rosetta

arch -x86_64 zsh
cd /usr/local && mkdir homebrew
curl -L github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
arch -x86_64 /usr/local/homebrew/bin/brew tap apple/homebrew-apple
arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

Now, you can install the game-porting-toolkit

Warning: This will take a LONG TIME, and will use up a LOT of system resources because it needs to compile a really large project (LLVM)

brew install game-porting-toolkit

Then, go to this url (on apple.com) to download the actual toolkit, place it somewhere memorable.

How do I use it?

First, you need to create a "wine prefix" for your game.

To do this,

WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg

Where you would replace my-game-prefix with whatever you want you want it to be.

You should now change (in the window that pops up) the windows version to "windows 10"

Press ok, and then install your game into my-game-prefix

Finally, to install apple's game porting toolkit, use

ditto [REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/lib/ `brew --prefix game-porting-toolkit`/lib/

and finally, to run the executable,

[REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/gameportingtoolkit ~/my-game-prefix 'C:\\Program Files\\MyGame\\MyGame.exe'

or, for without the debug GUI

[REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/gameportingtoolkit-no-hud ~/my-game-prefix 'C:\\Program Files\\MyGame\\MyGame.exe'

Integration into Steam

TODO

@1ncrement
Copy link

Знімок екрана 2023-06-30 о 22 13 46

After going through all the instructions, it stopped at the start of steam. Steam seemed to be installed, but even a black screen did not appear when I tried to authorize. I tried to install steam credentials for my user in advance, but it didn't work. The problem is that there is no response to the command to launch steam. Does anyone know what the problem is?

@chit320
Copy link

chit320 commented Jul 6, 2023

I got this error, how can I fix it?

Error: Failure while executing; patch -g 0 -f -p0 exited with 1. Here's the output:

@dnicolson
Copy link

First I had to run brew uninstall zsh to ensure the existing zsh Homebrew binary was not being used to avoid:
"arch: posix_spawnp: zsh: Bad CPU type in executable"

Then I either had "You must: brew install svn" issues installing netpbm or the process would result in a seemingly infinite amount of file handles being opened until "Too many open files" errors.

Running brew tap displayed the following warning:
"Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set
to /usr/local/Homebrew/Cellar. Your current HOMEBREW_CELLAR location will stop
you being able to use all the binary packages (bottles) Homebrew provides. We
recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you
access to all bottles.""

This was resolved with:

  1. arch -x86_64 zsh
  2. Uninstall Homebrew
  3. Remove /usr/local/Homebrew/
  4. Install Homebrew

@wibed
Copy link

wibed commented Jul 12, 2023

games wont launch, even using bottles from crossover. Must be something within wine to configure to get it running

@W4yneWu
Copy link

W4yneWu commented Aug 7, 2023

Hi I can't have the winecfg run properly, the wine icon appeared in the dock, but no window displayed, and on the terminal it printed many freetype errors. Pretty sure I have freetype 2.13.1 install on the x86 brew, what should I do?

wwu@L ~ % which brew
/usr/local/bin/brew
wwu@L ~ % brew list --version | grep free
freetype 2.13.1
wwu@L ~ % WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 --version
wine-7.7
wwu@L ~ % WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
00c0:fixme:imm:ImeSetActiveContext (0x378170, 1): stub
00c0:fixme:imm:ImmReleaseContext (0000000000010054, 0000000000378170): stub
00c8:fixme:imm:ImeSetActiveContext (0x37b710, 0): stub
00c8:fixme:imm:ImmReleaseContext (0000000000010020, 000000000037B710): stub

@Hansaplast
Copy link

Just being curious if anyone tried this approach? Seems to be an installer that "does it all"?

Note: I have zero experience with the Game Porting Toolkit and am hesitant to run a beta macOS [Sonoma] on my Mac.

@Dcschmid98
Copy link

Dcschmid98 commented Aug 19, 2023

I am very new to anything that has to do with coding. I downloaded Whiskey to help me with this whole process but I'm obviously missing something. How do I use Whiskey and add games to my Mac?

@jackandcarter
Copy link

jackandcarter commented Sep 19, 2023

Can we get some intel support on this? I see on the apple gaming wiki that intel users can use crossover to run wine so they do not get the web helper error, however when I do this it says Sonoma is needed, which doesn't make sense. How do intel users get the windows version of steam going using GPTK? Considering rosetta2 is needed for arm users, intel users should have no problems doing these things natively, what gives?

@Kikismine
Copy link

When I run the arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit command, after about 15mins I get ld: building exports trie: duplicate symbol '_av_ac3_parse_header' error..

Anyone can help ?

@jackandcarter
Copy link

jackandcarter commented Sep 20, 2023

When I run the arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit command, after about 15mins I get ld: building exports trie: duplicate symbol '_av_ac3_parse_header' error..

Anyone can help ?

maybe this will work better for you: https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit
There are now better ways to get GPTK built and most people use the install aware method which is all automated.

if you still want to build it yourself just follow the brew methods in the guide, if you want to skip building you can use the prebuild section, either way the wine part will take a while to finish. If you want to automate the process you can use the install aware GitHub, you wont need to download anything else as it will do it for you and build everything (just make sure you have Xcode 15 beta 8 or higher and the command line tools for Xcode 15 installed), if you already have the GPTK dmg you can also drag that to the field in the app and it will use it instead of grabbing it automatically. Quite simple and straight forward, if you still have an issue using this then it's something with your environment. Just want to say that Whiskey is not really a good way to use GPTK and it seems to only work for some users, if you have issues with Whiskey then don't try to use it and try the install aware methods instead, those work for pretty much everyone.

Once you have it installed just go down to the commands section of the guide, and that will show you the command to start your exe. I simply copy and paste up to the wine prefix and drag my exe into terminal and hit enter, then the app should load. Good luck and let us know how it turns out or if you have any questions.

@JumpyJag7
Copy link

I was on this step:
arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

And this error message showed up

==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:78f51a7e36344ac404b9cd37376b
curl: (22) The requested URL returned error: 503                                               
Warning: Problem : HTTP error. Will retry in 1 seconds. 3 retries left.
curl: (56) Recv failure: Connection reset by peer       

Error: game-porting-toolkit: Failed to download resource "cmake"
Download failed: https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:78f51a7e36344ac404b9cd37376bae06e59c172e5d9e1d2b979ca3263b4639bb

Anyone know what I can do to fix this?

@gbalakrishnan0
Copy link

hello. im not sure if anyone else had this error while running this code:

arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

and after about an hour and a half, it spit out this error while trying to install "subversion" after installing its dependancies:

Error: An exception occurred within a child process: FormulaUnavailableError: No available formula with the name "/usr/local/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/svn".

i am not entirely sure what to do here. any help would be greatly appreciated.

@Dremuchev
Copy link

I was on this step: arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

And this error message showed up

==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:78f51a7e36344ac404b9cd37376b
curl: (22) The requested URL returned error: 503                                               
Warning: Problem : HTTP error. Will retry in 1 seconds. 3 retries left.
curl: (56) Recv failure: Connection reset by peer       

Error: game-porting-toolkit: Failed to download resource "cmake"
Download failed: https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:78f51a7e36344ac404b9cd37376bae06e59c172e5d9e1d2b979ca3263b4639bb

Anyone know what I can do to fix this?

yep, for me it was fixed by the VPN

@Xandir150
Copy link

hello. im not sure if anyone else had this error while running this code:

arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

and after about an hour and a half, it spit out this error while trying to install "subversion" after installing its dependancies:

Error: An exception occurred within a child process: FormulaUnavailableError: No available formula with the name "/usr/local/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/svn".

i am not entirely sure what to do here. any help would be greatly appreciated.

try arch -x86_64 /usr/local/homebrew/bin/brew install subversion before toolkit

@kotetsuy
Copy link

kotetsuy commented Oct 1, 2023

Hello I face the compile problem at

arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

Error message is here

`==> meson setup build -Dpython=/usr/local/homebrew/opt/python@3.11/bin/python3.1
==> meson compile -C build --verbose
Last 15 lines from /Users/soft99/Library/Logs/Homebrew/gobject-introspection/02.meson:
[146/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/Bar-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Bar --nsversion=1.0 --include=GObject-2.0 --pkg=gobject-2.0 --library=barapp-1.0 --accept-unprefixed -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/girepository -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/barapp.c ../tests/scanner/barapp.h
[147/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/SLetter-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=SLetter --nsversion=1.0 --identifier-prefix=S --include=Gio-2.0 --library=sletter-1.0 --c-include=sletter.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/sletter.c ../tests/scanner/sletter.h
FAILED: tests/scanner/SLetter-1.0.gir
/private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/SLetter-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=SLetter --nsversion=1.0 --identifier-prefix=S --include=Gio-2.0 --library=sletter-1.0 --c-include=sletter.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/sletter.c ../tests/scanner/sletter.h
:: Warning: SLetter: (ErrorQuarkFunction)spawn_error_quark: s_spawn_error_quark: return value: Unresolved type: 'GQuark'
:: Warning: SLetter: (ErrorQuarkFunction)dbus_error_quark: s_dbus_error_quark: return value: Unresolved type: 'GQuark'
:: Fatal: SLetter: warnings configured as fatal
:: Fatal: SLetter: warnings configured as fatal

[148/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/WarnLib-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --namespace=WarnLib --nsversion=1.0 --include=Gio-2.0 --library=warnlib-1.0 --symbol-prefix=warnlib_ --c-include=warnlib.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/warnlib.c ../tests/scanner/warnlib.h
[149/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/offsets/Offsets-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Offsets --nsversion=1.0 --include=GObject-2.0 --library=offsets-1.0 -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/offsets -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/offsets -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests ../tests/offsets/offsets.c ../tests/offsets/offsets.h
[150/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/Everything-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Everything --nsversion=1.0 --include=Gio-2.0 --library=everything-1.0 -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests tests/everything.c tests/everything.h
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/local/homebrew/Library/Homebrew/shims/mac/super/ninja -C /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build -v

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!`

Do you have any solution?

@Galase
Copy link

Galase commented Oct 3, 2023

Hello I face the compile problem at

arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

Error message is here

`==> meson setup build -Dpython=/usr/local/homebrew/opt/python@3.11/bin/python3.1 ==> meson compile -C build --verbose Last 15 lines from /Users/soft99/Library/Logs/Homebrew/gobject-introspection/02.meson: [146/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/Bar-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Bar --nsversion=1.0 --include=GObject-2.0 --pkg=gobject-2.0 --library=barapp-1.0 --accept-unprefixed -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/girepository -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/barapp.c ../tests/scanner/barapp.h [147/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/SLetter-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=SLetter --nsversion=1.0 --identifier-prefix=S --include=Gio-2.0 --library=sletter-1.0 --c-include=sletter.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/sletter.c ../tests/scanner/sletter.h FAILED: tests/scanner/SLetter-1.0.gir /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/SLetter-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=SLetter --nsversion=1.0 --identifier-prefix=S --include=Gio-2.0 --library=sletter-1.0 --c-include=sletter.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/sletter.c ../tests/scanner/sletter.h :: Warning: SLetter: (ErrorQuarkFunction)spawn_error_quark: s_spawn_error_quark: return value: Unresolved type: 'GQuark' :: Warning: SLetter: (ErrorQuarkFunction)dbus_error_quark: s_dbus_error_quark: return value: Unresolved type: 'GQuark' :: Fatal: SLetter: warnings configured as fatal :: Fatal: SLetter: warnings configured as fatal

[148/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/scanner/WarnLib-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --namespace=WarnLib --nsversion=1.0 --include=Gio-2.0 --library=warnlib-1.0 --symbol-prefix=warnlib_ --c-include=warnlib.h -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/scanner/.. ../tests/scanner/warnlib.c ../tests/scanner/warnlib.h [149/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/offsets/Offsets-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Offsets --nsversion=1.0 --include=GObject-2.0 --library=offsets-1.0 -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests/offsets -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests/offsets -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests ../tests/offsets/offsets.c ../tests/offsets/offsets.h [150/161] /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tools/g-ir-scanner --quiet --output=tests/Everything-1.0.gir --no-libtool --reparse-validate --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/gir --add-include-path /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/gir --warn-all --warn-error --namespace=Everything --nsversion=1.0 --include=Gio-2.0 --library=everything-1.0 -L /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build/tests -I /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/tests tests/everything.c tests/everything.h ninja: build stopped: subcommand failed. INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/local/homebrew/Library/Homebrew/shims/mac/super/ninja -C /private/tmp/gobject-introspection-20231001-33137-1uysm6c/gobject-introspection-1.78.1/build -v

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!`

Do you have any solution?

I have the same problem, did I find the solution?

@Dasch0
Copy link

Dasch0 commented Oct 8, 2023

@kotetsuy @Galase had the same issue, root problem is the HOMEBREW_PREFIX used in this guide (/usr/local/homebrew/) is just incorrect. The homebrew prefix really needs to be /usr/local

Earlier in the build step for gobject-introspection you should see a warning, saying it is building from source because the prefix is not usr/local or similar. Thats the real issue here..

To fix this, I had to uninstall the x86_64 version of homebrew completely, and reinstall it with the default prefix (I have no idea when I accidentally introduced this different prefix on my first attempt...or why this guide had the same incorrect prefix). But Immediately after installing, run brew doctor and make sure to fix any warnings before going back through the install steps.

Good luck!

@kotetsuy
Copy link

kotetsuy commented Oct 8, 2023

@Dasch0 thanks. I‘ll try it

@MiladJabbarzade
Copy link

MiladJabbarzade commented Oct 9, 2023

For all -> Bad CPU type in executable
make sure first run command -> softwareupdate --install-rosetta

Homebrew needs to be installed in two places on Apple silicon: in /usr/local for rosetta-emulated (Intel) code, and /opt/homebrew for ARM64. After installing Rosetta2 above you can then use the Homebrew cmd and install Homebrew for ARM M1 chip:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Once Homebrew for M1 ARM is installed use this Homebrew command to install packages: arch -x86_64 brew install
Here is our command for installing game toolkit: arch -x86_64 brew install game-porting-toolkit

@MiladJabbarzade
Copy link

After 3 hours of trying on M1 pro I just got "did not build error"
`==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /usr/local/homebrew/opt/bison:/usr/local/homebrew/opt/readline:/usr/local/homebrew/opt/sqlite:/usr/local/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/homebrew/opt/python@3.11/Frameworks
PKG_CONFIG_PATH: /usr/local/homebrew/opt/libpng/lib/pkgconfig:/usr/local/homebrew/opt/freetype/lib/pkgconfig:/usr/local/homebrew/opt/fontconfig/lib/pkgconfig:/usr/local/homebrew/opt/pcre2/lib/pkgconfig:/usr/local/homebrew/opt/glib/lib/pkgconfig:/usr/local/homebrew/opt/libxau/lib/pkgconfig:/usr/local/homebrew/opt/libxdmcp/lib/pkgconfig:/usr/local/homebrew/opt/libxcb/lib/pkgconfig:/usr/local/homebrew/opt/libx11/lib/pkgconfig:/usr/local/homebrew/opt/libxext/lib/pkgconfig:/usr/local/homebrew/opt/libxrender/lib/pkgconfig:/usr/local/homebrew/opt/lzo/lib/pkgconfig:/usr/local/homebrew/opt/pixman/lib/pkgconfig:/usr/local/homebrew/opt/cairo/lib/pkgconfig:/usr/local/homebrew/opt/openssl@3/lib/pkgconfig:/usr/local/homebrew/opt/readline/lib/pkgconfig:/usr/local/homebrew/opt/sqlite/lib/pkgconfig:/usr/local/homebrew/opt/xz/lib/pkgconfig:/usr/local/homebrew/opt/python@3.11/lib/pkgconfig:/usr/local/homebrew/opt/xorgproto/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /usr/local/homebrew/opt/bison/share/aclocal:/usr/local/homebrew/share/aclocal
PATH: /usr/local/homebrew/Library/Homebrew/shims/mac/super:/usr/local/homebrew/opt/bison/bin:/usr/local/homebrew/opt/cmake/bin:/usr/local/homebrew/opt/meson/bin:/usr/local/homebrew/opt/ninja/bin:/usr/local/homebrew/opt/libpng/bin:/usr/local/homebrew/opt/freetype/bin:/usr/local/homebrew/opt/fontconfig/bin:/usr/local/homebrew/opt/pcre2/bin:/usr/local/homebrew/opt/gettext/bin:/usr/local/homebrew/opt/glib/bin:/usr/local/homebrew/opt/cairo/bin:/usr/local/homebrew/opt/pkg-config/bin:/usr/local/homebrew/opt/openssl@3/bin:/usr/local/homebrew/opt/sqlite/bin:/usr/local/homebrew/opt/xz/bin:/usr/local/homebrew/opt/python@3.11/bin:/usr/local/homebrew/opt/python@3.11/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: gobject-introspection 1.78.1 did not build`
I appreciate any idea.

@pickaxe828
Copy link

pickaxe828 commented Oct 22, 2023

hello. im not sure if anyone else had this error while running this code:
arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit
and after about an hour and a half, it spit out this error while trying to install "subversion" after installing its dependancies:
Error: An exception occurred within a child process: FormulaUnavailableError: No available formula with the name "/usr/local/homebrew/Library/Taps/homebrew/homebrew-core/Aliases/svn".
i am not entirely sure what to do here. any help would be greatly appreciated.

try arch -x86_64 /usr/local/homebrew/bin/brew install subversion before toolkit

And then I get this

==> Fetching subversion
Warning: Building subversion from source as the bottle needs:
- HOMEBREW_CELLAR: /usr/local/Cellar (yours is /usr/local/homebrew/Cellar)
- HOMEBREW_PREFIX: /usr/local (yours is /usr/local/homebrew)
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/a30b9a1be1e81a2949d53cf6f77c6a34bf9aa904/Formula/s/subversion.rb
Already downloaded: /Users/pickaxe828/Library/Caches/Homebrew/downloads/22a7ee05fbf045f28483376eb457503b2d45c530964df322196d10b06a1b2f50--subversion.rb
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-big_sur.diff
Already downloaded: /Users/pickaxe828/Library/Caches/Homebrew/downloads/195208ba31cadc265ea97bb8aad4e78caab1200daf4d855e6c839b5f987f92db--configure-big_sur.diff
==> Downloading https://github.com/encukou/py3c/archive/v1.1.tar.gz
Already downloaded: /Users/pickaxe828/Library/Caches/Homebrew/downloads/341faafd274c164961d080ffbaab85a010d9385563dc574212244e60297de7b8--py3c-1.1.tar.gz
==> Downloading https://www.apache.org/dyn/closer.lua?path=serf/serf-1.3.10.tar.bz2
Already downloaded: /Users/pickaxe828/Library/Caches/Homebrew/downloads/2b202cdd34dccfed3cecd1adec5f00bfc37d4524e91269207cfe0fef0f6d190d--serf-1.3.10.tar.bz2
==> Downloading https://www.apache.org/dyn/closer.lua?path=subversion/subversion-1.14.2.tar.bz2
Already downloaded: /Users/pickaxe828/Library/Caches/Homebrew/downloads/5d396317799e6411e8a1d3d38353fc5e11d89f67e9324657893292074e4e6471--subversion-1.14.2.tar.bz2
==> Patching
==> Applying configure-big_sur.diff
patching file configure
==> /usr/local/homebrew/opt/scons/bin/scons PREFIX=/usr/local/homebrew/Cellar/subversion/1.14.2_3/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=nehalem -mmacosx-version-min=14 -isysroot/Library/Developer/CommandL
==> /usr/local/homebrew/opt/scons/bin/scons install
==> ./configure --enable-optimize --disable-mod-activation --disable-plaintext-password-storage --with-apr-util=/usr/local/homebrew/opt/apr-util --with-apr=/usr/local/homebrew/opt/apr --with-apxs=no --with-ruby-sitedir=/usr/local/homebr
==> make
==> make install
==> make tools
==> make install-tools
==> make swig-py
Last 15 lines from /Users/pickaxe828/Library/Logs/Homebrew/subversion/08.make:
2023-10-22 15:25:14 +0000

make
swig-py

/bin/sh "/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/libtool" --tag=CC --silent --mode=compile none  -I/usr/local/homebrew/opt/apr-util/include -I/usr/local/homebrew/opt/apr/include -isystem/usr/local/homebrew/include -F/usr/local/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK  -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/include -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/include -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/proxy -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/proxy -I/usr/local/homebrew/opt/apr/include/apr-1  -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include none  -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/python/libsvn_swig_py -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo subversion/bindings/swig/python/svn_client.c
/bin/sh "/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/libtool" --tag=CC --silent --mode=compile none -I/usr/local/homebrew/opt/apr-util/include -I/usr/local/homebrew/opt/apr/include -isystem/usr/local/homebrew/include -F/usr/local/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK   -DSWIGPYTHON -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/include -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/include -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/proxy -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/proxy -I/usr/local/homebrew/opt/apr/include/apr-1  -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include none  -I/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/subversion/bindings/swig/python/libsvn_swig_py -I./subversion/include -I./subversion -I/usr/local/homebrew/opt/apr/include/apr-1   -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include -I/usr/local/homebrew/Cellar/subversion/1.14.2_3/libexec/serf/include/serf-1 -I/usr/local/homebrew/Cellar/openssl@3/3.1.3/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include -I/usr/local/homebrew/Cellar/lz4/1.9.4/include  -o subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo -c subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
SWIG python disabled at configure time: no distutils found
make: *** [.swig_py_checked] Error 1
make: *** Waiting for unfinished jobs....
/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/libtool: line 1760: none: command not found
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
/private/tmp/subversion-20231022-72665-te3uk9/subversion-1.14.2/libtool: line 1760: none: command not found
make: *** [subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo] Error 1

What do I do to fix it?

@hen12343
Copy link

@td0 - I was able to get past the error. It looks like netpbm needs to be installed separately:

arch -x86_64 /usr/local/homebrew/bin/brew install netpbm && arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit

I tried this after getting the Failed to download resource "netpbm" error and got this long thing and I have no idea what to do from here

`==> /usr/local/homebrew/opt/scons/bin/scons PREFIX=/usr/local/homebrew/Cellar/su
==> /usr/local/homebrew/opt/scons/bin/scons install
==> ./configure --enable-optimize --disable-mod-activation --disable-plaintext-p
==> make
==> make install
==> make tools
==> make install-tools
==> make swig-py
Last 15 lines from /Users/NAME/Library/Logs/Homebrew/subversion/08.make:
2023-11-24 00:49:29 +0000

make
swig-py

/bin/sh "/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/libtool" --tag=CC --silent --mode=compile none -I/usr/local/homebrew/opt/apr-util/include -I/usr/local/homebrew/opt/apr/include -isystem/usr/local/homebrew/include -F/usr/local/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/include -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/include -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/proxy -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/proxy -I/usr/local/homebrew/opt/apr/include/apr-1 -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include none -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/python/libsvn_swig_py -prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo subversion/bindings/swig/python/svn_client.c
/bin/sh "/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/libtool" --tag=CC --silent --mode=compile none -I/usr/local/homebrew/opt/apr-util/include -I/usr/local/homebrew/opt/apr/include -isystem/usr/local/homebrew/include -F/usr/local/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DSWIGPYTHON -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/include -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/include -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/proxy -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/proxy -I/usr/local/homebrew/opt/apr/include/apr-1 -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include none -I/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/subversion/bindings/swig/python/libsvn_swig_py -I./subversion/include -I./subversion -I/usr/local/homebrew/opt/apr/include/apr-1 -I/usr/local/homebrew/opt/apr-util/include/apr-1 -I/usr/local/homebrew/opt/openssl@3/include -I/usr/local/homebrew/Cellar/subversion/1.14.2_4/libexec/serf/include/serf-1 -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include -o subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo -c subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
SWIG python disabled at configure time: no distutils found
make: *** [.swig_py_checked] Error 1
make: *** Waiting for unfinished jobs....
/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/libtool: line 1760: none: command not found
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
/private/tmp/subversion-20231123-15696-1niojam/subversion-1.14.2/libtool: line 1760: none: command not found
make: *** [subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo] Error 1

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

`

@TalkBackJohnny
Copy link

The lib is not under the game porting toolkit not sure how to change
user@computerM3 / % ls "/Volumes/Game Porting Toolkit-1.1"
Acknowledgements.rtf Read Me.rtf gameportingtoolkit-no-esync redist
License.rtf gameportingtoolkit gameportingtoolkit-no-hud
user@computerM3 / % ditto /Volumes/Game\ Porting\ Toolkit-1.1/lib/ brew --prefix game-porting-toolkit/lib/
ditto: Cannot get the real path for source '/Volumes/Game Porting Toolkit-1.1/lib/'
jbrooksii@LapdogM3 / %

@Phoenix124
Copy link

Who could help to resolve installation of apr-util?
got error

==> ./configure --with-apr=/usr/local/homebrew/opt/apr --with-crypto --with-openssl=/usr/local/homebrew/opt/openssl@3 --wi
==> make
Last 15 lines from Library/Logs/Homebrew/apr-util/02.make:
1 error generated.
In file included from buckets/apr_buckets_pool.c:17:
/private/tmp/apr-util-20231215-51542-to8c5h/apr-util-1.6.3/include/apr_buckets.h:29:10: fatal error: 'apr_network_io.h' file not found
#include "apr_network_io.h"
         ^~~~~~~~~~~~~~~~~~
make[1]: *** [buckets/apr_buckets_heap.lo] Error 1
make[1]: *** [buckets/apr_buckets_file.lo] Error 1
make[1]: *** [buckets/apr_buckets_flush.lo] Error 1
make[1]: *** [buckets/apr_brigade.lo] Error 1
make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1
1 error generated.
1 error generated.
make[1]: *** [buckets/apr_buckets_pipe.lo] Error 1
make[1]: *** [buckets/apr_buckets_pool.lo] Error 1
make: *** [all-recursive] Error 1

@Phoenix124
Copy link

Phoenix124 commented Dec 15, 2023

Who could help to resolve installation of apr-util? got error

==> ./configure --with-apr=/usr/local/homebrew/opt/apr --with-crypto --with-openssl=/usr/local/homebrew/opt/openssl@3 --wi
==> make
Last 15 lines from Library/Logs/Homebrew/apr-util/02.make:
1 error generated.
In file included from buckets/apr_buckets_pool.c:17:
/private/tmp/apr-util-20231215-51542-to8c5h/apr-util-1.6.3/include/apr_buckets.h:29:10: fatal error: 'apr_network_io.h' file not found
#include "apr_network_io.h"
         ^~~~~~~~~~~~~~~~~~
make[1]: *** [buckets/apr_buckets_heap.lo] Error 1
make[1]: *** [buckets/apr_buckets_file.lo] Error 1
make[1]: *** [buckets/apr_buckets_flush.lo] Error 1
make[1]: *** [buckets/apr_brigade.lo] Error 1
make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1
1 error generated.
1 error generated.
make[1]: *** [buckets/apr_buckets_pipe.lo] Error 1
make[1]: *** [buckets/apr_buckets_pool.lo] Error 1
make: *** [all-recursive] Error 1

resolve by set HOMEBREW_CELLAR to right pass /usr/local/Cellar

@opengamer29
Copy link

Who could help to resolve installation of apr-util? got error

==> ./configure --with-apr=/usr/local/homebrew/opt/apr --with-crypto --with-openssl=/usr/local/homebrew/opt/openssl@3 --wi
==> make
Last 15 lines from Library/Logs/Homebrew/apr-util/02.make:
1 error generated.
In file included from buckets/apr_buckets_pool.c:17:
/private/tmp/apr-util-20231215-51542-to8c5h/apr-util-1.6.3/include/apr_buckets.h:29:10: fatal error: 'apr_network_io.h' file not found
#include "apr_network_io.h"
         ^~~~~~~~~~~~~~~~~~
make[1]: *** [buckets/apr_buckets_heap.lo] Error 1
make[1]: *** [buckets/apr_buckets_file.lo] Error 1
make[1]: *** [buckets/apr_buckets_flush.lo] Error 1
make[1]: *** [buckets/apr_brigade.lo] Error 1
make[1]: *** [buckets/apr_buckets_alloc.lo] Error 1
1 error generated.
1 error generated.
make[1]: *** [buckets/apr_buckets_pipe.lo] Error 1
make[1]: *** [buckets/apr_buckets_pool.lo] Error 1
make: *** [all-recursive] Error 1

resolve by set HOMEBREW_CELLAR to right pass /usr/local/Cellar

This helps me https://github.com/orgs/Homebrew/discussions/3316#discussioncomment-4620669

@minor-coder
Copy link

I'm trying to set up "nexon plug" When I finished install it , 스크린샷 2023-06-24 오후 9 19 20 Nothing Appeared;; How can I do? I'm korean and 넥슨플러그 means nexonplug

혹시 해결하셨나요?
여전히 넥슨 플러그는 투명창으로 열리네요 ㅠㅠ

@rafsimo
Copy link

rafsimo commented Jun 30, 2024

Heyyy I got this error:
Error: game-porting-toolkit: Failed to download resource "glib--gobject-introspection"
Download failed: https://download.gnome.org/sources/gobject-introspection/1.80/gobject-introspection-1.80.1.tar.xz
Could anyone help?

@xdexer
Copy link

xdexer commented Sep 26, 2024

Hi,
while installing from Homebrew the porting-toolkit I got such an error:

==> Installing game-porting-toolkit from apple/apple
==> Staging /Users/dominikmarcinkowski/Library/Caches/Homebrew/downloads/7baed2a6fd34b4a641db7d1ea1e380ccb2f457bb24cd8043c428b6c10ea22932--crossover-sources-22.1.1.tar.gz in /priv
==> Patching
==> /private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine/configure --prefix=/usr/local/homebrew/Cellar/game-porting-toolkit/1.1 --disable-win16 --disable-tests --without-x
Last 15 lines from /Users/dominikmarcinkowski/Library/Logs/Homebrew/game-porting-toolkit/01.configure:
--enable-win64
--with-gnutls
--with-freetype
--with-gstreamer
CC=/usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang
CXX=/usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang++

checking build system type... x86_64-apple-darwin23.6.0
checking host system type... x86_64-apple-darwin23.6.0
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine64-build':
configure: error: C compiler cannot create executables
See `config.log' for more details

When checking config.log:

configure:5097: checking whether the C compiler works
configure:5119: /usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang -I/usr/local/homebrew/opt/zlib/include -I/usr/local/homebrew/opt/freetype/include -I/usr/local/homebrew/opt/sdl2/include -I/usr/local/homebrew/opt/libgphoto2/include -I/usr/local/homebrew/opt/faudio/include -I/usr/local/homebrew/opt/jpeg/include -I/usr/local/homebrew/opt/libpng/include -I/usr/local/homebrew/opt/mpg123/include -I/usr/local/homebrew/opt/libtiff/include -I/usr/local/homebrew/opt/libgsm/include -I/usr/local/homebrew/opt/glib/include -I/usr/local/homebrew/opt/gnutls/include -I/usr/local/homebrew/opt/libusb/include -I/usr/local/homebrew/opt/gettext/include -I/usr/local/homebrew/opt/openssl@1.1/include -I/usr/local/homebrew/opt/sane-backends/include -O3 -Wno-implicit-function-declaration -Wno-format -Wno-deprecated-declarations -Wno-incompatible-pointer-types  -L/usr/local/homebrew/opt/zlib/lib -L/usr/local/homebrew/opt/freetype/lib -L/usr/local/homebrew/opt/sdl2/lib -L/usr/local/homebrew/opt/libgphoto2/lib -L/usr/local/homebrew/opt/faudio/lib -L/usr/local/homebrew/opt/jpeg/lib -L/usr/local/homebrew/opt/libpng/lib -L/usr/local/homebrew/opt/mpg123/lib -L/usr/local/homebrew/opt/libtiff/lib -L/usr/local/homebrew/opt/libgsm/lib -L/usr/local/homebrew/opt/glib/lib -L/usr/local/homebrew/opt/gnutls/lib -L/usr/local/homebrew/opt/libusb/lib -L/usr/local/homebrew/opt/gettext/lib -L/usr/local/homebrew/opt/openssl@1.1/lib -L/usr/local/homebrew/opt/sane-backends/lib -lSystem -L/usr/local/homebrew/lib -Wl,-rpath,/usr/local/homebrew/lib -Wl,-rpath,@executable_path/../lib/external conftest.c  >&5
-macosx_version_min has been renamed to -macos_version_min
dyld[9845]: Symbol not found: _lto_codegen_debug_options_array
  Referenced from: <E33DCAC4-3116-3019-8003-432FB3E66FB4> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  Expected in:     <58E4EB64-C6CB-3C76-B1D0-2C6502EE0F4E> /usr/local/homebrew/Cellar/game-porting-toolkit-compiler/0.1/lib/libLTO.dylib
clang-8: error: unable to execute command: Abort trap: 6
clang-8: error: linker command failed due to signal (use -v to see invocation)
configure:5123: $? = 254
configure:5163: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Wine"
--
| {
|
|   ;
|   return 0;
| }
configure:5168: error: in `/private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine64-build':
configure:5170: error: C compiler cannot create executables
See `config.log' for more details

Could you please help?

@Pricx
Copy link

Pricx commented Nov 22, 2024

Hi, while installing from Homebrew the porting-toolkit I got such an error:你好 从 Homebrew 安装 porting-toolkit 时,我收到了这样的错误:

==> Installing game-porting-toolkit from apple/apple
==> Staging /Users/dominikmarcinkowski/Library/Caches/Homebrew/downloads/7baed2a6fd34b4a641db7d1ea1e380ccb2f457bb24cd8043c428b6c10ea22932--crossover-sources-22.1.1.tar.gz in /priv
==> Patching
==> /private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine/configure --prefix=/usr/local/homebrew/Cellar/game-porting-toolkit/1.1 --disable-win16 --disable-tests --without-x
Last 15 lines from /Users/dominikmarcinkowski/Library/Logs/Homebrew/game-porting-toolkit/01.configure:
--enable-win64
--with-gnutls
--with-freetype
--with-gstreamer
CC=/usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang
CXX=/usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang++

checking build system type... x86_64-apple-darwin23.6.0
checking host system type... x86_64-apple-darwin23.6.0
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine64-build':
configure: error: C compiler cannot create executables
See `config.log' for more details

When checking config.log:检查 config.log 时:

configure:5097: checking whether the C compiler works
configure:5119: /usr/local/homebrew/opt/game-porting-toolkit-compiler/bin/clang -I/usr/local/homebrew/opt/zlib/include -I/usr/local/homebrew/opt/freetype/include -I/usr/local/homebrew/opt/sdl2/include -I/usr/local/homebrew/opt/libgphoto2/include -I/usr/local/homebrew/opt/faudio/include -I/usr/local/homebrew/opt/jpeg/include -I/usr/local/homebrew/opt/libpng/include -I/usr/local/homebrew/opt/mpg123/include -I/usr/local/homebrew/opt/libtiff/include -I/usr/local/homebrew/opt/libgsm/include -I/usr/local/homebrew/opt/glib/include -I/usr/local/homebrew/opt/gnutls/include -I/usr/local/homebrew/opt/libusb/include -I/usr/local/homebrew/opt/gettext/include -I/usr/local/homebrew/opt/openssl@1.1/include -I/usr/local/homebrew/opt/sane-backends/include -O3 -Wno-implicit-function-declaration -Wno-format -Wno-deprecated-declarations -Wno-incompatible-pointer-types  -L/usr/local/homebrew/opt/zlib/lib -L/usr/local/homebrew/opt/freetype/lib -L/usr/local/homebrew/opt/sdl2/lib -L/usr/local/homebrew/opt/libgphoto2/lib -L/usr/local/homebrew/opt/faudio/lib -L/usr/local/homebrew/opt/jpeg/lib -L/usr/local/homebrew/opt/libpng/lib -L/usr/local/homebrew/opt/mpg123/lib -L/usr/local/homebrew/opt/libtiff/lib -L/usr/local/homebrew/opt/libgsm/lib -L/usr/local/homebrew/opt/glib/lib -L/usr/local/homebrew/opt/gnutls/lib -L/usr/local/homebrew/opt/libusb/lib -L/usr/local/homebrew/opt/gettext/lib -L/usr/local/homebrew/opt/openssl@1.1/lib -L/usr/local/homebrew/opt/sane-backends/lib -lSystem -L/usr/local/homebrew/lib -Wl,-rpath,/usr/local/homebrew/lib -Wl,-rpath,@executable_path/../lib/external conftest.c  >&5
-macosx_version_min has been renamed to -macos_version_min
dyld[9845]: Symbol not found: _lto_codegen_debug_options_array
  Referenced from: <E33DCAC4-3116-3019-8003-432FB3E66FB4> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  Expected in:     <58E4EB64-C6CB-3C76-B1D0-2C6502EE0F4E> /usr/local/homebrew/Cellar/game-porting-toolkit-compiler/0.1/lib/libLTO.dylib
clang-8: error: unable to execute command: Abort trap: 6
clang-8: error: linker command failed due to signal (use -v to see invocation)
configure:5123: $? = 254
configure:5163: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Wine"
--
| {
|
|   ;
|   return 0;
| }
configure:5168: error: in `/private/tmp/game-porting-toolkit-20240926-9411-srjp5i/wine64-build':
configure:5170: error: C compiler cannot create executables
See `config.log' for more details

Could you please help?您能帮忙吗?

I have the same problem.

@executable_path/../lib/external conftest.c  >&5
-macosx_version_min has been renamed to -macos_version_min
dyld[1172]: Symbol not found: _lto_codegen_debug_options_array
  Referenced from: <DCCE8DC8-8CC1-3A5E-9CB4-5C97EAE2230B> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  Expected in:     <B39FE7DD-BF97-3D65-9AD0-177C058B525B> /usr/local/Cellar/game-porting-toolkit-compiler/0.1/lib/libLTO.dylib
clang-8: error: unable to execute command: Abort trap: 6
clang-8: error: linker command failed due to signal (use -v to see invocation)
configure:5123: $? = 254
configure:5163: result: no
configure: failed program was:

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