Kashyap: Under MinGW32 miniPicoLisp fails to build without two tweaks to the Makefile:
1. Remove the -lc switch in this line: *$(CC) -o $(bin)/picolisp $(picoFiles:.c=.o) -lc -lm* 2. After doing the above an executable will be produced, but the *strip* command in the line after that will also fail because under MinGW the output file is given an ".exe" filename extension. You can either add it to the Makefile or just run *strip picolisp.exe* manually (which takes the resulting file down to 170K from 331K, so it is worth it). As an alternative to miniPicoLisp on Windows you may want to consider using *ersatz*, the Java-based PicoLisp variant (thanks Alex!). The provided jar file works fine under Windows, and it can be rebuilt from source there too. The "non-Unix" command to run it in the README works on Windows (using semicolon delimiters), but when you run ersatz from Linux you have to use colons instead: java -DPID=42 -cp .;tmp;picolisp.jar PicoLisp lib.l *(Windows)* java -DPID=42 -cp .:tmp:picolisp.jar PicoLisp lib.l *(Linux)* On Windows the Oracle JRE/JDK works fine. On Linux for openjdk 8 these packages are needed: *openjdk-8-jdk, openjdk-8-jdk-headerless, openjdk-8-jre, openjdk-8-jre-headerless*. Regards, rcs On Mon, Feb 4, 2019 at 10:24 AM C K Kashyap <[email protected]> wrote: > Hi Alex, > I wonder if libuv can substitute for POSIX? > Has there been any work in that direction? > Regards, > Kashyap > > On Sun, Feb 3, 2019 at 11:47 PM Alexander Burger <[email protected]> > wrote: > >> On Sun, Feb 03, 2019 at 10:25:13PM -0500, r cs wrote: >> > I've personally built PicoLisp under MinGW-32 on Windows 7, copied the >> EXE >> > from where I built it in msys under >> /MinGW/msys/1.0/home/myUser/picoLisp/src >> > to some place else on the system, and then just run it from a command >> > prompt. Using *make* is also a lot less work than dealing with an >> IDE. I >> > only use '32 because it is easy to install and I've been using it for >> > years, but the newer '64 should work the same way. >> >> You mean miniPicoLisp, right? Because neither pil32 nor pil64 can run >> under >> native Windows. They depend on POSIX. >> >> ☺/ A!ex >> >> -- >> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe >> > -- *Níl aon tinteán mar do thinteán féin. *[Irish Gaelic] (There is no fireside like your own fireside.)
