Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2014, 09:31 AM   #1
LQ Newbie
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
mingw cross compile gfortran for windows


I want to compile a project which is written in fortran of mine in ubuntu which should produce a windows executable. I am currently doing that via mingw. previously i have installed i686-w64-mingw package. It contains a Makefile. I don't know the exact command to compile to generate the windows executable. Somebody help. Thank you
Old 12-14-2014, 06:32 AM   #2
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Assuming you have all the relevant packages installed such as gcc-mingw-w64 and g++-mingw-w64 and assuming that you're not talking about the mingw-w64-x86-64-dev package then I'd guess you type these commands in a terminal:
sudo make install
but maybe I don't understand what your situation is.
Old 12-14-2014, 07:52 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,455

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
when i install MinGW on windows
the FIRST check is any of the "hello world" c++ programs

then the SECOND test to make 100% sure that EVERYTHING on windows and mingw is set up CORRECTLY
like setting the $PATH and $LD_LIBRARY_PATH ( in WINDOWS AND MINGW!!! ) and all of ming is installed in a tree
that has NO!!!!! "blank spaces" in the folder names
--- DO NOT !!! install mingw to c:\\Program ( BLANK SPACE) Files \ mingw

is to build from source "The Gimp "
and most of the dependencies
if ALL that is required to instyall a FULLY working "The Gimp" is to
ONLY type this

./configure --prefix=/usr
make install
and ( --prefix=/usr) installs ginp to

THEN i know that Mingw is installed and configures CORRECTLY

Last edited by John VV; 12-14-2014 at 07:54 PM.


cross-compile, fortran, mingw, ubuntu 13.10

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MinGW compile issue on windows PoleStar Programming 1 10-10-2013 05:12 PM
cross-compiling with MinGW in Debian Linux qrange Linux - Software 1 01-15-2011 12:28 AM
Fedora style MinGW Cross Compile Suite for Slackware? Gavin Harper Slackware 0 11-06-2010 11:03 AM
Attempting to Cross-compile SDL_image with mingw on a linux host Eupator Programming 6 02-03-2010 06:03 PM
minGW: cross platform using g77? shengchieh Programming 4 01-03-2005 01:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration