digarok / gsplus

Modern cross-platform Apple IIgs emulator and tools based on KEGS

Home Page:http://apple2.gs/plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't install GSPLUS on a Raspeery Pi 3+

booskop opened this issue · comments

Attention I am a beginner, but interested in the apple II Gs.
Gsplus works but not very good with Catalina on mac floppy disk management 3.5 so I can not install Gsplus with Raspbian "Buster" there is a problem with "make" or "cmake" and if I want to install the package it there is an error with the instaleur. A complete image for Raspberry would be a good idea for the neophytes. thank you

always this
[ 1%] Building C object bin/CMakeFiles/x_readline.dir/readline.c.o
/home/pi/gsplus/src/readline.c:90:10: fatal error: readline/readline.h: Aucun fichier ou dossier de ce type
#include <readline/readline.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [bin/CMakeFiles/x_readline.dir/build.make:63: bin/CMakeFiles/x_readline.dir/readline.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:102: bin/CMakeFiles/x_readline.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

install the libreadline-dev package :)

Thank you for your Help. i did it
but i got this :

pi@raspberrypi:/RetroPie-Setup/gsplus/src $ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/RetroPie-Setup/gsplus/src
pi@raspberrypi:
/RetroPie-Setup/gsplus/src $ make
[ 5%] Built target x_readline
[ 5%] Generating debug_shell.c
/bin/sh: 1: re2c: not found
bin/CMakeFiles/GSplus.dir/build.make:61: recipe for target 'bin/debug_shell.c' failed
make[2]: *** [bin/debug_shell.c] Error 127
CMakeFiles/Makefile2:133: recipe for target 'bin/CMakeFiles/GSplus.dir/all' failed
make[1]: *** [bin/CMakeFiles/GSplus.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/RetroPie-Setup/gsplus/src $

install the re2c package :)

Thank's and now i get this :
-- Build files have been written to: /home/pi/RetroPie-Setup/gsplus/src
pi@raspberrypi:~/RetroPie-Setup/gsplus/src $ make
Scanning dependencies of target x_readline
[ 1%] Building C object bin/CMakeFiles/x_readline.dir/readline.c.o
[ 3%] Linking C static library libx_readline.a
[ 3%] Built target x_readline
[ 5%] Generating size_c.h, size_s.h, 8size_s.h, 16size_s.h
[ 6%] Generating debug_shell.c
Error in argument 1, char 2: option not found W
usage: re2c [-bcdDefFghirsuvVw1] [-o of] [-t th] file

-? -h --help Display this info.

bin/CMakeFiles/GSplus.dir/build.make:61: recipe for target 'bin/debug_shell.c' failed
make[2]: *** [bin/debug_shell.c] Error 2
CMakeFiles/Makefile2:133: recipe for target 'bin/CMakeFiles/GSplus.dir/all' failed
make[1]: *** [bin/CMakeFiles/GSplus.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/RetroPie-Setup/gsplus/src $

the re2c -W flag was added in version 0.15 (2015-11-22) so stretch and buster should have a new enough version of re2c. The cmake file should also check for re2c and giave an error if it couldn't be found so that's a little odd too.

Try deleting the -W flag from the commands here:

gsplus/src/CMakeLists.txt

Lines 103 to 126 in 4805720

add_custom_command(
OUTPUT debug_shell.c
COMMAND re2c -W -o ${CMAKE_CURRENT_BINARY_DIR}/debug_shell.c "${CMAKE_CURRENT_SOURCE_DIR}/debug_shell.re2c"
MAIN_DEPENDENCY debug_shell.re2c
)
add_custom_command(
OUTPUT debug_template.c
COMMAND re2c -W -o ${CMAKE_CURRENT_BINARY_DIR}/debug_template.c "${CMAKE_CURRENT_SOURCE_DIR}/debug_template.re2c"
MAIN_DEPENDENCY debug_template.re2c
)
add_custom_command(
OUTPUT debug_sweet16.c
COMMAND re2c -W -o ${CMAKE_CURRENT_BINARY_DIR}/debug_sweet16.c "${CMAKE_CURRENT_SOURCE_DIR}/debug_sweet16.re2c"
MAIN_DEPENDENCY debug_sweet16.re2c
)
add_custom_command(
OUTPUT debug_miniasm.c
COMMAND re2c -W -o ${CMAKE_CURRENT_BINARY_DIR}/debug_miniasm.c "${CMAKE_CURRENT_SOURCE_DIR}/debug_miniasm.re2c"
MAIN_DEPENDENCY debug_miniasm.re2c
)

I progress with your help
Now Gs plus is on but problem with the display i get this 👍


| || | | |
| | __ | |
|
|
| | | ||
_ | ||
| |__| | _____| |
|
||_|

GSplus v0.14   

2019-12-02 16:34:55 - Trying config file 'config.txt'
2019-12-02 16:34:55 - Parsing configuration file 'config.txt'
2019-12-02 16:34:55 - Option set [file]: line 11, len:17 "g_cfg_rom_path = "
2019-12-02 16:34:55 - Option set [file]: line 12, len:17 "g_limit_speed = 3"
2019-12-02 16:34:55 - Unable to load font lib/letgothl.ttf
2019-12-02 16:34:55 - Read 131072 bytes (128K) of ROM
2019-12-02 16:34:55 - RAM size is 8650752 bytes (8.25MB)
2019-12-02 16:34:55 - Could not create window: Could not get EGL display
2019-12-02 16:34:55 - **--- SDL DEBUG ------ (3) drivers
2019-12-02 16:34:55 - * 'opengles2'
2019-12-02 16:34:55 - * 'opengles'
2019-12-02 16:34:55 - * 'software'
2019-12-02 16:34:55 - NO Renderinfo
2019-12-02 16:34:55 - SDL2 audio initialized
2019-12-02 16:34:55 - SDL2 opened audio device: 2
2019-12-02 16:34:55 - SDL2 sound shared memory size=131072
2019-12-02 16:34:55 - SDL2 joystick initialized
2019-12-02 16:34:55 - No joysticks detected
2019-12-02 16:34:55 - Writing configuration file to config.txt
2019-12-02 16:34:58 - Disabling keyboard/mouse:01!
unknown twgs speed:65535
unknown twgs speed:65535
unknown twgs speed:65535
2019-12-02 16:35:05 - Pausing sound
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred

somes precisions
i use raspbian Buster i have installed
Cmake, libreadline-dev, re2c, and libgles2-mesa-dev