English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 08 August 2014, 21:19   #1
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
FS-UAE for OS X PPC (Not officially supported)

Finally I found a SDL2.Framework working on PowerMacs, the universal binary is bundled with the very nice and fast game BitFighter so I tried again to build latest FS-UAE dev on my G4 MDD extracting it and putting that Framework in the usual places but the configure script fails to found it: I tried to play a bit with the command line options but without success: what is the correct syntax to force Configure (FS-UAE) to target to a specific SDL2.Framework location?

Last edited by FrodeSolheim; 27 July 2015 at 14:31.
SnakeCoils is offline  
Old 08 August 2014, 22:51   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Hi, this is a bit outside what I can reasonably provide support for, so you need to be able to do it mostly by yourself

Linking against frameworks on OS X can be done like this:
Code:
-F/path/to/dir/containing/framework -framework SDL2
FrodeSolheim is offline  
Old 10 August 2014, 01:32   #3
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
The method above did not work for me, I have a G4 MDD with OSX 10.5.8 installed with all the goodies needed for compiling and here is what is happening:

- Unpacked BitFighter version Universal 32bit
- Extracted from the app bundle the SDL2.framework and putting it in Library/Frameworks/
- Deleted the SDL2.framework from BitFighter bundle
- Running BitFighter in this way is OK so the app is founding its way to the SDL2 framework in the new location.
- Now I unpacked the FS-UAE source
- From Terminal I run ./configure obtaining the following result:
Code:
power-mac-g4-di-snakecoils:fs-uae-2.5.8dev snakecoils$ ./configure 
checking build system type... powerpc-apple-darwin9.8.0
checking host system type... powerpc-apple-darwin9.8.0
checking target system type... powerpc-apple-darwin9.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for msgfmt... /opt/local/bin/msgfmt
checking for zip... /usr/bin/zip
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: Using Carbon.framework
checking for ftime in -lcompat... no
checking for dlopen in -ldl... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FREETYPE... yes
checking for main in -lgdi32... no
checking for GLIB... yes
checking for main in -lIphlpapi... no
configure: Using IOKit.framework
checking for floor in -lm... yes
checking for MIR... no
checking for OPENAL... no
configure: Using OpenAL.framework
checking for OPENGL... no
configure: Using OpenGL.framework
checking for PNG... yes
checking for SDL2... no
configure: error: Package requirements (sdl2) were not met:

No package 'sdl2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SDL2_CFLAGS
and SDL2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Do I need to force FS-UAE to the right path to SDL2 libraries that in my case is /Library/Frameworks/ or do I need a different SDL2 set?
I also have tried to strip the universal binary to its PPC part only (and BitFighter still run) just in case FS-UAE config dislikes the universal version of that framework.
As far as I know the SDL 2.0.1 version is the latest with OSX PPC support, it has been dropped since 2.0.2 but at present I have not yet found an old 2.0.1 source repository so I am stuck with the SDL2.framework found in BitFighter.
Is there a way to force FS-UAE build process to use this library?
SnakeCoils is offline  
Old 10 August 2014, 12:02   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
The configure script does not look for SDL2 framework, it uses pkg-config to find the includes and library flags.

