Build kanjitalk755 code under Mohave & Xcode 10?
Moderators: Cat_7, Ronald P. Regensburg, ClockWise
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Build kanjitalk755 code under Mohave & Xcode 10?
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!
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!
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
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.
- adespoton
- Forum All-Star
- Posts: 4279
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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: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.
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).
- adespoton
- Forum All-Star
- Posts: 4279
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: Build kanjitalk755 code under Mohave & Xcode 10?
Thanks! Anyone able to commit it back to the main project?
- Ronald P. Regensburg
- Expert User
- Posts: 7834
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.adespoton wrote:Thanks! Anyone able to commit it back to the main project?
- adespoton
- Forum All-Star
- Posts: 4279
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
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.
-
- Forum All-Star
- Posts: 1726
- Joined: Tue Oct 14, 2008 12:12 am
Re: Build kanjitalk755 code under Mohave & Xcode 10?
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.
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.