Installation fails on Error: apple/apple/game-porting-toolkit 1.1 did not build

when i installed Game porting toolkit 1.1, i got an error such as below:

error: assignment to 'DWORD64' {aka 'long long unsigned int'} from 'PVOID' {aka 'void *'} makes integer from pointer without a cast [-Wint-conversion]

anybody who knows how to solve it

I ran into this problem as well on my M1 Max Mac. The issue is that the compiler is complaining about the lack of explicit casting of the pointers in the Crossover source code which was built into game-porting-toolkit 1.1 (crossover-sources-22.1.1). I'm guessing this is due to more stringent requirements in the compiler with the newer version of Xcode. The crossover version is over a year old at this point and the new version is 24.0.2 currently so maybe some of this is fixed, but I decided to spend the time to get the crossover code working.

You can find the sources here: https://media.codeweavers.com/pub/crossover/source/. To fix the issue, I downloaded the source code from the link previously provided and patched it using the patch code in:

brew edit apple/apple/game-porting-toolkit

That allowed me to build new patch criteria and embed it back into the build script. Now it builds but it's still back at 22.1.1.

another issue as: Error: Failure while executing; patch -g 0 -f -p0 exited with 2

The patch is built inline and will fail to apply properly if the source doesn't match. I've attached a link to the adjusted patch contents below.

https://www.icloud.com/iclouddrive/01f0HadihzauqMpRBA11SbIvw#changes

Installation fails on Error: apple/apple/game-porting-toolkit 1.1 did not build
 
 
Q