jjuran / metamage_1

Metamage open source, general repository, iteration 1
308 stars 27 forks source link

Compilation error #3

Closed theovosse closed 1 year ago

theovosse commented 5 years ago

Hi,

I've followed the build steps (git clone, make ams-osx), but unfortunately this results in a compilation error on my system (OSX 10.14.2, XCode 10.1): CarbonSound is missing, and is nowhere to be found.

Build step: ./build.pl -i vx

CC    library.cc
LINK  vx
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
wait status from command: 256
make[1]: *** [app-build-tools] Error 2
CC    Mac/AppleEvents/Types/AECoercionHandler.cc
In file included from nitric//Mac/AppleEvents/Types/AECoercionHandler.cc:6:
In file included from nitric/Mac/AppleEvents/Types/AECoercionHandler.hh:34:
In file included from nitric/Mac/AppleEvents/Types/DescType.hh:12:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:34:10: fatal error: 
      'CarbonSound/CarbonSound.h' file not found
#include <CarbonSound/CarbonSound.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
theovosse commented 5 years ago

I just now read it only runs on 10.12... Sorry.

jjuran commented 5 years ago

Unfortunately, <CarbonSound/CarbonSound.h> is being included from <Carbon/Carbon.h>.

What happens if you #define __CARBONSOUND__ at the top of DescType.hh?

theovosse commented 5 years ago
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:49:10: fatal error: 
      'NavigationServices/NavigationServices.h' file not found
#include <NavigationServices/NavigationServices.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I can get further by removing references to Sound.h, and adding

define CARBONSOUND

to a few files (SysBeep, ASRegistry, etc.), but I also have to add

define NAVIGATIONSERVICES

and then it hits a snag in NavigationServices.hh

nitric/Nitrogen/Navigation.hh:106:31: error: unknown type name 'NavDialogRef'; did you mean 'DialogRef'?
        template <> struct disposer< NavDialogRef >

and many more. It seems is not present in the 10.14 SDK, although there is a Navigation.framework.

Theo
jjuran commented 5 years ago

Thanks for the sleuthing! This is good news — I don't know how it will end, but for now, I can act on this.

sabinomaggi commented 5 years ago

I have 10.14 and metamage seems to compile and run fine. It is slow as hell but works. Nothing fancy, just clone and make. My devel toolchain is based on homebrew. Here the links to a couple of snapshots (ams, reversi).

jjuran commented 5 years ago

That's welcome news — I'm guessing homebrew is the key here.

letarg0 commented 5 years ago

CC file_descriptor.cc CC exception.cc CC thread.cc CC empty_signal_handler.cc CC library.cc LINK vx ld: library not found for -lcrypto clang: error: linker command failed with exit code 1 (use -v to see invocation) wait status from command: 256 make[1]: *** [app-build-tools] Error 2 CC Mac/AppleEvents/Types/AECoercionHandler.cc In file included from nitric//Mac/AppleEvents/Types/AECoercionHandler.cc:6: In file included from nitric/Mac/AppleEvents/Types/AECoercionHandler.hh:34: In file included from nitric/Mac/AppleEvents/Types/DescType.hh:12: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:34:10: fatal error: 'CarbonSound/CarbonSound.h' file not found

include <CarbonSound/CarbonSound.h>

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated. wait status from command: 256 make: *** [ams-osx] Error 2

mac 10.14.2

sabinomaggi commented 5 years ago

Here my (shortened) log on 10.14.2. I can send the full log if you wish.

$ git clone https://github.com/jjuran/metamage_1
Cloning into 'metamage_1'...
remote: Enumerating objects: 178, done.
...
$ cd metamage_1/
$ make ams-osx
[ams-osx_compilation_log.txt](https://github.com/jjuran/metamage_1/files/2804316/ams-osx_compilation_log.txt)

Cloning into '../freemount'...
remote: Enumerating objects: 2110, done.
...
mkdir -p var/links
Cloning into '../ams-68k-bin'...
remote: Enumerating objects: 85, done.
...
Cloning into '../macward-compat'...
remote: Enumerating objects: 95, done.
...
bin/build-app Genie
./build.pl -i vx
CC    must/chdir.c
CC    must/pipe.c
CC    must/pthread.c
CC    must/read.c
CC    must/write.c
AR    libmust.a
CC    command/errors.cc
...
CC    main.cc
CC    posixfs.cc
CC    sockets.cc
CC    thread.cc
CC    thread_state.cc
LINK  vx
ld: warning: text-based stub file /System/Library/Frameworks//Carbon.framework/Carbon.tbd and library file /System/Library/Frameworks//Carbon.framework/Carbon are out of sync. Falling back to library file for linking.
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: text-based stub file /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound.tbd and library file /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound are out of sync. Falling back to library file for linking.
...
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
COPY  vx
CC    Mac/AppleEvents/Types/AECoercionHandler.cc
CC    Mac/Files/Functions/FlushVol.cc
CC    Mac/Files/Functions/UnmountVol.cc
CC    Mac/Sound/Functions/SysBeep.cc
...
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.
COPY  interact
PATH="$PWD/var/out:$PATH" ./scripts/ams
letarg0 commented 5 years ago

bin/build-app -v macintosh ./build.pl -i vx LINK vx ld: library not found for -lcrypto clang: error: linker command failed with exit code 1 (use -v to see invocation) wait status from command: 256 make: *** [app-build-tools] Error 2 No such project 'macintosh'. Run make catalog and try again.

i have crypto /usr/lib/libcrypto.0.9. libcrypto.0.9.7.dylib libcrypto.0.9.8.dylib

where add path to my crypto?

jjuran commented 5 years ago

Are you using the 10.14 SDK? That's known not to work with Apple's dev tools, but folks have had success with homebrew.

Also, "macintosh" is not the name of a project known to build.pl.

letarg0 commented 5 years ago

tell me how i must compiling it yes i use latest sdk

sabinomaggi commented 5 years ago

Just good ol' make

letarg0 commented 5 years ago

ok, ab ovo

./build.pl

what is project-name, random identificator?

jjuran commented 5 years ago

What are you trying to do? Does make ams-osx work for you?

nyetwurk commented 5 years ago
$ make ams-osx
bin/build-app Genie
./build.pl -v -i vx
LINK  vx
c++ -o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/bin/vx/vx -arch i386 -framework Carbon /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/main.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/sockets.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/thread_state.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/posixfs.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:state.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:metatype.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:channel.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/file_descriptor.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/exception.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/thread.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/empty_signal_handler.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/library.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libvlib.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libsha256.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmd5.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libbignum.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libed25519-donna.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libposeven.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/librecall.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libplus.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmore-libc.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmath.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libdebug-stdio+abort.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libchars.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libgear.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libcompat.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmore-posix.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libcommand.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmust.a -Llamp/POSIX-headers -Lbase/config -Lposix/must -Lposix/command -Lbase/iota -Lposix/more-posix -Lrelix/include -Lposix/compat -Lbase/gear -Llibs/empty/libc -Lbase/chars -Lcontrib/boost -Ldebug/debug -Ldebug/debug-stdio+abort -Ldebug/debug -Lbase/math -Lposix/more-libc -Lbase/plus -Ldebug/recall -Lbase/nucleus -Lposix/poseven -Llibs/libcrypto -lcrypto -Lcontrib/ed25519-donna -Llibs/libpthread -lpthread -Llamp/Kerosene/stack-chain -Lbase/bignum -Lcrypto/md5 -Lcrypto/sha256 -Lv/vlib -Lv/vx
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
wait status from command: 256
make[1]: *** [app-build-tools] Error 2
CC    Pedestal/Application.cc
In file included from pedestal/Pedestal//Pedestal/Application.cc:13:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:34:10: fatal error: 'CarbonSound/CarbonSound.h' file not found
#include <CarbonSound/CarbonSound.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
wait status from command: 256
make: *** [ams-osx-build] Error 2
nyetwurk commented 5 years ago
$ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
$ make ams-osx
bin/build-app Genie
./build.pl -v -i vx
LINK  vx
c++ -o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/bin/vx/vx -arch i386 -framework Carbon /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/main.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/sockets.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/thread_state.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/posixfs.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:state.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:metatype.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/channel:channel.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/file_descriptor.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/exception.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/thread.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/empty_signal_handler.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/obj/vx/library.cc.o /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libvlib.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libsha256.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmd5.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libbignum.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libed25519-donna.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libposeven.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/librecall.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libplus.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmore-libc.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmath.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libdebug-stdio+abort.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libchars.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libgear.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libcompat.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmore-posix.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libcommand.a /Users/nyet/src/metamage_1/var/build/x86-mach-carb-dbg/lib/libmust.a -Llamp/POSIX-headers -Lbase/config -Lposix/must -Lposix/command -Lbase/iota -Lposix/more-posix -Lrelix/include -Lposix/compat -Lbase/gear -Llibs/empty/libc -Lbase/chars -Lcontrib/boost -Ldebug/debug -Ldebug/debug-stdio+abort -Ldebug/debug -Lbase/math -Lposix/more-libc -Lbase/plus -Ldebug/recall -Lbase/nucleus -Lposix/poseven -Llibs/libcrypto -lcrypto -Lcontrib/ed25519-donna -Llibs/libpthread -lpthread -Llamp/Kerosene/stack-chain -Lbase/bignum -Lcrypto/md5 -Lcrypto/sha256 -Lv/vlib -Lv/vx
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: in '/Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation.tbd', missing required architecture i386 in file /Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation.tbd (2 slices) for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
wait status from command: 256
make[1]: *** [app-build-tools] Error 2
CC    Pedestal/Application.cc
AR    libPedestal.a
CC    relix/syscall/select.cc
AR    librelix-kernel.a
CC    Genie/FS/HFS/hashed_long_name.cc
CC    Genie/FS/gui/new/eventtap.cc
CC    Genie/FileSignature.cc
BNDL  Genie
INFO  Genie
Can't exec "vx": No such file or directory at /Users/nyet/src/metamage_1/tools/perl/Compile/Driver/Job.pm line 129.
wait status from command: 512
make: *** [ams-osx-build] Error 2
nyetwurk commented 5 years ago

macOS arch returns i386 which is unfortunate, since 10.14 c++ doesn't take -arch i386.

diff --git a/lamp/jTools/A-line/A-line/Commands.hh b/lamp/jTools/A-line/A-line/Commands.hh
index c95931440..720fe676d 100644
--- a/lamp/jTools/A-line/A-line/Commands.hh
+++ b/lamp/jTools/A-line/A-line/Commands.hh
@@ -96,7 +96,7 @@ namespace tool

                        const char* arch = ppc  ? "ppc"
                                         : m68k ? "m68k"
-                                        :        "i386";
+                                        :        "x86_64";

                        return MakeCommand( "-arch", arch );
                }