You may be able to get to work by setting the following environment variables before running configure:
Code:
export SDL2_CFLAGS="-I/path/to/dir/containgin/SDL/header/files"
export SDL2_LIBS="-F/path/to/dir/containing/framework -framework SDL2"
(Alternatively, SDL 2.0.1 source tarball here: https://www.libsdl.org/release/SDL2-2.0.1.tar.gz)
FrodeSolheim is offline  
Old 10 August 2014, 22:48   #5
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
Following your instructions I have declared these lines (including brackets):

export SDL2_CFLAGS="-I/Library/Frameworks/SDL2.framework/Versions/A/Headers"
export SDL2_LIBS="-F/Library/Frameworks -framework SDL2"

Then I ran ./configure and this time the script reaches the end.

After that I have changed the dir to "macosx" and I have launched the make command but it has stopped almost immediately with this error:

Code:
power-mac-g4-di-snakecoils:macosx snakecoils$ make
make -C ..
depbase=`echo src/blitops.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -DHAVE_CONFIG_H -I.  -DMACOSX -DFSUAE -I./glee -I./manymouse -I./src/ppc/pearpc  -I./libmpeg2/include  -fno-strict-overflow -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./src/include -I./gen -I./src/jit -I./src -I./libfsemu/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DLUA_USE_POSIX  -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenAL.framework/Headers -I/opt/local/include/libpng16  -I/Library/Frameworks/SDL2.framework/Versions/A/Headers -I/opt/local/include   -I./src/slirp/include -I./libudis86/include  -g -O2 -MT src/blitops.o -MD -MP -MF $depbase.Tpo -c -o src/blitops.o src/blitops.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
cc1plus: error: unrecognized command line option "-fno-strict-overflow"
make[1]: *** [src/blitops.o] Error 1
make: *** [bundle] Error 2
Looking at the string it seems to point to a non-existent SDK 10.9 for OpenAL and of course this is wrong because I am build in a 10.5.8 PowerPC environment.
Following the example above for SDL2 I have declared the OpenAL path directly in the MacPorts directories:

export OPENAL_CFLAGS="-I/opt/local/Library/Frameworks/OpenAL.framework/Versions/A/Headers"
export OPENAL_LIBS="-F/opt/local/Library/Frameworks -framework OpenAL"

At present the build fails with the same error above.
In the meantime I have downloaded the source of SDL 2.0.1 and recompiled as ppc binary (not universal) under Xcode 3.2.5 in a OSX 10.6.8 environment, but unfortunately this does not helped in FS-UAE compile.
SnakeCoils is offline  
Old 10 August 2014, 23:01   #6
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by SnakeCoils View Post
cc1plus: error: unrecognized command line option "-fno-strict-overflow"
You can remove -fno-strict-overflow from the Makefile. Should be safe with GCC <= 4.6.

Quote:
Originally Posted by SnakeCoils View Post
Looking at the string it seems to point to a non-existent SDK 10.9 for OpenAL
Yes, I haven't bothered to figure out how to automatically find it in a reliably way. Apple seems to think it is amusing to move this stuff around...
FrodeSolheim is offline  
Old 11 August 2014, 10:38   #7
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
Well, after a bit of struggling FS-UAE for OSX PPC is almost here :-)
At present I used the 2.5.8dev version because the presence of PPC engine from 2.5.9 on is causing further troubles so in the meantime I have experimented on a safer release.
There are some additional steps I performed to reach the end, they are:

- In the SDL2.framework I modified a string in the SDL_platform.h header to allow FS-UAE to use it on 10.5 too, otherwise an error occour telling that SDL2 can't be build on an environment lower than 10.6

- The zip command from Xcode did not recognize che -Z option so using MacPorts I have upgraded to the last version and I have replaced the group of binaries in /usr/bin with the soft links from the MacPorts bunch.

With the above modification the build process goes straight to the end but fails in the Python script when all resources are put together to make the bundle with this error:

Code:
@rpath/SDL2.framework/Versions/A/SDL2
copying @rpath/SDL2.framework/Versions/A/SDL2
Traceback (most recent call last):
  File "../standalone.py", line 72, in <module>
    main()
  File "../standalone.py", line 66, in main
    changes = fix_iteration(app)
  File "../standalone.py", line 59, in fix_iteration
    changes += fix_binary(binary, frameworks_dir)
  File "../standalone.py", line 36, in fix_binary
    shutil.copy(old, dst)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/shutil.py", line 228, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/shutil.py", line 107, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '@rpath/SDL2.framework/Versions/A/SDL2'
make: *** [bundle] Error 1
It seems that here the manually declared SDL2 path before ./configure command is lost so the script can't find its way to the library.
SnakeCoils is offline  
Old 11 August 2014, 10:58   #8
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
standalone.py is a small program I write to copy library dependencies to the .app bundle (and correct the library rpaths). It simply does not understand the rpath for the SDL2 framework (because no libraries I link to uses @rpath/...).

This can be fixed, of course, but you only need to run standalone.py if you plan to distribute the resulting .app bundle. For your own use only, it is not needed.
FrodeSolheim is offline  
Old 11 August 2014, 11:47   #9
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
I am already happy to can build FS-UAE again for the my beloved G4 MDD so many many thanks for the support provided :-)
Checking the bundle from the intel version seems that only the SDL2 library is missing so I added it manually, I have already uploaded the result in The Zone so everyone can already play with it.
A last thing seems missed: some resources (PNG files mainly) while they are in the bundle can't be found from the FS-UAE executable, and when launched the black screen is filled with "not found PNG" messages.
Here is the log for what is happening:

Code:
FS-UAE VERSION 2.5.8dev
Copyright 1995-2002 Bernd Schmidt, 1999-2014 Toni Wilen,
2003-2007 Richard Drummond, 2006-2011 Mustafa 'GnoStiC' Tufan,
2011-2014 Frode Solheim, and contributors.

This is free software; see the file COPYING for copying conditions. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the README for more copyright info, and the source code for
a full list of contributors

current directory is /
libamiga (based on emulation core from WinUAE 2.8.2 beta 8) initialized
OS X: Check for pending SDL_DROPFILE event

----------------------------------------------------------------------------
libfsemu init
----------------------------------------------------------------------------

fs_emu_init
current time() is: 1407748937
localtime+timegm:  -1
localtime+mktime:  1407748937
time of day:       1407748937 + (287876 / 1000000)
localtime offset:  7200
calling fs_ml_init
fs_ml_init (operating system: macosx)
initialize dialog module
load config file
- using $exe directory "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS"
checking config file /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/Config.fs-uae
checking config file /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../../Config.fs-uae
checking config file Config.fs-uae
checking config file fs-uae.conf
checking config file /Users/snakecoils/Library/Preferences/fs-uae/fs-uae.conf
- checking /Users/snakecoils/Library/Preferences/fs-uae/configurations-dir
- checking /Users/snakecoils/Library/Preferences/fs-uae/base-dir
- using base dir $DOCUMENTS/FS-UAE
- using documents directory "/Users/snakecoils/Documents"
- using base ($BASE / $FSUAE) directory "/Users/snakecoils/Documents/FS-UAE"
resolve_path /Users/snakecoils/Documents/FS-UAE/Configurations (absolute)
- using "Configurations" directory "/Users/snakecoils/Documents/FS-UAE/Configurations"
checking config file /Users/snakecoils/Documents/FS-UAE/Configurations/Default.fs-uae
No configuration file was foundchecking config file /Users/snakecoils/Documents/FS-UAE/Configurations/Host.fs-uae
locale is set to it_IT
using data dir "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/share-dir"
using locale dir "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/locale"
WARNING: No configuration file was found


----------------------------------------------------------------------------
fs-uae init
----------------------------------------------------------------------------

configure logging: none
- checking /Users/snakecoils/Library/Preferences/fs-uae/kickstarts-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Kickstarts (absolute)
- using "Kickstarts" directory "/Users/snakecoils/Documents/FS-UAE/Kickstarts"
- checking /Users/snakecoils/Library/Preferences/fs-uae/floppies-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Floppies (absolute)
- using "Floppies" directory "/Users/snakecoils/Documents/FS-UAE/Floppies"
- checking /Users/snakecoils/Library/Preferences/fs-uae/cdroms-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/CD-ROMs (absolute)
- using "CD-ROMs" directory "/Users/snakecoils/Documents/FS-UAE/CD-ROMs"
- checking /Users/snakecoils/Library/Preferences/fs-uae/hard-drives-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Hard Drives (absolute)
- using "Hard Drives" directory "/Users/snakecoils/Documents/FS-UAE/Hard Drives"
Initializing plugins
- checking /Users/snakecoils/Library/Preferences/fs-uae/plugins-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Plugins (absolute)
- using "Plugins" directory "/Users/snakecoils/Documents/FS-UAE/Plugins"
Warning: could not open plugins dir
fs_uae_configure_amiga_model
using PAL mode (50Hz)
fs_emu_set_video_frame_rate: 50
g_fs_emu_video_sync_to_vblank = 0
WARNING: unknown amiga config specified, using A500
fs_uae_state_dir:
- checking /Users/snakecoils/Library/Preferences/fs-uae/save-states-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Save States (absolute)
- using "Save States" directory "/Users/snakecoils/Documents/FS-UAE/Save States"
save_states_dir: /Users/snakecoils/Documents/FS-UAE/Save States
save_dir_name not set, using Default
- using state dir /Users/snakecoils/Documents/FS-UAE/Save States/Default
final state dir path: /Users/snakecoils/Documents/FS-UAE/Save States/Default
- checking /Users/snakecoils/Library/Preferences/fs-uae/controllers-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Controllers (absolute)
- using "Controllers" directory "/Users/snakecoils/Documents/FS-UAE/Controllers"
- checking /Users/snakecoils/Library/Preferences/fs-uae/logs-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Cache/Logs (absolute)
- using "Cache/Logs" directory "/Users/snakecoils/Documents/FS-UAE/Cache/Logs"
switch to log file /Users/snakecoils/Documents/FS-UAE/Cache/Logs/fs-uae.log.txt
- checking /Users/snakecoils/Library/Preferences/fs-uae/themes-dir
resolve_path /Users/snakecoils/Documents/FS-UAE/Themes (absolute)
- using "Themes" directory "/Users/snakecoils/Documents/FS-UAE/Themes"
themes_dir = /Users/snakecoils/Documents/FS-UAE/Themes
fs_emu_init_2
fs_emu_theme_init
loading theme ""
fs_emu_video_init
full-scene anti-aliasing is not requested
current display mode is 1280x960 @ 60 Hz
checking video sync mode
not specified: no video sync
no video sync (using timers only)
using default video format BGRA
using default texture format
fs_emu_init_render
scale: -1.00 -1.00 align: 0.50 0.50
calling fs_ml_init_2
assuming refresh rate: 60 (16666 usec per frame)
fs_ml_input_init
calling fs_ml_video_init
creating condition
creating mutex
fs_ml_mouse_init
- adding system mouse
ManyMouse: (c) 2005-2012 Ryan C. Gordon
ManyMouse: thread running
- adding Apple Keyboard (Mac OS X 10.5+ HID Manager)
- adding Optical USB Mouse (Mac OS X 10.5+ HID Manager)
num joystick devices: 0
read config
fs_emu_input_init
init_input_configs
reading input device configs from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input
reading input device configs from /Users/snakecoils/Documents/FS-UAE/Controllers
initializing devices for menu
0 KEYBOARD
get system config for device: keyboard_0_0_0_0_macosx
config file for keyboard_0_0_0_0_macosx was not found
did not find menu config for device "keyboard_0_0_0_0_macosx"
get system config for device: keyboard
read config for keyboard for menu (from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input/generic/keyboard.ini)
key_down (274) => action "down" (4)
did not find action for "skip_left"
key_left (276) => action "left" (1)
key_right (275) => action "right" (2)
key_escape (27) => action "escape" (10)
key_up (273) => action "up" (3)
did not find action for "skip_right"
key_backspace (8) => action "back" (6)
did not find action for "secondary"
key_return (13) => action "primary" (5)
1 MOUSE
get system config for device: mouse_0_0_0_0_macosx
config file for mouse_0_0_0_0_macosx was not found
did not find menu config for device "mouse_0_0_0_0_macosx"
get system config for device: mouse
read config for mouse for menu (from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input/generic/mouse.ini)
no config for platform menu
did not find menu config for device "mouse"
2 Apple Keyboard
get system config for device: apple_keyboard_0_0_0_0_macosx
config file for apple_keyboard_0_0_0_0_macosx was not found
did not find menu config for device "apple_keyboard_0_0_0_0_macosx"
get system config for device: apple_keyboard
config file for apple_keyboard was not found
did not find menu config for device "apple_keyboard"
3 Optical USB Mouse
get system config for device: optical_usb_mouse_0_0_0_0_macosx
config file for optical_usb_mouse_0_0_0_0_macosx was not found
did not find menu config for device "optical_usb_mouse_0_0_0_0_macosx"
get system config for device: optical_usb_mouse
config file for optical_usb_mouse was not found
did not find menu config for device "optical_usb_mouse"
fs_emu_audio_init
openal_audio_init
openal device opened: Built-in Audio
openal version: 1.1
openal renderer: Software
openal vendor: Apple Computer Inc.
openal extensions: AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE AL_EXT_float32 AL_EXT_STATIC_BUFFER
openal devices:
- Built-in Audio
openal default device: Built-in Audio
openal: trying frequency 48000
openal: created context
openal: made context current
openal: number of stereo sources is 70649872
fs_ml_video_create_window
keyboard input grab: 305419896
FS-UAE was compiled for SDL 2.0.1
defaulting to fullscreen_mode = desktop for SDL2
automatic input grab: 1
using windowed mode
setting (windowed) video mode 960 540
SDL_CreateWindow(x=805240832, y=805240832, w=960, h=540, flags=34)
opengl vendor: ATI Technologies Inc.
opengl renderer: ATI Radeon X800 Pro OpenGL Engine
opengl version: 2.0 ATI-1.5.48
opengl shading language version: 1.20
opengl extensions: GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_shadow_ambient GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_EXT_compiled_vertex_array GL_EXT_framebuffer_object GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_separate_specular_color GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_blend_square GL_NV_fog_distance GL_ATI_texture_mirror_once GL_ATI_text_fragment_shader GL_ATI_blend_equation_separate GL_ATI_blend_weighted_minmax GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGI_color_matrix 
opengl max texture size (estimate): 2048x2048
*** Setting swap interval to 0 ***
initial input grab: 1
init_opengl
fs_emu_video_init_opengl
setup_opengl
WARNING: Could not find resource sidebar_edge.png

WARNING: Could not find resource sidebar.png

WARNING: Could not find resource gloss.png

WARNING: Could not find resource glow_left.png

WARNING: Could not find resource glow_top.png

WARNING: Could not find resource glow_top_left.png

WARNING: Could not find resource close.png

WARNING: Could not find resource volume.png

WARNING: Could not find resource volume_muted.png

WARNING: Could not find resource aspect.png

WARNING: Could not find resource stretch.png

WARNING: Could not find resource item_background.png

WARNING: Could not find resource top_item_background.png

WARNING: Could not find resource heading_strip.png

WARNING: Could not find resource pause_indicator.png

initializing menu
load font /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/title_font.png
loading image "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/title_font.png"
font height: 32 pixels
256 characters
load font /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/menu_font.png
loading image "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/menu_font.png"
font height: 32 pixels
512 characters
fs_emu_xml_shader_init
create windows is done
fs_uae_init_recording
not running in record mode
initializing audio stream 0
frequency: 48000, buffers: 48 buffer size: 512 bytes
openal error 40962 (alGenSources)
audio buffer target size (ms) = 40
audio buffer target size (bytes) = 7680
initializing audio stream 1
frequency: 44100, buffers: 48 buffer size: 28224 bytes
openal error 40962 (alGenSources)
adding rtg resolution 672x540
adding rtg resolution 1344x1080
adding rtg resolution 960x540
adding rtg resolution 1280x960
fs_uae_init_video
fs_uae_configure_menu
fs_emu_menu_set_current 0x1c301810
fs_emu_run, main_function at 0x181050
emulation thread started
main function at 0x181050
amiga_main
KB: keyboard_settrans
checking OpenGL capabilities
GL_APPLE_fence extension found
deciding video sync method
- using default sync method
- SYNC_FINISH_SLEEP_SWAP_FINISH
target_default_options p=0x341e73c type=0
target_default_options: enabling floppy sounds
 -- stub -- target_save_options zfile=0x1c305110 p=0x341e73c

built_in_chipset_prefs

(etc.)
SnakeCoils is offline  
Old 11 August 2014, 17:43   #10
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
The loader (for fs-uae.dat) is not big-endian-friendly. Actually, there was an #error to catch that case (so the code shouldn't even have compiled), but config.h was not included, and so the check didn't trigger.

Anyway, I'll make the code work for both little-endian and big-endian CPU
FrodeSolheim is offline  
Old 12 August 2014, 10:18   #11
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
This is a really great news! :-) Thank you very VERY much Frode, I and the PPC Mac user community still alive we appriciate every effort in not leaving our machines in the dust.
Great Nice Work!
SnakeCoils is offline  
Old 14 August 2014, 18:37   #12
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Please test the newly released 2.5.11dev version

I've also made some other changes for you/ppc in addition to big-endian support for loading of fs-uae.dat, so you can (hopefully) compile the latest version:
* Can configure with --disable-cpuboard --disable-ppc.
* Configure script checks if -fno-strict-overflow is recognized.
FrodeSolheim is offline  
Old 17 August 2014, 20:17   #13
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
Just finished my summer holidays and back to the FS-UAE OSX PPC thing :-)
After downloaded the 2.5.11dev source I compiled it following your instructions but the "Not found PNG" errors at startup are still here.
The log for this issue is the following:

Code:
FS-UAE VERSION 2.5.11dev
Copyright 1995-2002 Bernd Schmidt, 1999-2014 Toni Wilen,
2003-2007 Richard Drummond, 2006-2011 Mustafa 'GnoStiC' Tufan,
2011-2014 Frode Solheim, and contributors.

This is free software; see the file COPYING for copying conditions. There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the README for more copyright info, and the source code for
a full list of contributors

current directory is /
libamiga (based on emulation core from WinUAE 2.9.0 beta 10) initialized
OS X: Check for pending SDL_DROPFILE event

----------------------------------------------------------------------------
libfsemu init
----------------------------------------------------------------------------

fs_emu_init
current time() is: 1408298829
localtime+timegm:  -1
localtime+mktime:  1408298829
time of day:       1408298829 + (319435 / 1000000)
localtime offset:  7200
calling fs_ml_init
fs_ml_init (operating system: macosx)
initialize dialog module
load config file
- using $exe directory "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS"
checking config file /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/Config.fs-uae
checking config file /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../../Config.fs-uae
checking config file Config.fs-uae
checking config file fs-uae.conf
checking config file /Users/andrea/Library/Preferences/fs-uae/fs-uae.conf
- checking /Users/andrea/Library/Preferences/fs-uae/configurations-dir
- checking /Users/andrea/Library/Preferences/fs-uae/base-dir
- using base dir $DOCUMENTS/FS-UAE
- using documents directory "/Users/andrea/Documents"
- using base ($BASE / $FSUAE) directory "/Users/andrea/Documents/FS-UAE"
resolve_path /Users/andrea/Documents/FS-UAE/Configurations (absolute)
- using "Configurations" directory "/Users/andrea/Documents/FS-UAE/Configurations"
checking config file /Users/andrea/Documents/FS-UAE/Configurations/Default.fs-uae
checking config file /Users/andrea/Documents/FS-UAE/Configurations/Host.fs-uae
locale is set to it_IT
using data dir "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/share-dir"
using locale dir "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/locale"

----------------------------------------------------------------------------
fs-uae init
----------------------------------------------------------------------------

configure logging: none
- checking /Users/andrea/Library/Preferences/fs-uae/kickstarts-dir
resolve_path /Users/andrea/Documents/FS-UAE/Kickstarts (absolute)
- using "Kickstarts" directory "/Users/andrea/Documents/FS-UAE/Kickstarts"
- checking /Users/andrea/Library/Preferences/fs-uae/floppies-dir
resolve_path /Users/andrea/Documents/FS-UAE/Floppies (absolute)
- using "Floppies" directory "/Users/andrea/Documents/FS-UAE/Floppies"
- checking /Users/andrea/Library/Preferences/fs-uae/cdroms-dir
resolve_path /Users/andrea/Documents/FS-UAE/CD-ROMs (absolute)
- using "CD-ROMs" directory "/Users/andrea/Documents/FS-UAE/CD-ROMs"
- checking /Users/andrea/Library/Preferences/fs-uae/hard-drives-dir
resolve_path /Users/andrea/Documents/FS-UAE/Hard Drives (absolute)
- using "Hard Drives" directory "/Users/andrea/Documents/FS-UAE/Hard Drives"
Initializing plugins
- checking /Users/andrea/Library/Preferences/fs-uae/plugins-dir
resolve_path /Users/andrea/Documents/FS-UAE/Plugins (absolute)
- using "Plugins" directory "/Users/andrea/Documents/FS-UAE/Plugins"
Warning: could not open plugins dir
fs_uae_configure_amiga_model
using PAL mode (50Hz)
fs_emu_set_video_frame_rate: 50
g_fs_emu_video_sync_to_vblank = 0
WARNING: unknown amiga config specified, using A500
fs_uae_state_dir:
- checking /Users/andrea/Library/Preferences/fs-uae/save-states-dir
resolve_path /Users/andrea/Documents/FS-UAE/Save States (absolute)
- using "Save States" directory "/Users/andrea/Documents/FS-UAE/Save States"
save_states_dir: /Users/andrea/Documents/FS-UAE/Save States
save_dir_name not set, using Default
- using state dir /Users/andrea/Documents/FS-UAE/Save States/Default
final state dir path: /Users/andrea/Documents/FS-UAE/Save States/Default
- checking /Users/andrea/Library/Preferences/fs-uae/controllers-dir
resolve_path /Users/andrea/Documents/FS-UAE/Controllers (absolute)
- using "Controllers" directory "/Users/andrea/Documents/FS-UAE/Controllers"
- checking /Users/andrea/Library/Preferences/fs-uae/logs-dir
resolve_path /Users/andrea/Documents/FS-UAE/Cache/Logs (absolute)
- using "Cache/Logs" directory "/Users/andrea/Documents/FS-UAE/Cache/Logs"
switch to log file /Users/andrea/Documents/FS-UAE/Cache/Logs/fs-uae.log.txt
- checking /Users/andrea/Library/Preferences/fs-uae/themes-dir
resolve_path /Users/andrea/Documents/FS-UAE/Themes (absolute)
- using "Themes" directory "/Users/andrea/Documents/FS-UAE/Themes"
themes_dir = /Users/andrea/Documents/FS-UAE/Themes
fs_emu_init_2
fs_emu_theme_init
loading theme ""
fs_emu_video_init
full-scene anti-aliasing is not requested
current display mode is 1280x960 @ 60 Hz
checking video sync mode
not specified: no video sync
no video sync (using timers only)
using default video format BGRA
using default texture format
fs_emu_init_render
scale: -1.00 -1.00 align: 0.50 0.50
calling fs_ml_init_2
assuming refresh rate: 60 (16666 usec per frame)
fs_ml_input_init
calling fs_ml_video_init
creating condition
creating mutex
fs_ml_mouse_init
- adding system mouse
ManyMouse: (c) 2005-2012 Ryan C. Gordon
ManyMouse: thread running
- adding Apple Keyboard (Mac OS X 10.5+ HID Manager)
- adding Optical USB Mouse (Mac OS X 10.5+ HID Manager)
num joystick devices: 0
read config
fs_emu_input_init
init_input_configs
reading input device configs from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input
reading input device configs from /Users/andrea/Documents/FS-UAE/Controllers
initializing devices for menu
0 KEYBOARD
get system config for device: keyboard_0_0_0_0_macosx
config file for keyboard_0_0_0_0_macosx was not found
did not find menu config for device "keyboard_0_0_0_0_macosx"
get system config for device: keyboard
read config for keyboard for menu (from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input/generic/keyboard.ini)
key_down (274) => action "down" (4)
did not find action for "skip_left"
key_left (276) => action "left" (1)
key_right (275) => action "right" (2)
key_escape (27) => action "escape" (10)
key_up (273) => action "up" (3)
did not find action for "skip_right"
key_backspace (8) => action "back" (6)
did not find action for "secondary"
key_return (13) => action "primary" (5)
1 MOUSE
get system config for device: mouse_0_0_0_0_macosx
config file for mouse_0_0_0_0_macosx was not found
did not find menu config for device "mouse_0_0_0_0_macosx"
get system config for device: mouse
read config for mouse for menu (from /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/input/generic/mouse.ini)
no config for platform menu
did not find menu config for device "mouse"
2 Apple Keyboard
get system config for device: apple_keyboard_0_0_0_0_macosx
config file for apple_keyboard_0_0_0_0_macosx was not found
did not find menu config for device "apple_keyboard_0_0_0_0_macosx"
get system config for device: apple_keyboard
config file for apple_keyboard was not found
did not find menu config for device "apple_keyboard"
3 Optical USB Mouse
get system config for device: optical_usb_mouse_0_0_0_0_macosx
config file for optical_usb_mouse_0_0_0_0_macosx was not found
did not find menu config for device "optical_usb_mouse_0_0_0_0_macosx"
get system config for device: optical_usb_mouse
config file for optical_usb_mouse was not found
did not find menu config for device "optical_usb_mouse"
fs_emu_audio_init
openal_audio_init
openal device opened: Built-in Audio
openal version: 1.1
openal renderer: Software
openal vendor: Apple Computer Inc.
openal extensions: AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE AL_EXT_float32 AL_EXT_STATIC_BUFFER
openal devices:
- Built-in Audio
openal default device: Built-in Audio
openal: trying frequency 48000
openal: created context
openal: made context current
openal: number of stereo sources is 71762384
fs_ml_video_create_window
keyboard input grab: 305419896
FS-UAE was compiled for SDL 2.0.1
defaulting to fullscreen_mode = desktop for SDL2
automatic input grab: 1
using windowed mode
setting (windowed) video mode 960 540
SDL_CreateWindow(x=805240832, y=805240832, w=960, h=540, flags=34)
opengl vendor: ATI Technologies Inc.
opengl renderer: ATI Radeon X800 Pro OpenGL Engine
opengl version: 2.0 ATI-1.5.48
opengl shading language version: 1.20
opengl extensions: GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_shadow_ambient GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_EXT_compiled_vertex_array GL_EXT_framebuffer_object GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_separate_specular_color GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_blend_square GL_NV_fog_distance GL_ATI_texture_mirror_once GL_ATI_text_fragment_shader GL_ATI_blend_equation_separate GL_ATI_blend_weighted_minmax GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGI_color_matrix 
opengl max texture size (estimate): 2048x2048
*** Setting swap interval to 0 ***
initial input grab: 1
init_opengl
fs_emu_video_init_opengl
setup_opengl
WARNING: Could not find resource sidebar_edge.png

WARNING: Could not find resource sidebar.png

WARNING: Could not find resource gloss.png

WARNING: Could not find resource glow_left.png

WARNING: Could not find resource glow_top.png

WARNING: Could not find resource glow_top_left.png

WARNING: Could not find resource close.png

WARNING: Could not find resource volume.png

WARNING: Could not find resource volume_muted.png

WARNING: Could not find resource aspect.png

WARNING: Could not find resource stretch.png

WARNING: Could not find resource item_background.png

WARNING: Could not find resource top_item_background.png

WARNING: Could not find resource heading_strip.png

WARNING: Could not find resource pause_indicator.png

initializing menu
load font /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/title_font.png
loading image "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/title_font.png"
font height: 32 pixels
256 characters
load font /Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/menu_font.png
loading image "/Applications/Emulatori/Amiga/FS-UAE.app/Contents/MacOS/../Resources/fs-uae/menu_font.png"
font height: 32 pixels
512 characters
fs_emu_xml_shader_init
create windows is done
fs_uae_init_recording
not running in record mode
(etc.)
Also I have tried to build this release without omitting the Amiga PPC part and the only point where the build breaks is the following:

Code:
(...)
depbase=`echo src/ppc/pearpc/cpu/cpu_generic/ppc_opc.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -DHAVE_CONFIG_H -I.  -DMACOSX -DFSUAE -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./libfsemu/include -I./glee -I./manymouse -I./src/ppc/pearpc -I./src/slirp/include -I./libudis86/include  -I./libmpeg2/include  -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -DLUA_USE_POSIX -I/opt/local/Library/Frameworks/OpenAL.framework/Versions/A/Headers  -I/opt/local/include/libpng16  -I/Library/Frameworks/SDL2.framework/Versions/A/Headers -I/opt/local/include     -g -O2 -MT src/ppc/pearpc/cpu/cpu_generic/ppc_opc.o -MD -MP -MF $depbase.Tpo -c -o src/ppc/pearpc/cpu/cpu_generic/ppc_opc.o src/ppc/pearpc/cpu/cpu_generic/ppc_opc.cpp &&\
	mv -f $depbase.Tpo $depbase.Po
src/ppc/pearpc/cpu/cpu_generic/ppc_opc.cpp:690: error: integer constant is too large for ‘long’ type
make[3]: *** [src/ppc/pearpc/cpu/cpu_generic/ppc_opc.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [bundle] Error 2
The previous parts were OK.

Anyway, many thanks again for the active support! :-)

Edit: I have just uploaded the freshly build 2.5.11dev version for OSX PPC in the Zone

Last edited by SnakeCoils; 17 August 2014 at 20:52. Reason: Added download infos
SnakeCoils is offline  
Old 17 August 2014, 20:30   #14
ppcamiga1
Banned
 
Join Date: Jul 2014
Location: Vienna/Austria
Posts: 15
What about jit?
Are there any chances of adding jit to ppc emulation?
ppcamiga1 is offline  
Old 17 August 2014, 21:58   #15
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by SnakeCoils View Post
...I compiled it following your instructions but the "Not found PNG" errors at startup are still here.
I reviewed the code and found two places with missing byte swap. Please try modifying the two lines in question and recompile:

Code:
--- a/fs-uae/libfsemu/src/data.c
+++ b/fs-uae/libfsemu/src/data.c
@@ -99,13 +99,13 @@ int read_zip_entries (FILE *f) {
         // no signature found, not a zip file
         return ERROR_EOCDR_SIG;
     }
-    if (eocdr.num_entries > 8192) {
+    if (le16toh(eocdr.num_entries) > 8192) {
         return ERROR_EOCDR_ENTRIES;
     }
 
     pos = le32toh(eocdr.central_directory_offset);
     central_file_header cfh;
-    for (int i = 0; i < eocdr.num_entries; i++) {
+    for (int i = 0; i < le16toh(eocdr.num_entries); i++) {
         // printf("reading zip entry %d from position %d\n", i, pos);
         if (fseek(f, pos, SEEK_SET) != 0) {
             return ERROR_CFH_SEEK;
Quote:
Originally Posted by SnakeCoils View Post
Also I have tried to build this release without omitting the Amiga PPC part and the only point where the build breaks is the following
I'm not that interested in altering the PPC emulation code to make it work on PPC, as the feature isn't really that important, and I have no easy way to test that/if it works. If someone else creates clean patches I can apply, that's quite another ting

Quote:
Originally Posted by ppcamiga1 View Post
What about jit? Are there any chances of adding jit to ppc emulation?
There a chance that PPC emulation will get JIT eventually, but that does not automatically mean PPC hosts will be supported... :-/
FrodeSolheim is offline  
Old 17 August 2014, 23:17   #16
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
Excellent work, the patched source worked as expected, no more missing PNG error messages at startup so it can be happily included in the next dev release ;-)
The only remaining issue is the @rpath error in the python script that makes the bundle (see post #7) but I am (again) really happy with the actual binary.
I am going to re-upload the fixed binary in The Zone.
SnakeCoils is offline  
Old 19 August 2014, 12:47   #17
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
The recent 2.5.12dev does not build, i have made the usual steps that are:

export SDL2_CFLAGS="-I/Library/Frameworks/SDL2.framework/Versions/A/Headers"
export SDL2_LIBS="-F/Library/Frameworks -framework SDL2"
export OPENAL_CFLAGS="-I/opt/local/Library/Frameworks/OpenAL.framework/Versions/A/Headers"
export OPENAL_LIBS="-F/opt/local/Library/Frameworks -framework OpenAL"
./configure --disable-cpuboard --disable-ppc
cd macosx
make

and the build process hangs here:

Code:
(...)
	gcc -DHAVE_CONFIG_H -I.  -DMACOSX -DFSUAE -I./gen -I./src -I./src/jit -I./src/include -I./src/od-fs -I./src/od-fs/include -I./src/od-win32 -I./libfsemu/include -I./glee -I./manymouse  -I./src/slirp/include -I./libudis86/include  -I./libmpeg2/include  -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -DLUA_USE_POSIX -I/opt/local/Library/Frameworks/OpenAL.framework/Versions/A/Headers  -I/opt/local/include/libpng16  -I/Library/Frameworks/SDL2.framework/Versions/A/Headers -I/opt/local/include     -std=gnu99 -g -O2 -MT src/fs-uae/video.o -MD -MP -MF $depbase.Tpo -c -o src/fs-uae/video.o src/fs-uae/video.c &&\
	mv -f $depbase.Tpo $depbase.Po
g++ -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -DLUA_USE_POSIX -I/opt/local/Library/Frameworks/OpenAL.framework/Versions/A/Headers  -I/opt/local/include/libpng16  -I/Library/Frameworks/SDL2.framework/Versions/A/Headers -I/opt/local/include     -g -O2 -headerpad_max_install_names -pagezero_size 0x2000  -o fs-uae src/fs-uae/config.o src/fs-uae/input.o src/fs-uae/joystick.o src/fs-uae/keyboard.o src/fs-uae/main.o src/fs-uae/menu.o src/fs-uae/mouse.o src/fs-uae/paths.o src/fs-uae/plugins.o src/fs-uae/recording.o src/fs-uae/uae_config.o src/fs-uae/video.o   libuae.a libcpuemu.a libfsemu.a libglee.a libmanymouse.a  libslirp.a libudis86.a  libmpeg2/libmpeg2/.libs/libmpeg2.a libmpeg2/libmpeg2/convert/.libs/libmpeg2convert.a -lm -ldl  -framework Carbon -L/opt/local/lib -lfreetype  -L/opt/local/lib -lgthread-2.0 -lglib-2.0 -lintl  -framework IOKit -F/opt/local/Library/Frameworks -framework OpenAL -framework OpenGL -L/opt/local/lib -lpng16  -F/Library/Frameworks -framework SDL2 -L/opt/local/lib -lz  
Undefined symbols:
  "cpuboard_blizzardram(uae_prefs*)", referenced from:
      expamem_z3hack(uae_prefs*)     in libuae.a(expansion.o)
      init_shm()    in libuae.a(mman.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [fs-uae] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [bundle] Error 2
maybe this part is not handled by the configure declaration?
SnakeCoils is offline  
Old 19 August 2014, 21:14   #18
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
The "problem" is just that --disable-cpuboard --disable-ppc isn't really used anywhere else, so when changes to the source code are made, they may not work with this combination.

In this case, it was changes from a newer WinUAE beta (which does not even have the WITH_CPUBOARD define...), and a change there must be protected by #ifdef WITH_CPUBOARD...

Or, just get pearpc to compile instead (probably better long-term anyway, whether pearpc works on PPC or not).
FrodeSolheim is offline  
Old 20 August 2014, 14:04   #19
SnakeCoils
Registered User
 
Join Date: Mar 2014
Location: Italy
Posts: 164
Maybe your suggested second solution could be the right way, It would also be interesting to see how well perform a PPC-on-PPC emulator :-)
SnakeCoils is offline  
Old 20 August 2014, 20:36   #20
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
If you download the latest source from git: https://github.com/FrodeSolheim/fs-uae - then you should be able to compile with --disable-cpuboard --disable-ppc again.

Note, I'm not going to do anything about the PPC/PearPC code. I cannot even test the changes. But making that bit compile would as I said make it more likely that the next development versions work out of the box as I don't really use --disable-cpuboard --disable-ppc myself.
FrodeSolheim is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
FS-UAE for G4 ppc OSX 10.5.8 elowan support.FS-UAE 35 10 November 2014 19:22
[QUESTION] Will we see PPC support in FS-UAE too? amigafreak68k support.FS-UAE 39 09 September 2014 22:28
JIT on E-UAE PPC? _ThEcRoW support.OtherUAE 8 06 May 2011 23:55
PPC Emulation in UAE Beakster support.WinUAE 9 15 March 2008 11:28
PPC UAE on os 3.9 DDNI request.UAE Wishlist 7 26 October 2006 19:09

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:09.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.15109 seconds with 14 queries