Compiling Hatari 1.6.2 on Mac OS X

A forum about the Hatari ST/STE emulator - the current version is v2.0.0

Moderators: simonsunnyboy, thothy, Moderator Team

sidechip
Atarian
Atarian
Posts: 5
Joined: Sat Jun 01, 2013 8:32 pm

Compiling Hatari 1.6.2 on Mac OS X

Postby sidechip » Sat Jun 01, 2013 8:53 pm

Hi, I'm trying to compile hatari 1.6.2 on Mac OS X (10.8.3), however it looks like it makes ok but I cannot run the program...

I've installed SDL (1.2.15) and cmake (2.8.11), and then I do a ./configure, followed by a make, and a make install.

I can neither run it locally from the src/ directory nor from /Applications/ (after a make install)...
- If running hatari.app from the command line it says
The application cannot be opened because its executable is missing

- If running from Finder it says
You can't open the application "hatari.app" because it may be damaged or incomplete


...this happens every time, cleaning up then redoing a configure and make and make install.

Somehow it is missing being properly built though it makes the hatari.app and other files on build. Could anyone tell my what I am missing?

sidechip
Atarian
Atarian
Posts: 5
Joined: Sat Jun 01, 2013 8:32 pm

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby sidechip » Sun Jun 02, 2013 1:37 pm

Doing a ./configure gives...

Code: Select all

