qemu-screamer host Arch Linux build error

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
Womp
Student Driver
Posts: 17
Joined: Wed Jul 18, 2007 4:06 pm

qemu-screamer host Arch Linux build error

Post by Womp »

Hi!
I have been trying for weeks to build qemu-sceamer for Arch Linux. (I am still crazy about macos9!)
This:
"qemu-screamer/docs/../include/exec/memory.h:3:Type must be either just a name or a typedef-like declaration.
If just a name:
Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name, got keyword: struct [error at 6]
struct MemoryListener
------^
If typedef-like declaration:
Error in declarator or parameters
Invalid C declaration: Expected identifier in nested name. [error at 21]
struct MemoryListener"

I have tried several build arguments but the last one (./configure --target-list="ppc-softmmu" --enable-sdl --enable-gtk) I thought was a safe bet.

I use the recommended git-place for linux.

I am lost now and I wonder if someone could hint me?


Womp
User avatar
Cat_7
Expert User
Posts: 6179
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: qemu-screamer host Arch Linux build error

Post by Cat_7 »

Hi,

From exactly which repo did you download? How did you download and how did you unpack the source?

Best,
Cat_7
Womp
Student Driver
Posts: 17
Joined: Wed Jul 18, 2007 4:06 pm

Re: qemu-screamer host Arch Linux build error

Post by Womp »

Hi and thanks for answer!

git clone -b screamer https://github.com/mcayland/qemu qemu-screamer

For unpacking used engrampa. (which format that is used I am not sure about because engrampa takes care of that.I am guessing unzip)

womp
User avatar
Cat_7
Expert User
Posts: 6179
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: qemu-screamer host Arch Linux build error

Post by Cat_7 »

Hi,

If you use:

Code: Select all

git clone -b screamer https://github.com/mcayland/qemu qemu-screamer 
The source should be ready for building immediately.

So:

Code: Select all

cd qemu-screamer
./configure --target-list=ppc-softmmu --enable-sdl --enable-gtk
Should work. If not, then there is something wrong in your compiler setup.
Womp
Student Driver
Posts: 17
Joined: Wed Jul 18, 2007 4:06 pm

Re: qemu-screamer host Arch Linux build error

Post by Womp »

Hi again!
I removed and did a new git clone and now it did build fine!!
I am now trying to install 9.2. I have made a script that look like this.

!/usr/bin/bash
export QEMU_AUDIO_DRV=pa
./qemu-system-ppc
-L openbios-ppc \
-cpu "g4" \
-boot d \
-M mac99,via=pmu \
-prom-env "auto-boot?=true" \
-prom-env "boot-args=-v" \
-prom-env "vga-ndrv?=true" \
-device VGA,edid=on \
-m 256 \
-netdev user,id=network01 \
-device sungem,netdev=network01 \
-drive file=/9.2.img,format=raw,media=disk \
-cdrom "PowerMacG4Install9.2.toast" \

I get error message "qemu-system-ppc: Initialization of device ne2k_pci failed: failed to find romfile "efi-ne2k_pci.rom"
When I look in rom folder there are no ne2k_pci.rom. Can I download that from somewhere?

I also get that the -L command doesn't exist!?

womp
User avatar
Cat_7
Expert User
Posts: 6179
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: qemu-screamer host Arch Linux build error

Post by Cat_7 »

Hi,

That is an interesting combination of commands ;-)

You need to find the pc-bios folder that was created in the folder in which you built qemu.
I normally put everything needed in one folder in my home folder:
qemu-system-ppc
pc-bios folder
batch file to start qemu.

If you do that, this should work:

#!/bin/bash
export QEMU_AUDIO_DRV=pa
./qemu-system-ppc \
-L pc-bios \
-boot d \
-M mac99,via=pmu \
-device VGA,edid=on \
-m 256 \
-drive file=9.2.img,format=raw,media=disk \
-drive file=PowerMacG4Install9.2.toast,format=raw,media=cdrom

Best,
Cat_7
Womp
Student Driver
Posts: 17
Joined: Wed Jul 18, 2007 4:06 pm

Re: qemu-screamer host Arch Linux build error

Post by Womp »

Yeeeesss!
Thank you soo much!! I have been struggling with this for the last weeks and now I have sound!!

I have 9.2 installed on my mbp too with sound and the only thing missing now is how to share a folder or disk between host and guest. Do you have a link or hint on what's a good solution?

Thank you!!

womp
Post Reply