LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mingw cross compile gfortran for windows (https://www.linuxquestions.org/questions/linux-newbie-8/mingw-cross-compile-gfortran-for-windows-4175528165/)

uchiha_itachi 12-13-2014 08:31 AM

mingw cross compile gfortran for windows
 
Hello,

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

jdkaye 12-14-2014 05:32 AM

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:
Code:

./configure
make
sudo make install

but maybe I don't understand what your situation is.
jdk

John VV 12-14-2014 06:52 PM

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

Code:

./configure --prefix=/usr
make
make install

and ( --prefix=/usr) installs ginp to
c:\\Gnuwin32\Mingw\bin\gimp

THEN i know that Mingw is installed and configures CORRECTLY


All times are GMT -5. The time now is 12:43 PM.