diff --git a/tools/perl/Compile/Driver/Configuration.pm b/tools/perl/Compile/Driver/Configuration.pm
index fb80f0f2c..34f22449a 100755
--- a/tools/perl/Compile/Driver/Configuration.pm
+++ b/tools/perl/Compile/Driver/Configuration.pm
@@ -13,7 +13,7 @@ my $is_osx = $^O eq "darwin";

 my $osx_arch = $is_osx ? substr( `arch`, 0, -1 ) : "";

-$osx_arch =~ s/^ i386 /x86/x;
+$osx_arch =~ s/^ i386 /x86_64/x;

 my $is_mac = $is_osx;

@@ -173,7 +173,7 @@ sub arch_option

        my $arch = $self->{arch} or return;

-       $arch =~ s/^ x86 $/i386/x;
+       $arch =~ s/^ x86 $/x86_64/x;

        return (-arch => $arch);
 }
jjuran commented 5 years ago

I have bad news for you: The only front-end currently existing on OS X is a 32-bit-only application, so going 64-bit only isn't a solution. It's also not a solution because I still support 10.4, which predates 64-bit support.

The good news is you can still build 32-bit programs. Several folks have reported that they can do so with homebrew installed. You can also build using an older SDK.

More good news is that I'll be adding a new front end soon.

nyetwurk commented 5 years ago

Incidentally, you may want to call arch -m rather than arch in Compile::Driver

https://apple.stackexchange.com/questions/140651/why-does-arch-output-i386

jjuran commented 5 years ago

If you pass -W to build.pl, it will do 64-bit builds on OS X. I've changed the Makefile to do this. (It won't help with MacRelix.app, though, which is 32-bit-only.)

mePy2 commented 5 years ago

Hi, I’m getting the same error above Carbon etc. I would like to ”build using homebrew” but seriously I don’t know how to do it...

jjuran commented 5 years ago

Try make ams-vnc instead, then connect a VNC client (such as Chicken) to localhost:5900.

mePy2 commented 5 years ago

Hello everyone,

