Hello,
I have a problem with running the compiler. My make file is as below: -
#================================================================================#
This makefile created by B. Jonkman on 19-Feb-2013,
adapted from Crunch (M. Buhl on 25-Jan-2013).
(c) 2013 National Renewable Energy Laboratory
This makefile has been tested on Windows 7 with gfortran.
This makefile works with mingw32-make.exe.
It was designed to be used with:
FAST (v7.02.00d-bjj, 20-Feb-2013)
AeroDyn (v13.00.02a-bjj, 20-Feb-2013)
InflowWind (v1.01.00b-bjj, 10-Aug-2012)
NWTC Subroutine Library (v1.07.00b-mlb, 10-Jan-2013)
Older versions of the source code may not work with this makefile.
#================================================================================#
32-bit or 64-bit?
BITS = 32
#BITS = 64
Location of source files for FAST, AeroDyn, InflowWind, and the NWTC Library.
You will probably need to change these for your system.
ifeq ($(OS),Windows_NT)
NWTC_LIB_DIR= C:\FAST\Source\dependencies\NWTC_Library
AERODYN_DIR = C:\FAST\Source\dependencies\AeroDyn
WIND_DIR = C:\FAST\Source\dependencies\InflowWind
FAST_DIR = C:\FAST\Source
else
NWTC_LIB_DIR = $(HOME)/PC/CAEtools/Miscellaneous/NWTC_Library/trunk/source
AERODYN_DIR = $(HOME)/PC/CAEtools/simulators/AeroDyn/SVNdirectory/trunk/Source
WIND_DIR = $(HOME)/PC/CAEtools/simulators/InflowWind/SVNdirectory/trunk/Source
FAST_DIR = $(HOME)/PC/CAEtools/simulators/FAST/SVNdirectory/trunk/Source
endif
Name of compiler to use and flags to use.
FC = gfortran
FFLAGS = -O2 -m$(BITS) -fbacktrace -finit-local-zero -fno-automatic -ffree-line-length-none
LDFLAGS = -O2 -m$(BITS) -fbacktrace
other useful gfortran options:
-fdefault-real-8 -fcheck=bounds -std=f2003 -O0 -v
Precision.
Use “SingPrec” for single precision and “DoubPrec” for double precision. You may also need to change an option switch to make constants DP.
PREC = SingPrec
Destination and RootName for executable
OUTPUT_NAME = FAST
DEST_DIR = .
#==========================================================#
You should not need to change anything beyond this point
#==========================================================#
Then I type the following command into the cmd line.
C:\FAST\Compiling>mingw32-make
gfortran -O2 -m32 -fbacktrace -finit-local-zero -fno-automatic -ffree-line-length-none -c
C:\FAST\Source\dependencies\NWTC_Library/SysGnuWin.f90 -o Obj_win32/SysGnuWin.obj -J Obj_wi
n32
C:\FAST\Source\dependencies\NWTC_Library/SysGnuWin.f90:50.35:
USE NWTC_Base
1
Fatal Error: Can’t open module file ‘nwtc_base.mod’ for reading at (1): No such file or dir
ectory
makefile:165: recipe for target ‘SysGnuWin.obj’ failed
mingw32-make: *** [SysGnuWin.obj] Error 1
As far as I can see, I have told the make file where the directories are, so why do I get the error “Can’t open module file ‘nwtc_base.mod’ for reading at (1): No such file or directory”?
Any help appreciated.
Phillip