Use MSYS and MinGW to compile Linux programs for Windows: run CGAL natively on Windows [On Demand 7]

Ғылым және технология

MSYS is truly an impressive tool, allowing you to run Linux on Windows (like WSL which we discussed before) while enabling you to build Linux programs to run natively on Windows. Wait, what? Yes, that’s correct, you can use the familiar Linux build tools like make and gcc to compile a program and make a Windows executable (.exe file), meaning you can run it on Windows independent from the Linux filesystem and libraries. MSYS uses MinGW, minimalist GNU for Window, to do this amazing job. In this video, we compile a CGAL-based program again, this time using MSYS instead of WSL to make it a native Windows executable. We also use CMake GUI for configuring the build, a tool that can be handy if you don’t want to deal with CMake build flags and variables.
Video series:
Please refer to the first video of the “On Demand” series to find out more about the purpose of these videos. You can find the list of videos belonging to this series at tuxriders.com/videos/on-demand/ and • On Demand
Materials:
You can find the materials developed in the videos in this repository on GitHub: github.com/TuxRiders/on-demand
Topics covered:
🎯 Fundamental difference between MSYS and WSL (Windows Subsystem for Linux)
🎯 Installing and configuring MSYS and MinGW
🎯 Building a simple C++ program for Windows using Linux compilers
🎯 Building a more complex program (CGAL-based) with more dependencies using MSYS
🎯 Taking advantage of CMake GUI to configure CMake builds
Lecturer: Mojtaba Barzegari mbarzegary.github.io/
To learn more about the goals of the TuxRiders project, please visit our website at tuxriders.com.
Chapters in this video!
################
00:00 - Intro
03:44 - Download and install MSYS
06:30 - Configure MSYS for the first use
09:40 - Start MinGW, build a simple program, and run it
14:22 - Build a CGAL-based program using MSYS and CMake GUI
25:35 - Final words!

Пікірлер: 17

  • @erdemuzuncayr447
    @erdemuzuncayr447 Жыл бұрын

    This is what I looking for , it helps me a lot I do not need IDE anymore. Thanks !

  • @TuxRiders

    @TuxRiders

    Жыл бұрын

    glad to know you find it useful :)

  • @elzeroquantumschool1607
    @elzeroquantumschool16079 ай бұрын

    Most useful video for this year

  • @TuxRiders

    @TuxRiders

    9 ай бұрын

    haha, thank you :)

  • @elzeroquantumschool1607

    @elzeroquantumschool1607

    8 ай бұрын

    @@TuxRidersactually you helped me a lot I did it but shared library But found some differences Library dependency Behave differently on Linux Vs windows

  • @TuxRiders

    @TuxRiders

    8 ай бұрын

    @@elzeroquantumschool1607 thank you for sharing this tip. I have never tried to build a shared library with MSYS, but yes, I can guess that its behavior can be different from what it is in Linux.

  • @flatechcomau
    @flatechcomau Жыл бұрын

    my friend it was amazing but it cloud be even better if you compile a simple Linux app such as gedit for mingw to make sense more for those who want to have a quick look for a more straight forward and specific result

  • @TuxRiders

    @TuxRiders

    Жыл бұрын

    it's a good suggestion indeed, but I wanted to reproduce the process of compiling a scientific program we had built before to show the similarities.

  • @eXtremeElectronics
    @eXtremeElectronics Жыл бұрын

    Hello Sir Nice and informative video! Are you available for paid consultancy and software development?

  • @TuxRiders

    @TuxRiders

    Жыл бұрын

    Hi, thank you. no, I'm afraid it's not possible at this moment.

  • @mm-wm6uh
    @mm-wm6uh8 ай бұрын

    hello Sir, would you make video how to install/build wxwidget use msys or mingw?

  • @TuxRiders

    @TuxRiders

    7 ай бұрын

    hi! I have never done that unfortunately. by the way, why do you need to build it using msys when it's already cross-platform? I mean, why not building it using VC++ for example?

  • @mm-wm6uh

    @mm-wm6uh

    7 ай бұрын

    @@TuxRiders i see in youtube a man compile bitcoin source code use msys or git terminal with command make..even I try compile use codeblocks or vsc but still found error on library/ dependecies.

  • @TuxRiders

    @TuxRiders

    7 ай бұрын

    @@mm-wm6uh I see. unfortunately, I don't know how it works.

  • @mm-wm6uh

    @mm-wm6uh

    7 ай бұрын

    @@TuxRiders compile bitcoin 0.1.5 alpha source code above the title of video what I mean

  • @flatechcomau
    @flatechcomau Жыл бұрын

    also i like your accent

  • @TuxRiders

    @TuxRiders

    Жыл бұрын

    haha, thanks ;)

Келесі