I haven’t installed it yet! Would you please tell me how did you manage to install it? @sabinomaggi @theovosse @nyetwurk

I tried using another command line tool (from Xcode 9.4.3 which permits 32-bit apps dev) but nothing... still having lcrypt and Cabon problems.

Best

PS: This is what I get doing make ams-vnc @jjuran :

MacBook-Pro-di-Umberto:metamage_1 umberto$ make ams-vnc
mkdir -p var/links
Cloning into '../ams-68k-bin'...
remote: Enumerating objects: 160, done.
remote: Counting objects: 100% (160/160), done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 796 (delta 100), reused 102 (delta 48), pack-reused 636
Ricezione degli oggetti: 100% (796/796), 863.44 KiB | 758.00 KiB/s, done.
Risoluzione dei delta: 100% (381/381), done.
./build.pl -i `uname -m | grep x86_64 | sed s/x86_64/-W/` exhibit graft raster vx xv68k freemountd listen vnc-interact
CC    command/errors.cc
CC    command/get_option.cc
AR    libcommand.a
CC    more/perror.cc
AR    libmore-posix.a
CC    exhibit.cc
LINK  exhibit
ld: malformed file
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd:4:18: error: unknown enumerated scalar
platform:        zippered
                 ^~~~~~~~
 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
wait status from command: 256
make: *** [ams-vnc-build] Error 2
jjuran commented 5 years ago

According to https://github.com/golang/go/issues/31159, you may be able to fix this by running

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

(I don't use 10.14, and I've never tried this myself.)

mePy2 commented 5 years ago

Hi,

Thank you very much! I didn’t know if it was that... but I managed to build ams on macOS 10.14 using make ams-osx !!!

I’m going to write a blog post about it xD

Anyway, first thing I did, I selected the Xcode 9.4.1 (last version of Xcode being able to build 32-bit apps) as default Command Line Tool (Preferences). Then (I don’t know why) it still didn’t work. Today, after installing the package you suggested, it worked!! Maybe it was a coincidence or maybe not. I do not why it worked though :/

Now the “problem” is: how to use it?!! The Welcome screen appeared but after I dismissed it, I don’t know how to make it appear again... IDK how to try another Sample application neither.

Best, u

Edit: I set

AMS_APPNAME=Tic-tac-toe
export AMS_APPNAME

too, what did these commands do?

mePy2 commented 5 years ago

...here you go: https://2bluebuffalo-en.blogspot.com/2019/08/how-to-install-advanced-mac-substitute-macos-mojave.html

jjuran commented 5 years ago

Those two commands set and export an environment variable from a command-line shell. Did that work?

Now that you've verified it works, you can run sudo make ams-osx-install to install it. Then you can just run ams Tic-tac-toe, for example.

mePy2 commented 5 years ago

Hi,

Yeah!

I think I installed it:

