Closed michael-p closed 9 years ago
I have been able to recreate the issue on OSX 10.9. This functionality works as expected on Unix but apparently not on mac. Thanks for pointing this out, I'll look into fixing it!
A short term fix which got this working for me:
Add to sharedLibraryInterfaceExample.cpp:
And use the following make command: bash-3.2$ g++ -I../../src -L../.. sharedLibraryInterfaceExample.cpp -framework Cocoa -lale -lz -lSDL -lSDLmain -lSDL_gfx -lSDL_image -o sharedLibraryInterfaceExample
I'll look into some longer term better solutions, but let me know if this fixes things for you.
The fix works, thank you very much! I also tested it on OSX 10.8 and it's the same situation there (not working initially but the fix does the job).
The dev branch of ALE addresses this issue with a new sharedLibraryInterfaceExample and Makefile.sharedlibrary.
Dear all,
I modified sharedLibraryInterfaceExample.cpp in docs/examples by adding the line
directly before calling
loadRom
in order to display the emulator screen using SDL. However, the program crashes with the following error:Running the ALE-binary with -display_screen true works fine. Any ideas what might be going on here? Is displaying the screen through ALEInterface not yet supported?
Thanks Michael