Building for 64-bit targets


#1

I’m using 3.0 alpha right now and I’m trying to build for x86_64. Has anyone done this yet? There are compilation errors in the touchesBegan (as well as the other variations). This is because it is currently using int to store a pointer value, when it should be using uintptr_t instead.

For example:

int ids[IOS_MAX_TOUCHES_COUNT] = {0};
float xs[IOS_MAX_TOUCHES_COUNT] = {0.0f};
float ys[IOS_MAX_TOUCHES_COUNT] = {0.0f};
int i = 0;
for (UITouch touch in touches) {
ids[i] = touch;
xs[i] = ].x
view.contentScaleFactor;;
ys[i] = [touch locationInView: [touch view]].y * view.contentScaleFactor;;
**i;
}
should be:
uintptr_t ids[IOS_MAX_TOUCHES_COUNT] = ;
float xs[IOS_MAX_TOUCHES_COUNT] = ;
float ys[IOS_MAX_TOUCHES_COUNT] = ;
int i = 0;
for {
ids[i] = touch;
xs[i] = ].x * view.contentScaleFactor;;
ys[i] = ].y * view.contentScaleFactor;;
**i;
}

I’ve updated the code, however, the next issue is the libraries. They are built for 32-bit targets. I’ve rebuilt libfreetype (2.4.11) to now have arm64 and x86_64. What I was wondering was what are the versions of the other libraries and are there existing downloads for the sources and configuration files that they were built from? This is to reduce some of the work of figuring out what settings/version/etc are being used.

Thanks.

Ben