$ ./configure
-- The C compiler identification is Clang 4.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test MUDFLAP_AVAILABLE
-- Performing Test MUDFLAP_AVAILABLE - Failed
-- Found SDL: /Library/Frameworks/SDL.framework;-framework Cocoa (found version "1.2.15")
-- Found MATH: /usr/lib/libm.dylib 
-- Found READLINE: /usr/lib/libreadline.dylib 
-- Looking for rl_filename_completion_function
-- Looking for rl_filename_completion_function - found
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Could NOT find PNG (missing:  PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
-- Could NOT find PORTAUDIO (missing:  PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
-- Looking for include file termios.h
-- Looking for include file termios.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - not found
-- Looking for include file SDL/SDL_config.h
-- Looking for include file SDL/SDL_config.h - found
-- Looking for include file sys/times.h
-- Looking for include file sys/times.h - found
-- Looking for include files sys/socket.h, sys/un.h
-- Looking for include files sys/socket.h, sys/un.h - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for select
-- Looking for select - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Looking for memalign
-- Looking for memalign - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for alphasort
-- Looking for alphasort - found
-- Looking for scandir
-- Looking for scandir - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Found PythonInterp: /usr/bin/python (found version "2.7.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jupiter/emu/hatari-1.6.2

Now you must type: make; make install
to actually build and install the software



And doing a make gives...

Code: Select all

Scanning dependencies of target Floppy
[  0%] Building C object src/CMakeFiles/Floppy.dir/createBlankImage.c.o
[  1%] Building C object src/CMakeFiles/Floppy.dir/dim.c.o
[  2%] Building C object src/CMakeFiles/Floppy.dir/msa.c.o
[  3%] Building C object src/CMakeFiles/Floppy.dir/st.c.o
[  3%] Building C object src/CMakeFiles/Floppy.dir/zip.c.o
Linking C static library libFloppy.a
[  3%] Built target Floppy
Scanning dependencies of target osx_bundle_dirs
[  3%] Built target osx_bundle_dirs
Scanning dependencies of target Debug
[  3%] Building C object src/debug/CMakeFiles/Debug.dir/log.c.o
[  4%] Building C object src/debug/CMakeFiles/Debug.dir/debugui.c.o
[  5%] Building C object src/debug/CMakeFiles/Debug.dir/breakcond.c.o
[  6%] Building C object src/debug/CMakeFiles/Debug.dir/debugcpu.c.o
[  6%] Building C object src/debug/CMakeFiles/Debug.dir/debugInfo.c.o
[  7%] Building C object src/debug/CMakeFiles/Debug.dir/debugdsp.c.o
[  8%] Building C object src/debug/CMakeFiles/Debug.dir/evaluate.c.o
[  9%] Building C object src/debug/CMakeFiles/Debug.dir/history.c.o
[  9%] Building C object src/debug/CMakeFiles/Debug.dir/profile.c.o
[ 10%] Building C object src/debug/CMakeFiles/Debug.dir/symbols.c.o
[ 11%] Building C object src/debug/CMakeFiles/Debug.dir/68kDisass.c.o
Linking C static library libDebug.a
[ 11%] Built target Debug
Scanning dependencies of target Falcon
[ 12%] Building C object src/falcon/CMakeFiles/Falcon.dir/crossbar.c.o
[ 12%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp.c.o
[ 13%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp_core.c.o
[ 14%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp_cpu.c.o
[ 15%] Building C object src/falcon/CMakeFiles/Falcon.dir/dsp_disasm.c.o
[ 15%] Building C object src/falcon/CMakeFiles/Falcon.dir/hostscreen.c.o
[ 16%] Building C object src/falcon/CMakeFiles/Falcon.dir/microphone.c.o
[ 17%] Building C object src/falcon/CMakeFiles/Falcon.dir/nvram.c.o
[ 18%] Building C object src/falcon/CMakeFiles/Falcon.dir/videl.c.o
Linking C static library libFalcon.a
/usr/bin/ranlib: file: libFalcon.a(microphone.c.o) has no symbols
/usr/bin/ranlib: file: libFalcon.a(microphone.c.o) has no symbols
[ 18%] Built target Falcon
Scanning dependencies of target GuiSdl
[ 19%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgAbout.c.o
[ 20%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgAlert.c.o
[ 21%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgDevice.c.o
[ 21%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgFileSelect.c.o
[ 22%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgFloppy.c.o
[ 23%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgHardDisk.c.o
[ 24%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgJoystick.c.o
[ 25%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgKeyboard.c.o
[ 25%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgMain.c.o
[ 26%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgMemory.c.o
[ 27%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgNewDisk.c.o
[ 28%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgRom.c.o
[ 28%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgScreen.c.o
[ 29%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgSound.c.o
[ 30%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/dlgSystem.c.o
[ 31%] Building C object src/gui-sdl/CMakeFiles/GuiSdl.dir/sdlgui.c.o
Linking C static library libGuiSdl.a
[ 31%] Built target GuiSdl
Scanning dependencies of target build68k
[ 32%] Building C object src/uae-cpu/CMakeFiles/build68k.dir/build68k.c.o
Linking C executable build68k
[ 32%] Built target build68k
[ 33%] Generating cpudefs.c
Scanning dependencies of target gencpu
[ 34%] Building C object src/uae-cpu/CMakeFiles/gencpu.dir/gencpu.c.o
[ 34%] Building C object src/uae-cpu/CMakeFiles/gencpu.dir/readcpu.c.o
[ 35%] Building C object src/uae-cpu/CMakeFiles/gencpu.dir/cpudefs.c.o
Linking C executable gencpu
[ 35%] Built target gencpu
[ 36%] Generating cpuemu.c, cpustbl.c
Scanning dependencies of target UaeCpu
[ 37%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/cpudefs.c.o
[ 38%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/cpuemu.c.o
[ 38%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/cpustbl.c.o
[ 39%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/hatari-glue.c.o
[ 40%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/memory.c.o
[ 41%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/newcpu.c.o
[ 41%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/readcpu.c.o
[ 42%] Building C object src/uae-cpu/CMakeFiles/UaeCpu.dir/fpp.c.o
Linking C static library libUaeCpu.a
[ 42%] Built target UaeCpu
Scanning dependencies of target hatari
[ 43%] Building C object src/CMakeFiles/hatari.dir/audio.c.o
[ 44%] Building C object src/CMakeFiles/hatari.dir/avi_record.c.o
[ 44%] Building C object src/CMakeFiles/hatari.dir/bios.c.o
[ 45%] Building C object src/CMakeFiles/hatari.dir/blitter.c.o
[ 46%] Building C object src/CMakeFiles/hatari.dir/cart.c.o
[ 47%] Building C object src/CMakeFiles/hatari.dir/cfgopts.c.o
[ 48%] Building C object src/CMakeFiles/hatari.dir/clocks_timings.c.o
[ 48%] Building C object src/CMakeFiles/hatari.dir/configuration.c.o
[ 49%] Building C object src/CMakeFiles/hatari.dir/options.c.o
[ 50%] Building C object src/CMakeFiles/hatari.dir/change.c.o
[ 51%] Building C object src/CMakeFiles/hatari.dir/control.c.o
[ 51%] Building C object src/CMakeFiles/hatari.dir/cycInt.c.o
[ 52%] Building C object src/CMakeFiles/hatari.dir/cycles.c.o
[ 53%] Building C object src/CMakeFiles/hatari.dir/dialog.c.o
[ 54%] Building C object src/CMakeFiles/hatari.dir/dmaSnd.c.o
[ 54%] Building C object src/CMakeFiles/hatari.dir/fdc.c.o
[ 55%] Building C object src/CMakeFiles/hatari.dir/file.c.o
[ 56%] Building C object src/CMakeFiles/hatari.dir/floppy.c.o
[ 57%] Building C object src/CMakeFiles/hatari.dir/gemdos.c.o
[ 57%] Building C object src/CMakeFiles/hatari.dir/hd6301_cpu.c.o
[ 58%] Building C object src/CMakeFiles/hatari.dir/hdc.c.o
[ 59%] Building C object src/CMakeFiles/hatari.dir/ide.c.o
[ 60%] Building C object src/CMakeFiles/hatari.dir/ikbd.c.o
[ 60%] Building C object src/CMakeFiles/hatari.dir/ioMem.c.o
[ 61%] Building C object src/CMakeFiles/hatari.dir/ioMemTabST.c.o
[ 62%] Building C object src/CMakeFiles/hatari.dir/ioMemTabSTE.c.o
[ 63%] Building C object src/CMakeFiles/hatari.dir/ioMemTabTT.c.o
[ 63%] Building C object src/CMakeFiles/hatari.dir/ioMemTabFalcon.c.o
[ 64%] Building C object src/CMakeFiles/hatari.dir/joy.c.o
[ 65%] Building C object src/CMakeFiles/hatari.dir/keymap.c.o
[ 66%] Building C object src/CMakeFiles/hatari.dir/m68000.c.o
[ 66%] Building C object src/CMakeFiles/hatari.dir/main.c.o
[ 67%] Building C object src/CMakeFiles/hatari.dir/midi.c.o
[ 68%] Building C object src/CMakeFiles/hatari.dir/memorySnapShot.c.o
[ 69%] Building C object src/CMakeFiles/hatari.dir/mfp.c.o
[ 69%] Building C object src/CMakeFiles/hatari.dir/paths.c.o
[ 70%] Building C object src/CMakeFiles/hatari.dir/psg.c.o
[ 71%] Building C object src/CMakeFiles/hatari.dir/printer.c.o
[ 72%] Building C object src/CMakeFiles/hatari.dir/resolution.c.o
[ 73%] Building C object src/CMakeFiles/hatari.dir/rs232.c.o
[ 73%] Building C object src/CMakeFiles/hatari.dir/reset.c.o
[ 74%] Building C object src/CMakeFiles/hatari.dir/rtc.c.o
[ 75%] Building C object src/CMakeFiles/hatari.dir/scandir.c.o
[ 76%] Building C object src/CMakeFiles/hatari.dir/stMemory.c.o
[ 76%] Building C object src/CMakeFiles/hatari.dir/screen.c.o
[ 77%] Building C object src/CMakeFiles/hatari.dir/screenSnapShot.c.o
[ 78%] Building C object src/CMakeFiles/hatari.dir/shortcut.c.o
[ 79%] Building C object src/CMakeFiles/hatari.dir/sound.c.o
[ 79%] Building C object src/CMakeFiles/hatari.dir/spec512.c.o
[ 80%] Building C object src/CMakeFiles/hatari.dir/statusbar.c.o
[ 81%] Building C object src/CMakeFiles/hatari.dir/str.c.o
[ 82%] Building C object src/CMakeFiles/hatari.dir/tos.c.o
[ 82%] Building C object src/CMakeFiles/hatari.dir/unzip.c.o
[ 83%] Building C object src/CMakeFiles/hatari.dir/utils.c.o
[ 84%] Building C object src/CMakeFiles/hatari.dir/vdi.c.o
[ 85%] Building C object src/CMakeFiles/hatari.dir/video.c.o
[ 85%] Building C object src/CMakeFiles/hatari.dir/wavFormat.c.o
[ 86%] Building C object src/CMakeFiles/hatari.dir/xbios.c.o
[ 87%] Building C object src/CMakeFiles/hatari.dir/ymFormat.c.o
[ 88%] Building C object src/CMakeFiles/hatari.dir/gui-osx/AlertHooks.m.o
[ 88%] Building C object src/CMakeFiles/hatari.dir/gui-osx/PrefsController.m.o
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:246:26: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
    if ( (NSOKButton == [openPanel runModalForDirectory:directoryToOpen file:fileToPreselect types:nil] )
                         ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:247:12: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
            && ([[openPanel filenames] count] > 0) )
                  ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:250:22: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
                NSString *path = [[openPanel filenames] objectAtIndex:0];
                                   ^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:417:12: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
    if ( [ openPanel runModalForDirectory:nil file:ConfigFile types:nil ] )
           ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:419:26: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
        ConfigFile = [ [ openPanel filenames ] objectAtIndex:0 ];
                         ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:459:13: warning: 'runModalForDirectory:file:' is deprecated [-Wdeprecated-declarations]
    if ( ![ savePanel runModalForDirectory:defaultDir file:ConfigFile ] )
            ^
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:296:1: note: method 'runModalForDirectory:file:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:464:20: warning: 'filename' is deprecated [-Wdeprecated-declarations]
    ConfigFile = [ savePanel filename ];
                   ^
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:278:1: note: method 'filename' declared here
- (NSString *)filename NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:957:35: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
        NSLog(@"Change Max Zoom width: %ld", [sender intValue]);
                                       ~~^   ~~~~~~~~~~~~~~~~~
                                       %d
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/PrefsController.m:963:36: warning: format specifies type 'long' but the argument has type 'int' [-Wformat]
        NSLog(@"Change Max Zoom height: %ld", [sender intValue]);
                                        ~~^   ~~~~~~~~~~~~~~~~~
                                        %d
9 warnings generated.
[ 89%] Building C object src/CMakeFiles/hatari.dir/gui-osx/Shared.m.o
[ 90%] Building C object src/CMakeFiles/hatari.dir/gui-osx/CreateFloppyController.m.o
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/CreateFloppyController.m:37:25: warning: 'runModalForDirectory:file:' is deprecated [-Wdeprecated-declarations]
    if ( NSOKButton == [savePanel runModalForDirectory:defaultDir file:nil] )
                        ^
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:296:1: note: method 'runModalForDirectory:file:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/CreateFloppyController.m:40:21: warning: 'filename' is deprecated [-Wdeprecated-declarations]
                NSString *path = [savePanel filename];
                                  ^
2 warnings generated.
[ 91%] Building C object src/CMakeFiles/hatari.dir/gui-osx/SDLMain.m.o
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:91:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation]
- (void)terminate:(id)sender
^
/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:180:1: note: method 'terminate:' declared here
- (void)terminate:(id)sender;
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:382:9: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
        if ( [ openPanel runModalForDirectory:nil
               ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:385:14: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
                path = [ [ openPanel filenames ] objectAtIndex:0 ];
                           ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:406:9: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
        if ( [ openPanel runModalForDirectory:nil
               ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:409:14: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
                path = [ [ openPanel filenames ] objectAtIndex:0 ];
                           ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:481:38: warning: 'runModalForDirectory:file:' is deprecated [-Wdeprecated-declarations]
        if (NSFileHandlingPanelOKButton == [savePanel runModalForDirectory:directoryToOpen file:fileToPreselect] )
                                            ^
/System/Library/Frameworks/AppKit.framework/Headers/NSSavePanel.h:296:1: note: method 'runModalForDirectory:file:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:581:23: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
        if ( (NSOKButton == [openPanel runModalForDirectory:directoryToOpen file:fileToPreselect types:nil] )
                             ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:582:12: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
            && ([[openPanel filenames] count] > 0) )
                  ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:585:22: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
                NSString *path = [[openPanel filenames] objectAtIndex:0];
                                   ^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:632:9: warning: 'runModalForDirectory:file:types:' is deprecated [-Wdeprecated-declarations]
        if ( [ openPanel runModalForDirectory:nil file:ConfigFile types:nil ] )
               ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:61:1: note: method 'runModalForDirectory:file:types:' declared here
- (NSInteger)runModalForDirectory:(NSString *)path file:(NSString *)name types:(NSArray *)fileTypes NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:634:20: warning: 'filenames' is deprecated [-Wdeprecated-declarations]
                ConfigFile = [ [ openPanel filenames ] objectAtIndex:0 ];
                                 ^
/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:43:1: note: method 'filenames' declared here
- (NSArray *)filenames NS_DEPRECATED_MAC(10_0, 10_6);
^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:656:7: warning: implicit declaration of function 'Change_DoNeedReset' is invalid in C99 [-Wimplicit-function-declaration]
                if (Change_DoNeedReset(&CurrentParams, &ConfigureParams))
                    ^
/Users/jupiter/emu/hatari-1.6.2/src/gui-osx/SDLMain.m:668:4: warning: implicit declaration of function 'Change_CopyChangedParamsToConfiguration' is invalid in C99
      [-Wimplicit-function-declaration]
                        Change_CopyChangedParamsToConfiguration(&CurrentParams, &ConfigureParams, false);
                        ^
13 warnings generated.
Linking C executable hatari.app/Contents/MacOS/hatari
Copying OS X content src/hatari.app/Contents/Resources/English.lproj
Copying OS X content src/hatari.app/Contents/Resources/French.lproj
Copying OS X content src/hatari.app/Contents/Resources/Hatari.icns
[ 91%] Built target hatari
Scanning dependencies of target manpages
[ 92%] Generating hatari.1.gz
[ 92%] Built target manpages
Scanning dependencies of target atari_hd_image_man
[ 93%] Generating atari-hd-image.1.gz
[ 93%] Built target atari_hd_image_man
Scanning dependencies of target zip2st_man
[ 94%] Generating zip2st.1.gz
[ 94%] Built target zip2st_man
Scanning dependencies of target hmsa
[ 95%] Building C object tools/hmsa/CMakeFiles/hmsa.dir/hmsa.c.o
[ 96%] Building C object tools/hmsa/CMakeFiles/hmsa.dir/floppy.c.o
[ 96%] Building C object tools/hmsa/CMakeFiles/hmsa.dir/__/__/src/file.c.o
[ 97%] Building C object tools/hmsa/CMakeFiles/hmsa.dir/__/__/src/unzip.c.o
Linking C executable hmsa
[ 97%] Built target hmsa
Scanning dependencies of target hmsa_manpage
[ 98%] Generating hmsa.1.gz
[ 98%] Built target hmsa_manpage
Scanning dependencies of target hconsole_man
[100%] Generating hconsole.1.gz
[100%] Built target hconsole_man
Scanning dependencies of target conftypes
[100%] Generating conftypes.py
[100%] Built target conftypes
Scanning dependencies of target hatariui_man
[100%] Generating hatariui.1.gz
[100%] Built target hatariui_man

...which gives a few warnings, but no errors, and it seems to get to 100% done!?

Finally, doing a make install as root gives...

Code: Select all

[  3%] Built target Floppy
[  3%] Built target osx_bundle_dirs
[ 11%] Built target Debug
[ 18%] Built target Falcon
[ 31%] Built target GuiSdl
[ 32%] Built target build68k
[ 35%] Built target gencpu
[ 42%] Built target UaeCpu
[ 91%] Built target hatari
[ 92%] Built target manpages
[ 93%] Built target atari_hd_image_man
[ 94%] Built target zip2st_man
[ 97%] Built target hmsa
[ 98%] Built target hmsa_manpage
[100%] Built target hconsole_man
[100%] Built target conftypes
[100%] Built target hatariui_man
Install the project...
-- Install configuration: "Release"
-- Installing: /Applications/hatari.app
-- Installing: /Applications/hatari.app/Contents
-- Installing: /Applications/hatari.app/Contents/Info.plist
-- Installing: /Applications/hatari.app/Contents/MacOS
-- Installing: /Applications/hatari.app/Contents/MacOS/hatari
-- Installing: /Applications/hatari.app/Contents/Resources
-- Installing: /Applications/hatari.app/Contents/Resources/English.lproj
-- Installing: /Applications/hatari.app/Contents/Resources/French.lproj
-- Installing: /Applications/hatari.app/Contents/Resources/Hatari.icns
-- Up-to-date: /usr/local/share/doc/hatari/authors.txt
-- Up-to-date: /usr/local/share/doc/hatari/emutos.txt
-- Up-to-date: /usr/local/share/doc/hatari/keymap-sample.txt
-- Up-to-date: /usr/local/share/doc/hatari/memory-usage.txt
-- Up-to-date: /usr/local/share/doc/hatari/midi-linux.txt
-- Up-to-date: /usr/local/share/doc/hatari/release-notes.txt
-- Up-to-date: /usr/local/share/doc/hatari/todo.txt
-- Up-to-date: /usr/local/share/doc/hatari/compatibility.html
-- Up-to-date: /usr/local/share/doc/hatari/manual.html
-- Installing: /usr/local/share/doc/hatari/images
-- Up-to-date: /usr/local/share/doc/hatari/images/devices.png
-- Up-to-date: /usr/local/share/doc/hatari/images/fileselector.png
-- Up-to-date: /usr/local/share/doc/hatari/images/floppydisks.png
-- Up-to-date: /usr/local/share/doc/hatari/images/harddisks.png
-- Up-to-date: /usr/local/share/doc/hatari/images/joystick.png
-- Up-to-date: /usr/local/share/doc/hatari/images/keyboard.png
-- Up-to-date: /usr/local/share/doc/hatari/images/main.png
-- Up-to-date: /usr/local/share/doc/hatari/images/memory.png
-- Up-to-date: /usr/local/share/doc/hatari/images/monitor.png
-- Up-to-date: /usr/local/share/doc/hatari/images/newfloppy.png
-- Up-to-date: /usr/local/share/doc/hatari/images/screen.png
-- Up-to-date: /usr/local/share/doc/hatari/images/sound.png
-- Up-to-date: /usr/local/share/doc/hatari/images/system.png
-- Up-to-date: /usr/local/share/doc/hatari/images/tos.png
-- Installing: /usr/local/share/man/man1/hatari.1.gz
-- Up-to-date: /usr/local/bin/atari-hd-image
-- Up-to-date: /usr/local/bin/zip2st
-- Installing: /usr/local/share/man/man1/atari-hd-image.1.gz
-- Installing: /usr/local/share/man/man1/zip2st.1.gz
-- Installing: /usr/local/bin/hmsa
-- Installing: /usr/local/share/man/man1/hmsa.1.gz
-- Up-to-date: /usr/local/share/hatari/hconsole/hconsole.py
-- Up-to-date: /usr/local/share/hatari/hconsole/example.py
-- Up-to-date: /usr/local/share/hatari/hconsole/example-commands
-- Up-to-date: /usr/local/share/hatari/hconsole/example-debugger
-- Up-to-date: /usr/local/share/hatari/hconsole/release-notes.txt
-- Installing: /usr/local/share/man/man1/hconsole.1.gz
-- Up-to-date: /usr/local/bin/hatariui
-- Up-to-date: /usr/local/share/hatari/hatariui/config.py
-- Up-to-date: /usr/local/share/hatari/hatariui/dialogs.py
-- Up-to-date: /usr/local/share/hatari/hatariui/hatari.py
-- Up-to-date: /usr/local/share/hatari/hatariui/uihelpers.py
-- Up-to-date: /usr/local/share/hatari/hatariui/hatariui.py
-- Up-to-date: /usr/local/share/hatari/hatariui/debugui.py
-- Installing: /usr/local/share/hatari/hatariui/conftypes.py
-- Up-to-date: /usr/local/share/hatari/hatariui/README
-- Up-to-date: /usr/local/share/hatari/hatariui/TODO
-- Up-to-date: /usr/local/share/hatari/hatariui/release-notes.txt
-- Up-to-date: /usr/local/share/hatari/hatariui/hatari-icon.png
-- Up-to-date: /usr/local/share/hatari/hatariui/hatari.png
-- Up-to-date: /usr/local/share/icons/hicolor/32x32/apps/hatari-icon.png
-- Up-to-date: /usr/local/share/applications/hatariui.desktop
-- Installing: /usr/local/share/man/man1/hatariui.1.gz


Then running it, I get the errors as given originally. Any ideas?

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1563
Joined: Sun Jul 31, 2011 1:11 pm

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby Eero Tamminen » Sun Jun 02, 2013 3:42 pm

sidechip wrote:Somehow it is missing being properly built though it makes the hatari.app and other files on build. Could anyone tell my what I am missing?


It may be better if you subscribe to hatari-devel and ask this there. Hatari developers don't have Macs, but some other people on the hatari-devel mailing list do have.

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Sun Jun 02, 2013 5:19 pm

sidechip wrote:Hi, I'm trying to compile hatari 1.6.2 on Mac OS X (10.8.3), however it looks like it makes ok but I cannot run the program...

I've installed SDL (1.2.15) and cmake (2.8.11), and then I do a ./configure, followed by a make, and a make install.

I can neither run it locally from the src/ directory nor from /Applications/ (after a make install)...
- If running hatari.app from the command line it says
The application cannot be opened because its executable is missing

- If running from Finder it says
You can't open the application "hatari.app" because it may be damaged or incomplete


...this happens every time, cleaning up then redoing a configure and make and make install.

Somehow it is missing being properly built though it makes the hatari.app and other files on build. Could anyone tell my what I am missing?


Eero is correct that the hatari-devel mailing list includes more of us that compile Hatari on OS X. However, I did try compiling using the ./configure, make method and my Hatari.app did work. I just ran it from the /src directory. I have Cmake 2.8.8 on my system. I am also running OS X 10.8.3.

Normally, I use XCode to compile Hatari because that is the only way I know to get the OS X-specific dialog boxes and embed the SDL framework for users who do not have it loaded on their system. I purposely did not do a "make install" because I did not want the possibility of overwriting my current Hatari binary. A number of us have shared our XCode projects in the past.

With 1.7, I am hoping that we can find an OS X binary that works for almost everyone. That way, the many OS X users that do not want to compile Hatari will be able to easily find a version they can simply run like any other OS X application.


Bob C

sidechip
Atarian
Atarian
Posts: 5
Joined: Sat Jun 01, 2013 8:32 pm

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby sidechip » Mon Jun 03, 2013 9:59 pm

darwinmac wrote:Eero is correct that the hatari-devel mailing list includes more of us that compile Hatari on OS X. However, I did try compiling using the ./configure, make method and my Hatari.app did work. I just ran it from the /src directory. I have Cmake 2.8.8 on my system. I am also running OS X 10.8.3.

Normally, I use XCode to compile Hatari because that is the only way I know to get the OS X-specific dialog boxes and embed the SDL framework for users who do not have it loaded on their system. I purposely did not do a "make install" because I did not want the possibility of overwriting my current Hatari binary. A number of us have shared our XCode projects in the past.


Could you tell me how you are running it from the command line? What exactly are you running? Because I just noticed, if I climb into the src/ directory and do...

Code: Select all

$ open hatari.app/

...then I get the error
The application cannot be opened because its executable is missing.


But if I climb into the hatari.app/ directory, into 'hatari-1.6.2/src/hatari.app/Contents/MacOS/' then do...

Code: Select all

$ ./hatari

Then I get this error
2013-06-03 22:45:16.645 hatari[3086:707] Unable to load nib file: SDLMain.nib, exiting


...which indicates it's my SDL!? If compiling, should I have the devel version of SDL installed? It looks like there's only the devel version for Linux and Microsoft Windows.

darwinmac wrote:With 1.7, I am hoping that we can find an OS X binary that works for almost everyone. That way, the many OS X users that do not want to compile Hatari will be able to easily find a version they can simply run like any other OS X application.


Bob C

Well, I'm hoping to compile Hatari because I want to use it as a simulator for doing data/address bus monitors to test prototype hardware that can be attached to the bus on real systems which would be memory mapped - i.e. memory-mapped custom hardware. I'd have to code this in the emulator first though. I'd like to use it as a base for teaching digital electronics and computer architecture.

Eero Tamminen wrote:It may be better if you subscribe to hatari-devel and ask this there. Hatari developers don't have Macs, but some other people on the hatari-devel mailing list do have.

Thanks. I'll check it out. I'd really like just a list of dependent packages to install and a set of instructions to follow to get it to compile.

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Wed Jun 05, 2013 1:53 am

Sidechip,

As far as running Hatari from the command line, I did the exact same command as you did and it worked.

However, I do see some differences. When you run configure, it finds /usr/bin/cc which is linked to clang. However, my configure finds gcc first which is linked to llvm. On the hatari-devel list, I thought there was a discussion regarding compile errors when using clang. I installed the XCode command-line tools which could explain how I have gcc on my system. I do not remember the discussion that well since I simply want to compile Hatari to play my old ST games. I do not have any other purpose besides that.

You see more warnings when compiling PrefsController (OS X preferences window) than I do. This could be because you are using a different compiler than I am.

Here are the dependencies I am aware of: It has been awhile since I had to find the pieces in order to compile Hatari the first time.

- XCode (I think the command-line tools get you gcc as an option)
- XQuartz (XQuartz.macosforge.org) - I believe that Hatari uses X11 for something. I could be mistaken about that though.
- CMake (I had to upgrade from my old version to 2.8.8 when compiling Hatari 1.6.2. I see no reason why you could not install the latest version)

You do not need the SDL development version. As you say, it is not available for OS X. If you want to compile the framework from source like jvernet (Hatari user that compiles Hatari universal binary), then you need the SDL source code. I do not enjoy pain that much. :) My XCode project simply copies in the SDL framework provided by the SDL project so Hatari runs even if you do not install SDL.

After your explanation, I can see why you want to be able to compile it from source. I hope this helps you. Unfortunately, I do not have time to learn OS X development. I know enough to be dangerous and compile Hatari. Most of the requests I see here are from people who simply want an OS X binary to run old ST games like I do.


Bob C

sidechip
Atarian
Atarian
Posts: 5
Joined: Sat Jun 01, 2013 8:32 pm

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby sidechip » Wed Jun 05, 2013 6:36 pm

darwinmac wrote:However, I do see some differences. When you run configure, it finds /usr/bin/cc which is linked to clang. However, my configure finds gcc first which is linked to llvm. On the hatari-devel list, I thought there was a discussion regarding compile errors when using clang. I installed the XCode command-line tools which could explain how I have gcc on my system. I do not remember the discussion that well since I simply want to compile Hatari to play my old ST games. I do not have any other purpose besides that.

I have the Xcode command line tools installed (but not Xcode itself on this machine), I think 4.6.1 on this machine.

My gcc is this version...

Code: Select all

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Looking at cc...

Code: Select all

$ ls -l $(which cc)
lrwxr-xr-x  1 root  wheel  5 12 Jan 18:36 /usr/bin/cc -> clang

Looking at gcc...

Code: Select all

$ ls -l $(which gcc)
lrwxr-xr-x  1 root  wheel  12 12 Jan 18:36 /usr/bin/gcc -> llvm-gcc-4.2

...and those three are the same on another OS X machine, but with both Xcode 4.6.2 command line tools instead of 4.6.1, and Xcode proper installed.

darwinmac wrote:Here are the dependencies I am aware of: It has been awhile since I had to find the pieces in order to compile Hatari the first time.

- XCode (I think the command-line tools get you gcc as an option)
- XQuartz (XQuartz.macosforge.org) - I believe that Hatari uses X11 for something. I could be mistaken about that though.
- CMake (I had to upgrade from my old version to 2.8.8 when compiling Hatari 1.6.2. I see no reason why you could not install the latest version)

Yup, I've got Xcode 4.6.1, XQuartz 2.7.4, and cmake 2.8.11. I also have SDL 1.2.15.

Hatari compile complained and wouldn't make (or configure?) at all when I didn't have cmake. Now it builds but is clearly lacking something.

darwinmac wrote:You do not need the SDL development version. As you say, it is not available for OS X. If you want to compile the framework from source like jvernet (Hatari user that compiles Hatari universal binary), then you need the SDL source code. I do not enjoy pain that much. :) My XCode project simply copies in the SDL framework provided by the SDL project so Hatari runs even if you do not install SDL.

That's good to know. I only have the SDL-1.2.15.dmg installed. I tried to build from source also, but it didn't compile.

Thanks... To the hatari-devel list I go...

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Thu Jun 06, 2013 2:43 am

Sidechip,

I am sorry I could not help you more. Depending on what you need, you might want to try adding the "--disable-osx-bundle" parameter when you run the ./configure. Since Hatari is developed on Linux, it is possible that you can get a generic Hatari binary compiled. Based on your responses, I do not know why ./configure finds the gcc compiler first on my system but it finds cc->clang on your system first.


Bob C

User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 525
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby Omikronman » Thu Jun 06, 2013 2:27 pm

I already have Hatari 1.6.2 for Mac OS X if you like. :-)

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Fri Jun 07, 2013 1:49 am

Omikronman wrote:I already have Hatari 1.6.2 for Mac OS X if you like. :-)


Unfortunately, that will not help sidechip. He is not looking for Hatari simply to play old ST games. If you look earlier in the thread, you will see that he wants to make changes to the emulator and use it as a teaching tool.


Bob C

User avatar
Omikronman
Atari Super Hero
Atari Super Hero
Posts: 525
Joined: Wed Dec 01, 2004 12:13 am
Location: Germany
Contact:

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby Omikronman » Fri Jun 07, 2013 7:55 am

In that case it would be great to have someone who could do regulary compilations of the latest versions. :-)

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1445
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby frank.lukas » Fri Jun 07, 2013 9:42 am

... a fix member of the Hatari Team who care of the OSX Port would be great !
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby nativ » Fri Jun 07, 2013 11:26 am

yep!

and if there is a way anyone that can knock up 10.4 or 10.5 PPC versions, that would be good for me too! I have machines that can be directed to compile on !
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Sat Jun 08, 2013 1:10 am

As a volunteer OS X compiler, let me try answer the questions to the best of my ability.

1. There are multiple people who provide Intel OS X binaries for Hatari. They have been provided in various topics here when a new version of Hatari is released. The problem has always been that we have not found a single binary that works for everyone. Therefore, we never end up with an OS X binary at tuxfamily.

2. When new options were added to the Hatari interface, two different people came forward and added the new items to the OS X interface. As I see it, the main problem is the lack of an OS X binary that you can easily download at Tuxfamily.

3. As 1.7 is nearing release, the Hatari developers (all of whom use Linux) asked on the hatari-devel list how Hatari was compiling on OS X. When a few problems were found, the code was changed to work around the problems.

4. Nativ - only one of us (jvernet) has an XCode version old enough to produce an Hatari universal binary. Unfortunately, as I recall, that universal binary did not work for you.

Unfortunately, unless you refuse to upgrade your Xcode (or keep a separate environment set up for the old Xcode), Apple starts dropping support for older OS versions. That is frustrating when compiling something like Hatari that does not need any of the new Mac OS features.

My hope is that we are able to get a single OS X binary that anyone can download from tuxfamily. My secondary hope is that we can get an Intel-based Mac binary on tuxfamily. If we are not able to do that, maybe we can get a sticky topic here for downloading the current Hatari version so people can easily find it. Until the new CPU core is the default, I am guessing that the OS X binaries would use the old core which is fine for the ST but the new core has better Falcon compatibility from what I read on the hatari-devel list.

None of this helps sidechip though since he needs to be able to compile the source code. I do think this would help the vast majority of Hatari users who simply want to sit down and play some classic ST games.

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby nativ » Sat Jun 08, 2013 12:43 pm

[quote="darwinmac"]As a volunteer OS X compiler, let me try answer the questions to the best of my ability.
thanks

4. Nativ - only one of us (jvernet) has an XCode version old enough to produce an Hatari universal binary. Unfortunately, as I recall, that universal binary did not work for you.

Last one I have managed to get working is the 1.6.1 UB

I now can run OS 8.5 9 OSX 10.3.9 / 10.4.11 / 10.5.4 (just trying to make a bootable archive of that then i'll be on to 10.5.8 )

Unfortunately, unless you refuse to upgrade your Xcode (or keep a separate environment set up for the old Xcode), Apple starts dropping support for older OS versions. That is frustrating when compiling something like Hatari that does not need any of the new Mac OS features.

Separate environment probably the way to go, I know MacOS ties you to install to a degree on the boot drive with some Apps. but keeping an older 20/40 gb drive just for compiling has got to be do able! ( Don't know why I am trying to keep the PPC alive :lol: )

My hope is that we are able to get a single OS X binary that anyone can download from tuxfamily. My secondary hope is that we can get an Intel-based Mac binary on tuxfamily. If we are not able to do that, maybe we can get a sticky topic here for downloading the current Hatari version so people can easily find it. Until the new CPU core is the default, I am guessing that the OS X binaries would use the old core which is fine for the ST but the new core has better Falcon compatibility from what I read on the hatari-devel list.

None of this helps sidechip though since he needs to be able to compile the source code. I do think this would help the vast majority of Hatari users who simply want to sit down and play some classic ST games.

Well coding would be a useful feature for me! :)
Hatari uses some Amiga base 68k code? and forgive me if I am wrong AmiOS or the Amiga equivalent is developed for PPC still?

:cheers:
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Sat Jun 08, 2013 3:07 pm

Nativ,

I had forgotten that you were able to run the 1.6.1 UB. I did see information on the hatari-devel list where code was contributed to help with the OS X interface. I am hopeful that the 1.7 UB will work for you.

As far as keeping a separate development drive, it looks like that is exactly what jvernet does. Either that or he has an older Mac that he keeps for this purpose. I do not do this because I simply compile Hatari for my own use. If it works for someone else, that is great. That is why I am hoping that the 1.7 UB version will work for you and for Intel-based Mac users. If so, it should be uploaded to tuxfamily and it would be easy for anyone to download.

As far as compiling Hatari, it took me some time to get it right because I am not familiar with Xcode. Jvernet's Xcode project is much more sophisticated because he compiles all of the frameworks as well as Hatari. That is how he can produce a Universal Binary.

To my knowledge, the current CPU core is based on UAE and the newer, more Falcon-compatible core is based on WinUAE (with changes to account for the differences in Hatari). I am not an Hatari developer so I could not discuss any of that intelligently. :D

Though I run an Amiga emulator to play some other games, I could not tell you the current status of AmigaOS. At one point, I saw something about it being developed for PPC but many different people have owned it. These days, they seem most interested in porting games to Blackberry 10 OS.


Bob C

User avatar
shoggoth
Nature
Nature
Posts: 856
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby shoggoth » Sun Jun 09, 2013 9:15 am

O.T. I guess, but - anyone knows if the bootdrv bug is fixed in 1.6.2? The GEMDOS fs implementation is far from perfect in 1.6.1 and lower..
Ain't no space like PeP-space.

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Sun Jun 09, 2013 10:48 pm

Here is a binary of the pre-1.7 version. I have been able to run games successfully on it.

https://www.dropbox.com/s/5g8n0uuoo3wcc ... ip?v=1mcis

Nativ - I am assuming this is a Universal Binary since that is what jvernet creates. It is twice the size of the version that I compiled. However, I do not see an indication of Universal when I do a Get Info on the binary.

Shoggoth - I am assuming you are using a directory as a hard drive to boot Hatari. I do not do that so I cannot comment on it. However, I would check tux family to see if your problem is in the release notes for 1.6.2. It is also possible that it will be fixed in the 1.7 release. If the pre-release binary still shows the problem, I would mention something on the hatari-devel list.


Bob C

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby nativ » Sun Jun 09, 2013 11:14 pm

Darwinmac ( Bob C )

Well it didn't give me a NO Entry! and it's made it all the way through boot! seemed a little slower to boot, but thats probably because I am using a Single CPU 1.25 PPC running 10.5.4.

Got to change the PSU from this Mac to the 1.25 DP PPC and shift the hard drive over too! 4 hard drives :lol: :roll: :coffe: will see if it works under 10.4.11

Thanks very much :cheers:
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Mon Jun 10, 2013 12:46 am

nativ wrote:Darwinmac ( Bob C )

Thanks very much :cheers:


You can thank jvernet. I am simply the messenger. :) I am glad to hear it worked. I have heard on the devel list that, as they improve the emulation, it is likely to need more CPU power.


Bob C

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby nativ » Mon Jun 10, 2013 1:20 am

Graphically everything looks great, the audio side it a little chuggy but that is the case if I use the stand alone YM player, so perhaps that is a CPU gobbler? or in need of optimisation? I heard it was quite good, but perhaps that is on PC! I'll delve further into it after that stuff called 'sleep' I think.... :mrgreen:
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

User avatar
troed
Atari God
Atari God
Posts: 1217
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby troed » Mon Jun 10, 2013 1:47 pm

darwinmac wrote:Here is a binary of the pre-1.7 version


Is this supposed to be stable pre 1.7-work or just something to test Mac build compatibility with? Exchanging my current (much older) 1.6.2 build with this one caused an immediate regression with something I'm currently working (coding) on. My stuff works fine on older Hatari builds and with target hw.

I've not had time to dive into what kind of problem it is - but it's of the "many many bombs" category.

/Troed

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Mon Jun 10, 2013 2:43 pm

I posted it simply to have OS X compatibility tested. However, I think the developers are getting close to a release.

If you see a regression, I would say something on the hatari-devel list. They can give you more information on what you can provide to them so they can investigate the problem.

Bob C

darwinmac
Captain Atari
Captain Atari
Posts: 164
Joined: Sat Aug 06, 2011 2:49 pm
Location: Chicago, USA

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby darwinmac » Tue Jun 11, 2013 12:35 am

nativ wrote:Darwinmac ( Bob C )

Got to change the PSU from this Mac to the 1.25 DP PPC and shift the hard drive over too! 4 hard drives :lol: :roll: :coffe: will see if it works under 10.4.11

Thanks very much :cheers:


I heard from jvernet on the devel list. He does not think the build will work on 10.4 based on the machine he used for compiling. I am happy to hear it works on 10.5 though. I am really hoping when Hatari 1.7 is released that there is an OS X program there. I realize there are many Mac Hatari users who do not want to deal with compiling it from source with Xcode.

Bob C
Last edited by darwinmac on Sun Jun 16, 2013 2:14 pm, edited 1 time in total.

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: Compiling Hatari 1.6.2 on Mac OS X

Postby nativ » Sun Jun 16, 2013 12:10 pm

Wonder if this is useful?

http://macfiets.blogspot.co.uk/2011/05/ ... ode-3.html

as it says how to download xcode3 ^


http://stackoverflow.com/questions/5333 ... to-xcode-4

And another article on combined dev ^

:cheers:
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 1 guest