i have been asked if
> Does freepascal start foreign code in a separate process? Without reopening stdout?
---
Hi TRon
I/O channels depend on how things were build, see
https://gist.github.com/houmei/cfd9e570b8de4d8fd55ada228d5ff004#file-readme-2-configurecompiling libapl --with-android made no difference-
-
'Official GNU sources for apl do not compile on my setup (debian gcc 12.2). Official GNU apl .deb does not seem to include libapl.'
this is what i thought was the situation
I would be glad to help you compile apl and libapl i am on a 'debian' system with gcc-12.2.0 also
this is the svn line
svn co
https://svn.savannah.gnu.org/svn/apl/trunk apl
you need to compile apl and libapl separately
for apl
configure --without-gtk3 --without-sqlite3 --without-postgresql --without-pcre
make
make install
type 'apl' abd then 2+2 )off to exit you will need apl keyboard and apl font we can do them after things work
for libapl
configure --with-libapl --without-gtk3 --without-sqlite3 --without-postgresql --without-pcre
make
make install
check if /usr/local/lib/apl/libapl.[a la so] have been created
you need to edit /etc/ld.so.conf and put the line /usr/local/lib/apl in it
ldconfig
this is example ;ibapl/c code
// libapl.c compile with : g++ -O2 libapl.c -o libapl -L /usr/local/lib/apl -lapl
#include <stdio.h>
#include <stdlib.h>
#include <apl/libapl.h>
int main (int argc, char * argv[])
{
init_libapl(argv[0], 0);
apl_exec("2+2");
return 0;
}
i had to edit some source files to make libapl work - lets see if your system causes problems before we edit them
i have also edited files to change locations of default apl config files etc - lets see what happens with default compiles and installation and if you want to use what i have done
let me know how this goes