snicklin Posted May 30, 2019 Share Posted May 30, 2019 Hi, Are you developing software for the Atari (using Mads) and are you a little frustrated with how your build system works in Windows? Many people are, and they wish that they could use Linux tools to do the build. Batch scripts can be somewhat limiting when you are able to write Linux shell scripts. If this describes your situation, I have compiled instructions on how to set this up on your Windows PC. Please use at your own risk. --- You will need Windows Subsystem for Linux on your Windows PC. In order to install that, follow the instructions provided here: https://docs.microsoft.com/en-us/windows/wsl/install-win10 Please note that I have compiled these instructions for Ubuntu which is likely the most common Linux version running in Windows. In Ubuntu: 1. sudo apt update 2. sudo apt upgrade 3. sudo apt install fpc (this may take some time, you can multi-task the Windows steps below at the same time) In Windows: 4: Ensure that 7-zip is installed, if not, download and install from: https://www.7-zip.org/download.html 5. Download Mads source from 'Source' link under Mads 2.0.8 (or correct version at time of reading) from mads.atari8.info 6. Unzip content to a desired place on your C: drive. In Ubuntu: 7. Do a 'cd /home/<yourUsername>' 8. Do a 'mkdir mads' 9. Do a 'cd mads' 10. Do a 'cp -p /mnt/c/<file location>/mads.pas .' 11. Do a 'fpc -Mdelphi -v mads.pas'. You may get some issues listed, ignore them (it worked for me anyway). 12. Do an 'export PATH=$PATH:/home/<yourUsername>/mads' as per step 7. 13. Type in 'mads' on the command line, if it runs and give you usage information, it has worked. If you're not that au-fait with how Windows interfaces with Linux, remember that from Linux, you can access your Windows drive by referencing: /mnt/c/ Do yourself a favour, do not write to Windows files from Linux and do not write to Linux files from Windows. Doing some may cause you issues, especially with carriage returns. All the best, I hope that this helps you to unleash the power of the Linux command line. 1 Quote Link to comment Share on other sites More sharing options...
baktra Posted May 30, 2019 Share Posted May 30, 2019 Thank you, this is a good choice for those of us working with tools and shell coming from the Unix world. For a complex project, it is convenient to have a make utility, for example. I will just point out few alternatives (all available for very long time). MSYS, MSYS2 and Cygwin PowerShell and Windows Script Host. Just in case you are not a big fan of BASH and Unix in general. 1 Quote Link to comment Share on other sites More sharing options...
Lord Thag Posted May 31, 2019 Share Posted May 31, 2019 Windows is (finally) getting an actual terminal shell, Microsoft caved to demand. Might be able to actually write shell scripts in Windows finally:https://www.ghacks.net/2019/05/07/microsoft-unveils-new-open-source-windows-terminal/ 1 Quote Link to comment Share on other sites More sharing options...
ivop Posted May 31, 2019 Share Posted May 31, 2019 Just a matter of time until Microsoft replaces its kernel, too 1 Quote Link to comment Share on other sites More sharing options...
ggn Posted June 2, 2019 Share Posted June 2, 2019 Or just use a modern build system like fastbuild and put the old 70s junk unix tools where they belong: the recycle bin Quote Link to comment Share on other sites More sharing options...
sanny Posted June 4, 2019 Share Posted June 4, 2019 Or just use a modern build system like fastbuild and put the old 70s junk unix tools where they belong: the recycle bin bah 1 Quote Link to comment Share on other sites More sharing options...
snicklin Posted June 5, 2019 Author Share Posted June 5, 2019 Thanks for all the suggestions. Sometimes though I want to use that which I know, I have been using Linux or Unix for the last twenty years and I like the commands it has on offer. 1 Quote Link to comment Share on other sites More sharing options...
baktra Posted June 6, 2019 Share Posted June 6, 2019 bah This is a classic. https://en.wikipedia.org/wiki/The_Unix-Haters_Handbook 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.