Compiling Windows Programs on Linux

Fedora includes the mingw compiler, so we can port our programs to Windows (to share with our Windows friends) and we can test them on Linux using wine, so we don’t actually have to boot Windows ourselves. By putting the commands into the Makefile we can remember them later. This Makefile is a bit over-hacked. In particular, I don’t recommend the $(shell basename `pwd`) for anything other than personal or hobby templates. We’re not trying to pass this off as professional code or anything like that… No warranty! Just showing that anything can go into a Makefile! The bash command line lets us make an alias for commands that we type often. We can put the alias into .bashrc and use them every time we log on. Fedora’s package management commands are difficult for me to remember, so I have made aliases for them. In this video, I use an alias, rf, that is basically a command for Fedora to view the contents of packages: alias rf=’rpm -q –filesbypkg –nodigest –nosignature’ My other alias, qq is a .bashrc function: qq() { grep -i “$@” /var/log/rpmpkgs | sed “s/\.rpm//” ; } This just quickly lists all the rpms we installed prior to last night matching the name. It doesn’t work on rpms that we recently installed because the database updates at night. To see recently installed packages, I use another, slower command, rq, which is also an alias: alias rq=’rpm -qa –nodigest –nosignature | grep -i’ This video contains parts or visuals of free software programs. You may use them
Video Rating: 5 / 5

This entry was posted in Linux Programs and tagged , , , . Bookmark the permalink.

9 Responses to Compiling Windows Programs on Linux

  1. Bayonetta4 says:

    T_T
    i thought it was the opposite – making winblows program run on Linux… *crying in the corner*

  2. MalaTemporaCurrunt says:

    what i meant is:

    i can see how to build a simple console application for cross-platform, but what if i want to build a gui or a graphics application (for example using allegro)?

    can you make a video showing that please?

    thanks in advance

  3. themanyone says:

    You can create games in blender and export them as stand-alone applications, but as far as 3D programming, I’m still searching for a good combination. Ogre and allegro3d seem interesting.

  4. MalaTemporaCurrunt says:

    thanks for information.

    can you tell me how could i build a program that usegraphics s some cross-platform libraries, such as allegro?

    bye

  5. MindTrip51 says:

    That it is.

  6. cobrafazea says:

    Fedora Is just Supreme :D :D:D

  7. pater429 says:

    Thanks man, Good work i love fedora and xp
    i am a c sharp visual basic programmer for a wile now, i want to do linux tough.

  8. themanyone says:

    I have been using scite. I also installed a couple add-on scripts from the scite lua script page.

  9. welemon says:

    hi, what’s the editor are you using when modify Makefile, I saw the intelligence prompt during editing. I didn’t saw my gedit do that….

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>