README_Update_2021 28 Nov 2021 GLF -------------------------------------------------------------------------------- The GLFPE_Windows_Tools archive is being updated to reflect many changes since it was last updated in 2018. The current GCC version will change from 6.3.0 to 9.2.0. The MinGW32 toolchain is the original 32 bit version (not MinGW64). That keeps the tools capable of working on the widest range of Windows OS versions. GLF has attempted to keep the Windows toolset compatible with te oldest operating systems possible. At one time GLFPE Windows could be used on Windows 98 machines. That is no longer true, but until now 32 bit compilation and execution of any program in the spource suite could work on any version of Windows from Windows XP thrugh Windows 10. Experimentation by GLF has shown that newer versions of many of the libraries of interest to support the GLFPE sample source code suite have evolved to a point where the necessary tools to build the libraries no longer are compatible with Windows XP. This suite will be released in late 2021, with the MinGW32 toolchain with GCC 9.2.0, as the most evolved version of GLFPE Windows to be compatible with Windows XP. GLF plans to reorient the future toolchain in 2022 around the MinGW-w64 project, which does not support Windows XP. It will still produce 32 bit executables if desired, but can also produce 64 bit executables. Because the programs are all 32-bit, they might continue to run on Windows XP machines (perhaps even Windows 98, subject to testing), but cannot be compiled on those target machines anymore. GCC/G++/GFORTRAN Toolchain -------------------------- The laest available version of GCC in the Debian Linux 11 (bullseye) stable repository at this time is version 10.2.1. Since GLF uses Linux for primary C/C++ development, and has updated all personal source code to work with the Debian version, it is prudent to periodically update the matching GLF Windows toolset to an equivalent GCC version. The last prior update of GLFPE Windows was done in 2018, and used GCC 6.3.0. The most widely distributed free C/C++ compiler for Windows is probably MinGW-w64, an extended and upgraded replacement for the venerable MinGW32 compiler from mingw.org (now found at https://osdn.net/projects/mingw/). Despite MinGW-w64's multiarch (64 and 32 bit executable) support, GLF has not yet chosen to adapt existing GLF source code to use the updated version, instead choosing to continue using the older 32-bit only MinGW32 toolchain. The pace of development of MinGW32 has always been slow but stable, and the latest available version of GCC in MinGW32 is usually a couple of years behing the Gnu project's official development of GCC. An alternate build of MinGW32 is available as TDM-GCC (https://jmeubank.github.io/tdm-gcc/). Ths is a rebuilt and repackaged version of MinGW (both MinGW32 and MinGW-w64 are supported) which patches some known issues and generally updates to newer GCC versions at any given time. However, certain key addon libraries supported by the MinGW32 project and used by GLF are not directly available from TDM-GCC in the MinGW32 bit version. GLF uses a number of open source GUI, image, sound, and other externally provided library packages widely supported in the Linux world, but available for Windows mostly as portable source code. It takes considerable time (days) to rebuild the many externally sourced libraries from scratch with the updated compiler and including any library updates themselves. This time GLF attempted to adapt to TDM-GCC in order to upgrade the Windows toolchain to GCC 10.3.0. However, issues arose which seemed to prohibit certain key GLF projects from building, and GLF chose to drop back to official MinGW32 again, this time with GCC 9.2.0. This made it more likely the prior library builds would be comatible. Recycling the prior builds of those external libraries (using GCC 6.3.0) allowed quick turnaround of testing for the new compiler toolchain without introducing new library issues for the most part. As of this writing all open source GLFPE sample source code tested has compiled, including 65 projects programmed in the past 3 years on the default Linux platform, recently ported to Windows for this GLFPE update. There are now almost 700 open source and 150 restricted projects (proprietary, unavailable to the public) in the GLFPE C/C++ sample test suite. The 2018 GLFPE for Windows version put the toolset and libraries under c:\glfpe\mgw630 and its subfolders. This time the toolset is located in c:\glfpe\mgw920 and its subfolders. A compatible version of MSYS, which is used to help use Unix-style tools to build compatible libraries, is now found under c:\glfpe\msys920 and its subfolders. The gfortran compiler is directly supported as part of the GCC project, and it compiler support is included in the GCC 9.2.0 installation of MinGW32. Python 2.7 has been replaced with Python 3.4.3, the last version of the language built to run on Windows XP or later OS. This was changed because Python 2 has been officially deprecated in favor of Python 3, and support for Python 2 libraries is beginning to break in the wild. In future only Window 7 and up will be supported, but the Python should be more up to date. Cmake is installed under \glfpe\cmake, and has been updated to version 3.22.0. Other optional but recommended Windows software installers (7-Zip, AutoIt, Espeak, Ghostscript) have been updated to the latest available versions. IDE ---- The IDE of choice remains a derivative of Dev-C++, but yet another fork of the original IDE will be used this time. The original author of Bloodshed dev-C++ stopped work in the 1990s. Several significant bugs went unfixed, and the version of GCC included in the original package was obsolete. Dev-C++ was quite popular, especially among beginning Windows programmers, so eventually the project was forked into wxDev-C++, a project which included hooks into the wxWidgets library, and changed the project file (*.dev) format somewhat in ways that needed to be addressed by the converting user. Eventually wxDev-C++ itself was set aside and became obsolete. Yet another fork was developed which became Orwell Dev-C++, which eliminated integration with wxWidgets, and mostly reverted the *.dev project file format back to a variant nearly the same as the original Bloodshed *.dev format. Because of this, converting was easier from an original Bloodshed project than from a wxDev-C++ project, but neither conversion was overly hard. GLFPE incorporated Orwell as the Windows IDE of choice through the last udate in 2018. In 2021 it is again prudent to consider changing IDEs. Orwell has not been updated since 2015. Fortunately, yet another fork has been published. This time the sponsor of the project is a commercial company with a long history. Embarcadero is the descendant of Borland, Inc., the developers of the original Turbo Pascal and Turbo C commercial compilers, which made history for their quality and relative affordability for the time. Embarcadero has been generous in the past, allowing their older, no longer supported products to be published for free download by anyone with just a "mailing list" registration. They have chosen to fork an updated and improved Dev-C++ as a GitHub-hosted open source project. GLFPE has adopted the most recent stable version (6.3) as a possible replacement IDE. Embarcadero Dev-C++ version 6.3 is now located under c:\glfpe\embarcadero. However, if the user wishes to use a Windows XP platform for programming development or testing, it seems the Embarcadero IDE will not run on XP due to a DLL conflict.CV The original Orwell Dev-C++ (5.11) still works, and will also be installed in parallel to c:\glfpe\orwell. GLF has also tested the promising cross-platform Code::Blocks as a possible IDE, but does not provide it in the GLFPE installation set. It has the distinct benefit of allowing import and conversion of Dev-C++ projects from the *.dev plaintext format to its own XML-based *.cbp project format. Unfortunately, export back to Dev-C++ is not supported. It also uses its own build process which bypasses the VERY USEFUL makefiles automatically generated by Dev-C++, so batch builds of Code::Blocks projects are harder and slower to script, requiring special command line invocation of Code::Blocks to build projects instead of (the usual and fast) mingw32-make. Others unchanged from 2018 (temporary pending upgrades) --------------------------------------------------------- The following are unchanged for the 2021 release of GLFPE Windows to keep the suite compatible (for the last time) with Windows XP or later. In future the other applications and libraries can be brought more up-to-date, but wil need to be rebuilt using the newer, more capable MinGW-w64 compiler tools. Because MSYS is essential to building the external libraries, but there is some question as to how new a version can be obtained, the current MinGW32 supported version of MSYS will be retained as long as it seems to be usable. The location has been moved and renamed to c:\glfpe\msys920 but the contents are largely identical to the earlier c:\glfpe\msys630. The version installed was actually downloaded with the latest MinGW32, but appears unchanged from the earlier version. At this time, with the new compilers and IDE, it remains prudent to test the samle source suite using the preexisting external library packages and versions until time is allotted to rebuild the entire set from source. For most of these, the code still works, so there is little pressure to rebuild the older support libraries at this time. At this time the installation archives (ZIPs) from 2018 for all prebuilt libraries will be copied intact to the 2021 equivalent locations so that the existing GLFPE sample source tree can be tested without introducing new issues. Thw wxWidgets 2.12.28 (old but stable) and PDCurses 3.4 (again old but stable) libraries have been rebuilt using the new compiler and installed into the same \glfpe\mgw920\folder tree (bin, lib, include, etc.). The Gnu COBOL toolset is different than the other GCC tools for GLFPE. Though the COBOL compiler relies on a version of GCC for its back end, it does not currently use the updated GCC used for C, C++, or gfortran. GLF has not changed out the COBOL compiler yet. There is no pressure to do so, since the old compiler still works and all GLF COBOL code is of academic and nostalgic interest and is 50 years old. The COBOL compiler is actually included with its own binary and dev tool chain under c:\glfpe\gnucobol\compiler, and it remains the version from 2018 for now. On Linux Gnu COBOL (or Open COBOL) has been updated since then. Though the newer version is not currently included in the Debian repositories, GLF has found a workaround to install it in GLFPE Linux. The Arduino IDE will eventually be updated to 1.8.13 (currently used in the Linux platform) or later, but for now it remains 1.8.5 for the Windows toolset as it was in the 2018 GLFPE version.