Hi Adrian,
> I have pushed an update to the build.
>
> When building for Windows the two extra libraries are automatically
> linked.
Going to FreeGlut 3.4.0 have managed to be able to create the static
executables (.exe files) in Ubuntu for use in Windows. This is the
configure statement I used, and the static freeglut library was copied
as libfreeglut.a
CXX="x86_64-w64-mingw32-g++ -I/home/roger/freeglut-3.4.0/include
-L/home/roger/freeglut-3.4.0/cross-woe/lib -DFREEGLUT_STATIC \
-Wall -Wextra -static -static-libgcc -static-libstdc++ -Wl,-Bstatic
-lstdc++ -lpthread" \
./configure --host=x86_64-w64-mingw32 --with-freeglut
I'm not going to wait for Microsoft to solve the performance problem
with WSL2. So I did the procedure (option 3) to use C:/lhome as the home
directory external to WSL.
https://superuser.com/questions/1727140/wsl-2-0-ubuntu-relocating-home-directory
In kind, I also pointed Cygwin64 home to the same directory in
/etc/nsswitch.conf, although the end game is not to have to used Cygwin.
https://stackoverflow.com/questions/1494658/how-can-i-change-my-cygwin-home-folder-after-installation
Now I want to install antiprism in $HOME/.local instead of user local.
(/usr/local/ would still be affected by slow running executables so I
can't use it). To do this, I run to following from Virtualbox/Ubuntu to
install it on my d drive under d:/antiprism. It will be
d:/antiprism/usr/local
make DESTDIR=/home/roger/d/antiprism install-strip
Now I simply move the .exe files in that bin directory over to
c:/lhome/roger/.local/bin and the share directory over to
c:/home/roger/.local/share
I need no libraries. The executables run quickly.
I will probably retire Cygwin64 now. I will keep it around in case
something needs to be tested. One difference I discovered today is that
Cygwin is only up to Python3.9. This made it incompatible to run
antiprism_python on it and WSL2 which has Python3.10 while using the
same folders. This no longer matters, but I didn't know Cygwin was behind.
Roger