PSP2SHELL/psp2shell_cli/source/main.c:8:31: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^
The solution is indicating in the readme that the projects depends on libreadline
on my Linux Mint I've solved by running:
sudo apt-get install libreadline-dev
there are now a couple of errors while compiling:
first issue:
17: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < num_tokens; i++) {
^
can be solved by adding the -std=c99 C_FLAGS to the CMakeFiles/psp2shell_cli.dir/flags.make file (it would be a good idea to add it to the generator though),
this now shows a bunch of warnings because of usage of implicit function declarations (which I silenced using -Wno-implicit-function-declaration but should probably be fixed) and a second problem:
PSP2SHELL/psp2shell_cli/source/main.c:256:5: error: unknown type name ‘fd_set’
fd_set fds;
^
which can be solved by adding
in the main.c file
finally in my machine I found this error:
/PSP2SHELL/common/source/binn.c:36:28: fatal error: machine/endian.h: No such file or directory
#include <machine/endian.h>
^
which I "solved" by commenting out the
#include <machine/endian.h>
in the binn.c file
this allows me to compile (not sure if it works though as I haven't try it yet)
PSP2SHELL/psp2shell_cli/source/main.c:8:31: fatal error: readline/readline.h: No such file or directory #include <readline/readline.h> ^The solution is indicating in the readme that the projects depends on libreadline
on my Linux Mint I've solved by running:
there are now a couple of errors while compiling:
first issue:
can be solved by adding the
-std=c99C_FLAGSto theCMakeFiles/psp2shell_cli.dir/flags.makefile (it would be a good idea to add it to the generator though),this now shows a bunch of warnings because of usage of implicit function declarations (which I silenced using
-Wno-implicit-function-declarationbut should probably be fixed) and a second problem:which can be solved by adding
in the
main.cfilefinally in my machine I found this error:
/PSP2SHELL/common/source/binn.c:36:28: fatal error: machine/endian.h: No such file or directory #include <machine/endian.h> ^which I "solved" by commenting out the
in the
binn.cfilethis allows me to compile (not sure if it works though as I haven't try it yet)