Login  •  Register


The time is now: Sun Jul 05, 2020 8:35 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 13 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Tue Jan 28, 2020 8:11 am 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
Hi,

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:

Code:
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?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 11:30 am 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6016
Location: Amsterdam, Netherlands
In Catalina best build with Xcode.
Which source code do you use? Best use kanjitalk755 source: https://github.com/kanjitalk755/macemu

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

But why do it yourself when builds from the latest source are available for download: viewtopic.php?f=20&t=7360


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 6:29 pm 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
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:
Code:
Error: unable to find sdk '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.4u.sdk'


Found this thread about Apple dropping support for older SDKs:
https://stackoverflow.com/questions/533 ... to-xcode-4

I have installed MacOSX10.4u.sdk from https://github.com/phracker/MacOSX-SDKs. When I run xcrun --sdk macosx --show-sdk-version I get the following result:

Code:
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?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 6:48 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1193
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 7:59 pm 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
Okay, I switch to the legacy build system. I'm still getting an error when trying to build from within the Xcode application:
Code:
The i386 architecture is deprecated. You should update your ARCHS build setting to remove the i386 architecture.


I tried removing i386 from the ARCHS flag and building using xcodebuild instead of the Xcode application as per Apple's developer site:
Code:
xcodebuild ARCHS="x86_64" -project *8.xcodeproj -UseModernBuildSystem=NO


I get the response:
Code:
/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...


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 8:03 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6016
Location: Amsterdam, Netherlands
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.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 8:16 pm 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
I tried switching to $(ARCHS_STANDARD) in build settings. Now I get other things breaking:
Code:
/Users/macbookpro/Documents/macemu-master/SheepShaver/src/CrossPlatform/video_vosf.h:507:33: Use of undeclared identifier 'img'


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 8:39 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6016
Location: Amsterdam, Netherlands
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'.)

Do you use Xcode 11.3.1 and the source from https://github.com/kanjitalk755/macemu ?

Maybe try a fresh source?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 9:32 pm 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
Ah, no I was using the cebix repository on the on the wiki tutorial.

The kanjitalk755 repo gives this error for me in kpx_cpu:
Quote:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:423:10: 'Availability.h' file not found


And this in SheepShaver:
Quote:
/Users/macbookpro/Downloads/macemu-master/SheepShaver/src/Unix/main_unix.cpp:131:10: 'X11/Xlib.h' file not found


I have xquartz installed? I also ran sudo xcode-select --install

Hmm...


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 10:00 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6016
Location: Amsterdam, Netherlands
Quote:
/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?

Quote:
/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?

Quote:
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.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 10:23 pm 
Offline
Inquisitive Elf
User avatar

Joined: Tue Jan 24, 2017 6:58 am
Posts: 38
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.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 10:24 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 6016
Location: Amsterdam, Netherlands
Ronald P. Regensburg wrote:
Quote:
/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?
Yes, the file should be here:
Code:
Xcode.app/Contents/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/XLib.h

Something seems wrong with your Xcode installation.


Last edited by Ronald P. Regensburg on Tue Jan 28, 2020 10:27 pm, edited 1 time in total.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Jan 28, 2020 11:54 pm 
Offline
Forum All-Star

Joined: Tue Oct 14, 2008 12:12 am
Posts: 1193
Ronald P. Regensburg wrote:
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...


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 13 posts ]


Who is online

Users browsing this forum: Bing [Bot] and 50 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group