Problems Compiling SheepShaver in Mac OS 10.6.6

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
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Elyus »

I downloaded the BasiliskII and SheepShaver source code from CVS and am encountering problems with building SheepShaver. Originally, I tried to use the Xcode project, but I have Xcode 4 installed and it has many incompatibilities with the older project, even with the 10.4 and 10.5 SDKs installed.

Next, I tried to compile using the command line. Using Mac OS 10.6.6 and SDL-1.2.15, I followed the directions at http://www.emaculation.com/doku.php/com ... r_basilisk to compile the SDL source. At the line "./configure --disable-shared --prefix=`pwd`", I received an error that the path needed to be an absolute path, so I put it in the home directory with '~/pwd'. That worked, so I moved on to the SheepShaver source. Everything seemed to go correctly; however, the resulting SheepShaver app does not launch at all.

I'm not sure how much information I need to give about my system, so please let me know if there is something more that would help determine the problem. Thanks very much for any help!
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Cat_7 »

Hi,

Can you try to start the SheepShaver application from within the bundle? open a terminal and cd into SheepShaver.app/Contents/MacOS/ and execute SheepShaver from there. Does the terminal give you a hint about what might be wrong?

Can you also copy the settings overview from the end of your ./configure step here?

Best,
Cat_7
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Elyus »

This is what the terminal gives from launching the executable inside the bundle:

Code: Select all

<path>/SheepShaver.app/Contents/MacOS/SheepShaver ; exit;
SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Bus error
logout

[Process completed]
And here is the summary from the ./config:

Code: Select all

SheepShaver configuration summary:

SDL support ...................... : video audio
BINCUE support ................... : no
LIBVHD support ................... : no
FBDev DGA support ................ : no
XFree86 DGA support .............. : no
XFree86 VidMode support .......... : no
Using PowerPC emulator ........... : yes
Enable JIT compiler .............. : yes
Enable video on SEGV signals ..... : no
ESD sound support ................ : no
GTK user interface ............... : no
mon debugger support ............. : no
Addressing mode .................. : real
Bad memory access recovery type .. : mach
I noticed something else that may be useful. After running "make", an executable that is 2.1 MB is created. "make SheepShaver_app" creates an app bundle that is 1.7 MB. Does this indicate that something is missing from SheepShaver.app? Unfortunately, neither one launches.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Cat_7 »

Hi,

Never saw that error before.

Can you tell us what rom file/boot disk you are using? And can you post your .sheepshaver_prefs file contents?
The app being smaller is due to the "strip" that is done on the executable that is built. Debug info is stripped from it, leading to a smaller size before being bundled.

Best,
Cat_7
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Elyus »

Here is the preference file:

Code: Select all

disk Mac HD.dsk
cdrom /dev/poll/cdrom
extfs ./Shared
screen win/800/600
windowmodes 0
screenmodes 0
seriala /dev/cu.Bluetooth-Modem
serialb /dev/null
rom ./Mac OS ROM
bootdrive 0
bootdriver 0
ramsize 268435456
frameskip 1
gfxaccel true
nocdrom false
nonet false
nosound false
nogui false
noclipconversion false
ignoresegv true
jit true
jit68k true
keyboardtype 5
ether slirp
keycodes false
keycodefile 
mousewheelmode 1
mousewheellines 3
dsp /dev/dsp
mixer /dev/mixer
ignoresegv true
idlewait true
The boot disk is a 1 GB image with Mac OS 8.5.1 installed, and the ROM is from the ROM Update 1.0. I've been moving the working version of SheepShaver out of the directory so that my build can use the relative links, but it still doesn't launch.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Ronald P. Regensburg »

In OSX 10.6.8 with XCode 3.2.6 on a 64-bit capable Intel Mac, I followed the instructions as they are now in the wiki for compiling using the command line method.

Compiling SDL, I did not see the error you saw about the path when doing:

Code: Select all

./configure --disable-shared --prefix=`pwd`
SheepShaver configuration summery is identical to yours.

Result is a 64-bit only SheepShaver that runs fine here.
Elyus
Tinkerer
Posts: 94
Joined: Wed Mar 21, 2012 12:35 am

Re: Problems Compiling SheepShaver in Mac OS 10.6.6

Post by Elyus »

The problem seems to be caused entirely by Xcode 4. I tried compiling on another computer with Xcode 3.2.2 and it worked fine. I may just uninstall Xcode 4 and go back to Xcode 3. . .

But the good news is that I seem to be able to get working builds now, so thanks for your help, guys!
Post Reply