Results 1 to 7 of 7

Thread: How do I install MinGW-64bit?

  1. #1
    Join Date
    Dec 2012
    Beans
    51

    How do I install MinGW-64bit?

    How do I install MingGW-64 bit? What sudo commands must I issue?

    I am new to Ubuntu and have 12.10, 64 bit, US English installed. I plan to compile code for 64-bit Microsoft Windows.

  2. #2
    Join Date
    Feb 2011
    Location
    Europe
    Beans
    153
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I install MinGW-64bit?

    Simply run
    Code:
    sudo apt-get install mingw-w64
    Or
    Code:
    gcc-mingw-w64
    I'm not sure
    Last edited by linuxsyst; January 26th, 2013 at 11:08 PM.

  3. #3
    Join Date
    Dec 2006
    Beans
    7,349

    Re: How do I install MinGW-64bit?

    An easy way to find available packages is:

    Code:
    andrew@corinth:~$ apt-cache search mingw | grep 64
    binutils-mingw-w64 - Cross-binutils for Win32 and Win64 using MinGW-w64
    binutils-mingw-w64-i686 - Cross-binutils for Win32 (x86) using MinGW-w64
    binutils-mingw-w64-x86-64 - Cross-binutils for Win64 (x64) using MinGW-w64
    g++-mingw-w64 - GNU C++ compiler for MinGW-w64
    g++-mingw-w64-i686 - GNU C++ compiler for MinGW-w64 targeting Win32
    g++-mingw-w64-x86-64 - GNU C++ compiler for MinGW-w64 targeting Win64
    gcc-mingw-w64 - GNU C compiler for MinGW-w64
    gcc-mingw-w64-base - GNU Compiler Collection for MinGW-w64 (base package)
    gcc-mingw-w64-i686 - GNU C compiler for MinGW-w64 targeting Win32
    gcc-mingw-w64-x86-64 - GNU C compiler for MinGW-w64 targeting Win64
    gdb-mingw-w64 - Cross-debugger for Win32 and Win64 using MinGW-w64
    gdb-mingw-w64-target - Cross-debugger server for Win32 and Win64 using MinGW-w64
    gfortran-mingw-w64 - GNU Fortran compiler for MinGW-w64
    gfortran-mingw-w64-i686 - GNU Fortran compiler for MinGW-w64 targeting Win32
    gfortran-mingw-w64-x86-64 - GNU Fortran compiler for MinGW-w64 targeting Win64
    gnat-mingw-w64 - GNU Ada compiler for MinGW-w64
    gnat-mingw-w64-i686 - GNU Ada compiler for MinGW-w64 targeting Win32
    gnat-mingw-w64-x86-64 - GNU Ada compiler for MinGW-w64 targeting Win64
    gobjc++-mingw-w64 - GNU Objective-C++ compiler for MinGW-w64
    gobjc++-mingw-w64-i686 - GNU Objective-C++ compiler for MinGW-w64 targeting Win32
    gobjc++-mingw-w64-x86-64 - GNU Objective-C++ compiler for MinGW-w64 targeting Win64
    gobjc-mingw-w64 - GNU Objective-C compiler for MinGW-w64
    gobjc-mingw-w64-i686 - GNU Objective-C compiler for MinGW-w64 targeting Win32
    gobjc-mingw-w64-x86-64 - GNU Objective-C compiler for MinGW-w64 targeting Win64
    mingw-w64 - Development environment targetting 32- and 64-bit Windows
    mingw-w64-dev - Development files for MinGW-w64 (transitional package)
    mingw-w64-i686-dev - Development files for MinGW-w64 targeting Win32
    mingw-w64-tools - Development tools for 32- and 64-bit Windows
    mingw-w64-x86-64-dev - Development files for MinGW-w64 targeting Win64
    I have not used this on Linux but I have used MinGW under Windows where it works nicely enough...
    You think that's air you're breathing now?

  4. #4
    Join Date
    Dec 2012
    Beans
    51

    Re: How do I install MinGW-64bit?

    @ andrew.46

    Thanks for your reply.

    I downloaded mingw-w64-bin_x86_64-linux_20121031.tar.bz2 from MinGW-w64's Sourceforge website. It is about 259MB in size.

    Could you show me how to install it?

    Or is there any difference in functionality if I install it using your "apt-cache search" method?

  5. #5
    Join Date
    Dec 2006
    Beans
    7,349

    Re: How do I install MinGW-64bit?

    Ooops looks like I have created some confusion . The apt-cache search syntax merely finds a package name. To install mingw-64 on Ubuntu you would be best to run:

    Code:
    sudo apt-get install mingw-w64
    rather than download the file from sourceforge. On Windows I use the automated mingw installer...
    You think that's air you're breathing now?

  6. #6
    Join Date
    Aug 2007
    Location
    From the land down under
    Beans
    1,241
    Distro
    Ubuntu Development Release

    Re: How do I install MinGW-64bit?

    Quote Originally Posted by regency View Post
    Or is there any difference in functionality if I install it using your "apt-cache search" method?
    First point to call when installing programs should always be through the software centre or apt-get or synaptic eg your local repositories. If it's not available then check for a ".deb" package and then lastly check for a .tar.gz

    Compiling programs for me is very 2003, I just don't do it anymore.
    // Blog

  7. #7
    Join Date
    Feb 2011
    Location
    Europe
    Beans
    153
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I install MinGW-64bit?

    Code:
    tar xvzf pkg.tar.gz
    ( If File Is a GZ)
    Code:
    tar xvjf pkg.tar.bz2
    ( If Files is a BZ)
    After this command a New Folder Would Be Created in the Same Location with the Package Name.

    2.Next Move Into The Newly Created Folder.
    Use "ls" command to look for the folder Then Type
    Code:
    cd pkg(Enter)
    ( Here pkg is the Name of the Newly Created Folder )

    3. Next Go Into Super User Mode. Super User Mode in Linux is Like Having temparary Admin Priviledges just to install programs and perform other complex tasks.
    Type
    Code:
    sudo -s (Enter)
    Then Type in Your ROOT password when prompted

    4. Now We’ll Install The App.
    Type
    Code:
    ./configure (Enter)

    Type
    Code:
    make (Enter)
    Then
    Code:
    make install (Enter)
    Then
    Code:
    make clean (Enter)
    Then "exit" (Enter)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •