Why should I cross compile? I myself asked this question. The context here is, I have to write an encryption program in C which will be used on both Windows and Linux. The program will encrypt a text in Windows and decrypt the same on Linux. My program is pretty small and it can be easily compiled on two machines, one with Windows and one with Linux. But I want to learn how to cross compile for Windows on Linux. Now coming to the question, I got some reasons for cross compiling here. To the large extent that is true but will not applicable in my case. In this post I will explain how to cross compile a simple C program using MingW toolchain for Windows on Linux. I am using Ubuntu here but it is same for other distros as well. In later articles I will show how to cross compile a library and link it as I did for my encryption program
If you are using a DSLR, you definitely know about RAW format. In DSLRs we have an option to save the image in JPEG or RAW format or both (with takes more space in the memory card). The advantage of RAW format is, it is uncompressed and stores more details related to the image captured. RAW format help photogtaphers to correct the images using post processing tools, like, Adobe Lightroom, Raw Therapee, Darktable etc. But I am not a professional photographer but a hobbyist. Though I store images in RAW format, thinking that in future I do post processing, I want them to convert it to JPEG and share it in social media platforms like Facebook, Instagram etc and photo blogs like viewbug. I was looking for a command line tool to simply convert my RAW files to JPEG.