Looking For Help (PoP2 for Mac)

Second part of the best game ever made.

Moderator: English Moderator Team

Post Reply
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3082
Joined: April 9th, 2009, 10:58 pm
Contact:

Looking For Help (PoP2 for Mac)

Post by Norbert » September 24th, 2016, 2:23 pm

I'm looking for help from someone technically savvy who has access to a Linux system.

Here's the explanation: http://www.popot.org/temporary.pdf

I'm trying to create a HFS with PoP2 for Mac, but for some reason it's not working.

David
The Prince of Persia
The Prince of Persia
Posts: 1447
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Looking For Help (PoP2 for Mac)

Post by David » September 25th, 2016, 12:31 pm

Hi Norbert,

I tried to reproduce what you wrote but I can't even compile Basilisk II under Linux. Solved, see below!
I am following your guide: http://www.popot.org/documentation/docu ... _Linux.pdf

1. First I tried under Ubuntu, but it did not have autoconf.
And it's so old that the apt-get repositories for this release don't even exist anymore!

2. Then I tried under the other installed Linux, Elementary OS. (It's based on Ubuntu, by the way.)
After installing autoconf, config gave this error: "configure: error: Sorry, the JIT Compiler requires Direct Addressing, at least" Solved, see below!
What I found:
http://www.emaculation.com/forum/viewtopic.php?t=6997 -- But that's about CentOS-64!
https://github.com/cebix/macemu/issues/56 -- But that tells to remove '--with-libvhd' which is not even in the command line that I used!
http://codu.org/logs/_esoteric/2010-08-28.txt -- But that says to add AC_USE_SYSTEM_EXTENSIONS to configure.ac but it's already there!
And it also says: "and even without the JIT stuff is faster than any "real" System 7 system that I used"

Update: This one problem was solved by apt-get update + apt-get upgrade + re-running autogen.sh.

3. So I removed the --enable-jit-compiler option.
Then I got this error: Solved

Code: Select all

configure: creating ./config.status
./config.status: line 491: syntax error near unexpected token `)'
./config.status: line 491: `    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
What I found:
https://bbs.archlinux.org/viewtopic.php?id=82401 -- No solution here.

I'm not sure what the problem is, because the following test command runs fine: (and prints "yes")

Code: Select all

case a\'b in
	*\'*) echo yes
esac
Update: This problem still persists after the aforementioned updating. Except now it says "line 492". Solved, see below!

This is the relevant part from config.status:

Code: Select all

  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
Update: The problem was that the folder's name had an apostrophe: I called the folder "Norbert's Problem".
I renamed it to "Norbert Problem" and it solved the "syntax error".
So this case statement does not work correctly if there is an apostrophe in some path?
Ironically, the purpose of the case is exactly this, to check for apostrophes... :?

So it seems all my compiling problems were solved. :)
Anyway, I'm posting this in case others have the same problem.

Now, on to the original problem...

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3082
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Looking For Help (PoP2 for Mac)

Post by Norbert » September 25th, 2016, 1:16 pm

Hi, I did not yet read your full post (will in a bit) but wanted to already let you know that someone seems to have posted an alternative way to create the HFS at the E-Maculation forum where I cross-posted my request for help.

David
The Prince of Persia
The Prince of Persia
Posts: 1447
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Looking For Help (PoP2 for Mac)

Post by David » September 25th, 2016, 1:29 pm

Hi Norbert,
Norbert wrote:Hi, I did not yet read your full post (will in a bit)
You don't really have to, it's just about my problems (and solutions) about compiling BasiliskII.
The stuff related to your problem is in this new post.
Norbert wrote: someone seems to have posted an alternative way to create the HFS at the E-Maculation forum where I cross-posted my request for help.
Great, it's almost the same that I figured out.
Except that "the disk changes are never actually being written back to disk" is not exactly true.
See below.


I followed through your PoP2 instructions, and I think I found out what is happening.

The problem seems to be that pop2.hfs is an "ISO9660/HFS hybrid", as mkisofs --help says about the -hfs option.
Now, lsar sees only the ISO9660 part (it says pop2.hfs: ISO 9660), and Mac OS sees only the HFS part.

If I extract 17MB.TXT with unar pop2.hfs, it will not be empty like the original 17MB.TXT.
Instead it will contain the bytes PoP2 files, along with some filesystem stuff.
Looks like Mac OS allocated the new files (in HFS) where 17MB.TXT is according to the ISO part.

If I run lsar on Stuff-it_Expander55.hfs or System70_boot.hfs, it says Couldn't recognize the archive format.
These are HFS-only filesystems without any ISO part.

By the way, neither man lsar not lsar --help will tell what archive formats does lsar know.

mount can use either filesystem if you specify it with the -t option.

The solution?
Well, Mac OS sees the PoP files, so this should not really be a problem.

But if you want, you can create a HFS-only filesystem with mkfs --type=hfs <filename>.
You need sudo apt-get install hfsprogs for that.

Also, the named file must exist already, you can use fallocate for that.
But after this, Mac OS will say "This is not a Macintosh disk: Do you want to initialize it?".
So you might as well skip mkfs, and just let Mac OS create the filesystem.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3082
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Looking For Help (PoP2 for Mac)

Post by Norbert » September 25th, 2016, 2:03 pm

David wrote:Now, lsar sees only the ISO9660 part (it says pop2.hfs: ISO 9660), and Mac OS sees only the HFS part.
Ah, interesting.
Thanks.

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 3082
Joined: April 9th, 2009, 10:58 pm
Contact:

Re: Looking For Help (PoP2 for Mac)

Post by Norbert » September 25th, 2016, 3:37 pm

Added:
http://www.popot.org/get_the_games.php?game=2_Mac
I followed the procedure where I let Mac OS initialize the disk image.

Post Reply