Build kanjitalk755 code under Mohave & Xcode 10?

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Build kanjitalk755 code under Mohave & Xcode 10?

Post by emendelson »

I've been trying to build kanjitalk755's code under Xcode 10 under Mojave. After solving a few problems caused by own incompetence, I'm baffled by this error in kph_cpu:

In nvmzmfun.cpp, this line:

#include <functional>

produces the error

'functional' file not found.

I've tried running Xcode-select --install to install the command-line tools, having read that this solves the problem. But it doesn't solve it. I can see the file "functional" in the same place in the Toolchains folder under Xcode 10 where it was in Xcode 9, so I'm puzzled. If anyone has any insight, please let us know!
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by emendelson »

To answer my own question: the answer seems to be in this thread:

https://forums.developer.apple.com/thread/106114

Look for the reply by gsmalley (third post). You may also have to change some deployment targets to 10.7 or later before it will finally build, and also remove any build setting that points to i386.
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by adespoton »

Sounds like we should have a Mojave project file so people don't have to manually do this every time they want to build. I've been setting minimum target to 10.11 and dropping i386 since Sierra for my own builds (of anything), but breaking out the x64 and i386 projects sounds like a good idea at this point.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by emendelson »

adespoton wrote:Sounds like we should have a Mojave project file so people don't have to manually do this every time they want to build. I've been setting minimum target to 10.11 and dropping i386 since Sierra for my own builds (of anything), but breaking out the x64 and i386 projects sounds like a good idea at this point.
Your wish is my command. Here's the xcodeproj file modified for Mojave. I also changed the Run setting to create a Release version rather than a Debug version, but that's easy to change back:

http://www.columbia.edu/~em36/SheepShav ... Mojave.zip

Replace the existing xcodeproj file with this one (of course after making a backup of the original).
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by adespoton »

Thanks! Anyone able to commit it back to the main project?
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by Ronald P. Regensburg »

adespoton wrote:Thanks! Anyone able to commit it back to the main project?
Which "main project" do you refer to? This is about the source code from kanjitalk755/macemu, which is developed way beyond the code in cebix/macemu.
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by adespoton »

I was talking about kanjitalk755/macemu -- the cebix/macemu code doesn't have all the fixes, so adding it to that wouldn't make much sense.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by emendelson »

kanjitalk755 visits this forum. I'm sure he can do a better job of updating the project file than I could, so let's wait and see if he decides to update his original.
kanjitalk755
Apple Corer
Posts: 239
Joined: Thu Nov 09, 2017 12:06 pm

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by kanjitalk755 »

I have updated my repo for Xcode10.

https://github.com/kanjitalk755/macemu

But SDL2.0.8 (stable version) is seems to be incompatible with 10.14SDK.
I encountered black screen on launching SheepShaver.
The problem can be resolved using the SDL built by latest source.
If you use SDL2.0.8, I recommend to use Xcode9 and 10.13SDK.
emendelson
Forum All-Star
Posts: 1706
Joined: Tue Oct 14, 2008 12:12 am

Re: Build kanjitalk755 code under Mohave & Xcode 10?

Post by emendelson »

Thank you, kanjitalk755!

I can confirm that SheepShaver builds successfully under Mojave. I used kanjitalk755's method of adding an "External" folder to project and copying the current SDL 2.0.9 source into it. The SDL authors warn that this is not final code, but it seems to work for SheepShaver.
Post Reply