I've followed the command line build instructions on the wiki for Snow Leopard. I have successfully built the app, but trying to run it yields me this error:
SheepShaver V2.4 by Christian Bauer and Mar"c" Hellwig
ERROR: Cannot map first Kernel Data area: Cannot allocate memory.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 105 (X_ChangePointerControl)
Value in failed request: 0x0
Serial number of failed request: 9
Current serial number in output stream: 10
[Process completed]
I've tried rebooting. Still displays the same error.
Any advice?
You need to install Xcode (currently version 11.3.1) in /Applications
Also you need to install SDL2.framework (currently version 2.0.10) in /Library/Frameworks/
Then:
- Open SheepShaver/src/MacOSX/SheepShaver_Xcode8.xcodeproj
- Set Build Configuration to Release
- Build
I've been meaning to delve into the SS source code for some time. I want to modify its functionality to show and hide the SDL window on command. There are other tweaks I plan to do. But first, I'm just trying to get it to build from source.
Compiling from Xcode 11.31, I now get the following error:
Skipped SDK /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.4u.sdk; its version (10.4) is below required minimum (10.11) for the macosx platform.
I'm on Xcode 11.3.1, do I need to downgrade as per the aforementioned stackoverflow thread?
Ronald P. Regensburg wrote:You need to install Xcode (currently version 11.3.1) in /Applications
Also you need to install SDL2.framework (currently version 2.0.10) in /Library/Frameworks/
Then:
- Open SheepShaver/src/MacOSX/SheepShaver_Xcode8.xcodeproj
- Set Build Configuration to Release
- Build
I'm not a Mac right now, but don't you also have to go into Project Settings and switch to the Legacy Build System (for SheepShaver, not for BasiliskII in the latest code)?
EDIT: I forgot that that change is not needed - thank you, Ronald.
Last edited by emendelson on Tue Jan 28, 2020 11:52 pm, edited 1 time in total.
/Users/macbookpro/Documents/macemu-master/SheepShaver/src/kpx_cpu/include/nvmemfun.hpp:24:10: fatal error: 'functional' file not found
I verified that the file is actually there. I made sure xcode command line tools were installed as one stackoverflow thread suggested... same error... I'm stumped again...
emendelson wrote:I'm not a Mac right now, but don't you also have to go into Project Settings and switch to the Legacy Build System (for SheepShaver, not for BasiliskII in the latest code)?
No, that is not needed for SheepShaver, already for quite some time. It was needed for BasiliskII until kanjitalk755 solved the issue with the New Build System in Xcode 10+ for BasiliskII recently.
Last edited by Ronald P. Regensburg on Tue Jan 28, 2020 8:41 pm, edited 1 time in total.
Reason:
Here, building with Xcode 11.3.1 proceeds fine without any errors and without the need for any changes other than setting the Build Configuration to Release. (There are a number of warnings, but that is 'normal'.)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:423:10: 'Availability.h' file not found
Never seen an error like that. I can see that in the file
Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator
on line 423 a file Availability.h is to be included.
It should be a file somewhere inside Xcode. Which Xcode version do you use? Was Xcode installed correctly? Did you make any changes to Xcode?
/Users/macbookpro/Downloads/macemu-master/SheepShaver/src/Unix/main_unix.cpp:131:10: 'X11/Xlib.h' file not found
Also a file missiing in Xcode?
I also ran sudo xcode-select --install
Why is that?
I really am at loss. I cannot see from here what you are doing. It should be quite easy, takes only seconds.
Last edited by Ronald P. Regensburg on Tue Jan 28, 2020 10:09 pm, edited 1 time in total.
Reason:
Hmm.. I believe you. The files are all actually there. Not sure what's going on. I haven't modified xcode. I just installed the latest version from the app store.
I will try cleaning everything out and starting as fresh as possible...
Last edited by classicmacreborn on Tue Jan 28, 2020 10:25 pm, edited 1 time in total.
emendelson wrote:I'm not a Mac right now, but don't you also have to go into Project Settings and switch to the Legacy Build System (for SheepShaver, not for BasiliskII in the latest code)?
No, that is not needed for SheepShaver, already for quite some time. It was needed for BasiliskII until kanjitalk755 solved the issue with the New Build System in Xcode 10+ for BasiliskII recently.
Apologies for bandwidth-wasting. Of course you're right. I should have waited until I was back at my Mac...