cd met  MBP-di-Umberto:~ umberto$ cd metamage_1/
MBP-di-Umberto:metamage_1 umberto$ sudo make ams-osx-install
Password:
bin/build-app Genie
./build.pl -i `uname -m | grep x86_64 | sed s/x86_64/-W/` vx
BNDL  Genie
COPY  MacRelix.icns
./build.pl -i `uname -m | grep x86_64 | sed s/x86_64/-W/` exhibit graft raster vx xv68k freemountd uunix interact
install -d var/install/share/ams/bin
install -d var/install/share/ams/lib
install -d var/install/share/ams/mnt
install -m444 var/links/ams-68k-bin/bin/app    var/install/share/ams/bin
install -m444 var/links/ams-68k-bin/lib/ams-*  var/install/share/ams/lib
cp -R var/links/ams-68k-bin/mnt/*              var/install/share/ams/mnt
install -d var/install/bin
test \! -x var/out/sndtrack || install var/out/sndtrack var/install/bin
install var/out/vx          var/install/bin
install var/out/raster      var/install/bin
install var/out/exhibit     var/install/bin
install var/out/graft       var/install/bin
install var/out/freemountd  var/install/bin
install var/out/xv68k       var/install/bin
install var/out/vx          var/install/bin
install v/bin/ams.vx        var/install/bin/ams
install var/out/interact  var/install/bin
install var/out/uunix     var/install/bin
if [ -w /Applications ]; then cp -R var/build/dbg/bin/Genie/MacRelix.app /Applications; else mkdir -p ~/Applications && cp -R var/build/dbg/bin/Genie/MacRelix.app ~/Applications; fi
MBP-di-Umberto:metamage_1 umberto$ ams
-bash: ams: command not found

I do not know where the ams exec is... maybe I have to export the path, but which one?

jjuran commented 5 years ago

Sorry, you hit a known issue that I keep forgetting about. Please drag the install directory under var to the trash. Then run ./configure, which will create var/install as a symbolic link to /usr/local. Then run sudo make ams-osx-install again.

mePy2 commented 5 years ago

Cool, thanks :)

MBP-di-Umberto:metamage_1 umberto$ ./configure
INSTALL_PREFIX = "/usr/local"
MBP-di-Umberto:metamage_1 umberto$ sudo make ams-osx-install
Password:
bin/build-app Genie
./build.pl -i `uname -m | grep x86_64 | sed s/x86_64/-W/` vx
BNDL  Genie
COPY  MacRelix.icns
./build.pl -i `uname -m | grep x86_64 | sed s/x86_64/-W/` exhibit graft raster vx xv68k freemountd uunix interact
install -d var/install/share/ams/bin
install -d var/install/share/ams/lib
install -d var/install/share/ams/mnt
install -m444 var/links/ams-68k-bin/bin/app    var/install/share/ams/bin
install -m444 var/links/ams-68k-bin/lib/ams-*  var/install/share/ams/lib
cp -R var/links/ams-68k-bin/mnt/*              var/install/share/ams/mnt
install -d var/install/bin
test \! -x var/out/sndtrack || install var/out/sndtrack var/install/bin
install var/out/vx          var/install/bin
install var/out/raster      var/install/bin
install var/out/exhibit     var/install/bin
install var/out/graft       var/install/bin
install var/out/freemountd  var/install/bin
install var/out/xv68k       var/install/bin
install var/out/vx          var/install/bin
install v/bin/ams.vx        var/install/bin/ams
install var/out/interact  var/install/bin
install var/out/uunix     var/install/bin
if [ -w /Applications ]; then cp -R var/build/dbg/bin/Genie/MacRelix.app /Applications; else mkdir -p ~/Applications && cp -R var/build/dbg/bin/Genie/MacRelix.app ~/Applications; fi
MBP-di-Umberto:metamage_1 umberto$ ams
interact: User interaction required.  Please launch MacRelix...

It seems to work now :) (I launched the MacRelix app and it opened the Welcome screen again, cool)

jjuran commented 5 years ago

Great! I pushed a fix for that issue: 78aab64b1379015d38f68e56eb23f32b23f35ede

mePy2 commented 5 years ago

Great!

I tried the Tic-tac-toe too! The problem is that it is slow... Is it normal?

Best

jjuran commented 5 years ago

Slow is normal on PPC, but not on a modern x86. What about NyanCat? Does it maintain its frame rate without burdening the CPU?

mePy2 commented 5 years ago

Ahah man, I cannot call it “frame rate”! It stops, then run again but step-by-step (slowly). I’ll try rebooting the system. Is there a way to “debug” this behavior?

Oh, I’m on x86 (mid-2012 MacBook Pro SSD 16GB RAM)

jjuran commented 3 years ago

ATTENTION: 64-bit-only mode is now supported!

Update your checkouts of the metamage_1, freemount, and ams-68k-bin repositories, then run make ams-quartz-demo.

nyetwurk commented 3 years ago
./build.pl -i graft mbin xv68k minivx freemountd Amethyst Amphitheatre
CC    mac_ui/windows.cc
mac/libs/mac-ui-utils//mac_ui/windows.cc:38:2: error: use of undeclared identifier 'GetWindowBounds'
        GetWindowBounds( window, kWindowGlobalPortRgn, &bounds );
        ^
mac/libs/mac-ui-utils//mac_ui/windows.cc:52:2: error: use of undeclared identifier 'GetWindowBounds'
        GetWindowBounds( window, kWindowGlobalPortRgn, &bounds );
        ^
2 errors generated.
wait status from command: 256
make: *** [ams-quartz-build] Error 2

I still don't get why neither build.pl nor Makefile give a list of possible targets.

Nor is there any documentation of either in the README

jjuran commented 1 year ago

Feel free to open a new issue with build errors you're currently seeing or a request for documentation.