Makefile.def for Ubuntu 6.10 Edgy Eft
Moderators: silvia, selimgunay, Moderators
Makefile.def for Ubuntu 6.10 Edgy Eft
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework. Works on Ubuntu 6.10 Edgy Eft
#
# Written: fmk
# Created: 10/99
#
# Modified: 4/07 by lukesh
# Probably, you will need to install the png loader (libglpng) first.
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
GRAPHICS = UsingOpenGL
##GRAPHICS = UsingX11
PROGRAMMING_MODE = SEQUENTIAL
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY
# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.
BASE = /usr
##BASE = /usr/local
HOME = /home/luke
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_3.0/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
SRCdir = $(HOME)/OpenSees/SRC
DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
BLITZ_LIBRARY = $(HOME)/blitz/lib/libblitz.a
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_LIBRARY = -L/usr/lib/libX11.a
else
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
endif
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-g -pg
CFLAGS = -Wall -pg $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store
CFLAGS = -Wall -O2
FFLAGS = -Wall -O
# Linker
LINKER = $(CC++)
LINKFLAGS = -rdynamic -Wl
endif
GRAPHIC_FLAG = -D_GLX
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
-ldl -lgfortran -lpng
MACHINE_SPECIFIC_LIBS =
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework. Works on Ubuntu 6.10 Edgy Eft
#
# Written: fmk
# Created: 10/99
#
# Modified: 4/07 by lukesh
# Probably, you will need to install the png loader (libglpng) first.
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
GRAPHICS = UsingOpenGL
##GRAPHICS = UsingX11
PROGRAMMING_MODE = SEQUENTIAL
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY
# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.
BASE = /usr
##BASE = /usr/local
HOME = /home/luke
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_3.0/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
SRCdir = $(HOME)/OpenSees/SRC
DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
BLITZ_LIBRARY = $(HOME)/blitz/lib/libblitz.a
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_LIBRARY = -L/usr/lib/libX11.a
else
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
endif
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-g -pg
CFLAGS = -Wall -pg $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store
CFLAGS = -Wall -O2
FFLAGS = -Wall -O
# Linker
LINKER = $(CC++)
LINKFLAGS = -rdynamic -Wl
endif
GRAPHIC_FLAG = -D_GLX
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
-ldl -lgfortran -lpng
MACHINE_SPECIFIC_LIBS =
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Seokho Jeong
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
This is also working on Ubuntu 7.04...
This is also working on Ubuntu 7.04...
but don't just try to copy & paste... It will give you an error message.
but don't just try to copy & paste... It will give you an error message.
Seokho Jeong
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
-
- Posts: 3
- Joined: Thu May 24, 2007 9:14 am
- Location: Pontificia Universidad Catolica de Chile
Re: This is also working on Ubuntu 7.04...
My apologies if this is a too basic question, but I am a newbie in both OpenSees and Ubuntu. What do you mean by:
What should I have to do to make OpenSees run under Ubuntu? I would appreciate if you could explain it in a more step-by-step kind of way ... Thank you.
lukesh wrote:This is also working on Ubuntu 7.04...
but don't just try to copy & paste... It will give you an error message.
What should I have to do to make OpenSees run under Ubuntu? I would appreciate if you could explain it in a more step-by-step kind of way ... Thank you.
how to modify your Makefile.def
I am sorry for poor explanation.
If you just copy&paste, there might be some problems because this message board is ignoring the indentations.
Since the directory structures of debian based distros are slightly different from those of redhat based distros, you may have to change some details in your 'Makefile.def'.
First, for ubuntu users, you may have to install 'libglpng' package, as I mentioned before. Of course, you also need to install 'Tcl/Tk'.
Second, you have to make sure you have installed all compilers needed. The easiest way to do so is to install 'build-essential' package from your synaptics.
Third, choose a proper 'Makefile.def' from 'MAKES' directory (I think 'Makefile.def.FEDORA4' will be fine). Copy it into your opensees directory
and change the name into 'Makefile.def'.
Finally, the contents in the 'Makefile.def' you should change are as follows:
1) Section 2 Path: in this section you should change 'BASE' and 'HOME',
BASE=/local
HOME=/home/{your ubuntu account, for example: HOME=/home/luke}
2) Section 3 Library: in this section you should change 'GRAPHIC_LIBRARY' and 'TCL_LIBRARY',
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
3) Section 4 Compilers: in this section you should change the paths of your compilers,
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
4) Section 7 Include Files: in this section you may change 'TCL_INCLUDE',
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
Hope it will work. If it doesn't, try to modify any difference between your 'Makefile.def' and mine.
If you just copy&paste, there might be some problems because this message board is ignoring the indentations.
Since the directory structures of debian based distros are slightly different from those of redhat based distros, you may have to change some details in your 'Makefile.def'.
First, for ubuntu users, you may have to install 'libglpng' package, as I mentioned before. Of course, you also need to install 'Tcl/Tk'.
Second, you have to make sure you have installed all compilers needed. The easiest way to do so is to install 'build-essential' package from your synaptics.
Third, choose a proper 'Makefile.def' from 'MAKES' directory (I think 'Makefile.def.FEDORA4' will be fine). Copy it into your opensees directory
and change the name into 'Makefile.def'.
Finally, the contents in the 'Makefile.def' you should change are as follows:
1) Section 2 Path: in this section you should change 'BASE' and 'HOME',
BASE=/local
HOME=/home/{your ubuntu account, for example: HOME=/home/luke}
2) Section 3 Library: in this section you should change 'GRAPHIC_LIBRARY' and 'TCL_LIBRARY',
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
3) Section 4 Compilers: in this section you should change the paths of your compilers,
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
4) Section 7 Include Files: in this section you may change 'TCL_INCLUDE',
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
Hope it will work. If it doesn't, try to modify any difference between your 'Makefile.def' and mine.
Seokho Jeong
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
-
- Posts: 3
- Joined: Thu May 24, 2007 9:14 am
- Location: Pontificia Universidad Catolica de Chile
Thank you for your reply. Unfortunately, I must be doing something wrong because after typing "make" I got the error messages indicated below. My situation is the following:
- I have all the files in /home/cledezma/Desktop/OpenSees
- In Section 2 Path of Makefile.def I have "HOME = /home/cledezma/Desktop"
- From what I see, my 'Makefile.def' looks very similar to yours.
Any ideas? Thank you again for your patience and help.
- I have all the files in /home/cledezma/Desktop/OpenSees
- In Section 2 Path of Makefile.def I have "HOME = /home/cledezma/Desktop"
- From what I see, my 'Makefile.def' looks very similar to yours.
Any ideas? Thank you again for your patience and help.
Code: Select all
TclModelBuilder.cpp:275: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:275: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:275: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:276: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:276: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:277: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:277: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:281: warning: ‘TclModelBuilder_addGeomTransf’ initialized and declared ‘extern’
TclModelBuilder.cpp:281: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:281: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:281: error: expected primary-expression before ‘,’ token
TclModelBuilder.cpp:281: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:281: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:282: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:282: error: expected primary-expression before ‘,’ token
TclModelBuilder.cpp:282: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:282: error: expected primary-expression before ‘)’ token
TclModelBuilder.cpp:282: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:298: error: ‘Tcl_Interp’ has not been declared
TclModelBuilder.cpp: In constructor ‘TclModelBuilder::TclModelBuilder(Domain&, int*, int, int)’:
TclModelBuilder.cpp:299: error: class ‘TclModelBuilder’ does not have any field named ‘theInterp’
TclModelBuilder.cpp:323: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:323: error: ‘Tcl_CreateCommand’ was not declared in this scope
TclModelBuilder.cpp:326: error: expected `)' before ‘__null’
TclModelBuilder.cpp:329: error: expected `)' before ‘__null’
TclModelBuilder.cpp:332: error: expected `)' before ‘__null’
TclModelBuilder.cpp:335: error: expected `)' before ‘__null’
TclModelBuilder.cpp:338: error: expected `)' before ‘__null’
TclModelBuilder.cpp:341: error: expected `)' before ‘__null’
TclModelBuilder.cpp:344: error: expected `)' before ‘__null’
TclModelBuilder.cpp:347: error: expected `)' before ‘__null’
TclModelBuilder.cpp:350: error: expected `)' before ‘__null’
TclModelBuilder.cpp:353: error: expected `)' before ‘__null’
TclModelBuilder.cpp:356: error: expected `)' before ‘__null’
TclModelBuilder.cpp:359: error: expected `)' before ‘__null’
TclModelBuilder.cpp:362: error: expected `)' before ‘__null’
TclModelBuilder.cpp:365: error: expected `)' before ‘__null’
TclModelBuilder.cpp:368: error: expected `)' before ‘__null’
TclModelBuilder.cpp:371: error: expected `)' before ‘__null’
TclModelBuilder.cpp:374: error: expected `)' before ‘__null’
TclModelBuilder.cpp:377: error: expected `)' before ‘__null’
TclModelBuilder.cpp:381: error: expected `)' before ‘__null’
TclModelBuilder.cpp:385: error: expected `)' before ‘__null’
TclModelBuilder.cpp:389: error: expected `)' before ‘__null’
TclModelBuilder.cpp:392: error: expected `)' before ‘__null’
TclModelBuilder.cpp:395: error: expected `)' before ‘__null’
TclModelBuilder.cpp:399: error: expected `)' before ‘__null’
TclModelBuilder.cpp:401: error: expected `)' before ‘__null’
TclModelBuilder.cpp:405: error: expected `)' before ‘__null’
TclModelBuilder.cpp:408: error: expected `)' before ‘__null’
TclModelBuilder.cpp:411: error: expected `)' before ‘__null’
TclModelBuilder.cpp:414: error: expected `)' before ‘__null’
TclModelBuilder.cpp:417: error: expected `)' before ‘__null’
TclModelBuilder.cpp:420: error: expected `)' before ‘__null’
TclModelBuilder.cpp:426: error: expected `)' before ‘__null’
TclModelBuilder.cpp:431: error: expected `)' before ‘__null’
TclModelBuilder.cpp: In destructor ‘virtual TclModelBuilder::~TclModelBuilder()’:
TclModelBuilder.cpp:486: error: ‘theInterp’ was not declared in this scope
TclModelBuilder.cpp:486: error: ‘Tcl_DeleteCommand’ was not declared in this scope
TclModelBuilder.cpp: At global scope:
TclModelBuilder.cpp:813: error: redefinition of ‘int TclModelBuilder_addNode’
TclModelBuilder.cpp:108: error: ‘int TclModelBuilder_addNode’ previously defined here
TclModelBuilder.cpp:813: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:813: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:813: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:813: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:814: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:944: warning: ‘TclModelBuilderElementCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:944: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:945: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:945: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:945: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:946: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:947: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:947: error: ‘theDomain’ was not declared in this scope
TclModelBuilder.cpp:947: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:947: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:949: error: redefinition of ‘int TclModelBuilder_addElement’
TclModelBuilder.cpp:112: error: ‘int TclModelBuilder_addElement’ previously defined here
TclModelBuilder.cpp:949: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:949: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:949: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:950: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:950: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:959: warning: ‘TclModelBuilderUniaxialMaterialCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:959: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:959: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:959: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:959: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:960: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:960: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:960: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:960: error: ‘theDomain’ was not declared in this scope
TclModelBuilder.cpp:960: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:963: error: redefinition of ‘int TclModelBuilder_addUniaxialMaterial’
TclModelBuilder.cpp:116: error: ‘int TclModelBuilder_addUniaxialMaterial’ previously defined here
TclModelBuilder.cpp:963: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:963: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:963: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:964: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:964: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:972: warning: ‘TclModelBuilderNDMaterialCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:972: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:972: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:972: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:972: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:973: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:973: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:973: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:976: error: redefinition of ‘int TclModelBuilder_addNDMaterial’
TclModelBuilder.cpp:120: error: ‘int TclModelBuilder_addNDMaterial’ previously defined here
TclModelBuilder.cpp:976: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:976: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:976: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:977: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:977: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:985: warning: ‘TclModelBuilderSectionCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:985: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:985: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:985: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:985: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:986: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:986: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:986: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:989: error: redefinition of ‘int TclModelBuilder_addSection’
TclModelBuilder.cpp:124: error: ‘int TclModelBuilder_addSection’ previously defined here
TclModelBuilder.cpp:989: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:989: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:989: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:990: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:990: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1000: warning: ‘TclModelBuilderYieldSurface_BCCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1000: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1000: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1000: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1000: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1001: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1001: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1001: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1004: error: redefinition of ‘int TclModelBuilder_addYieldSurface_BC’
TclModelBuilder.cpp:128: error: ‘int TclModelBuilder_addYieldSurface_BC’ previously defined here
TclModelBuilder.cpp:1004: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1004: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1004: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1005: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1005: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1013: warning: ‘TclModelBuilderYS_EvolutionModelCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1013: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1013: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1013: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1013: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1014: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1014: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1014: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1017: error: redefinition of ‘int TclModelBuilder_addYS_EvolutionModel’
TclModelBuilder.cpp:132: error: ‘int TclModelBuilder_addYS_EvolutionModel’ previously defined here
TclModelBuilder.cpp:1017: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1017: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1017: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1018: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1018: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1026: warning: ‘TclModelBuilderPlasticMaterialCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1026: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1026: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1026: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1026: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1027: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1027: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1027: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1030: error: redefinition of ‘int TclModelBuilder_addYS_PlasticMaterial’
TclModelBuilder.cpp:136: error: ‘int TclModelBuilder_addYS_PlasticMaterial’ previously defined here
TclModelBuilder.cpp:1030: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1030: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1030: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1031: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1031: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1039: warning: ‘TclModelBuilderCyclicModelCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1039: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1039: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1039: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1039: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1040: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1040: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1040: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1042: error: redefinition of ‘int TclModelBuilder_addCyclicModel’
TclModelBuilder.cpp:140: error: ‘int TclModelBuilder_addCyclicModel’ previously defined here
TclModelBuilder.cpp:1042: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1042: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1042: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1043: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1043: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1051: warning: ‘TclModelBuilderDamageModelCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1051: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1051: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1051: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1051: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1052: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1052: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1052: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1055: error: redefinition of ‘int TclModelBuilder_addDamageModel’
TclModelBuilder.cpp:143: error: ‘int TclModelBuilder_addDamageModel’ previously defined here
TclModelBuilder.cpp:1055: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1055: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1055: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1056: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1056: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1064: warning: ‘TclPatternCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1064: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1064: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1064: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1065: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1065: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1065: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1065: error: ‘theDomain’ was not declared in this scope
TclModelBuilder.cpp:1065: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1068: error: redefinition of ‘int TclModelBuilder_addPattern’
TclModelBuilder.cpp:147: error: ‘int TclModelBuilder_addPattern’ previously defined here
TclModelBuilder.cpp:1068: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1068: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1068: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1069: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1069: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1079: warning: ‘TclGroundMotionCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:1079: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1080: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1080: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1081: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1082: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1083: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:1083: error: ‘thePattern’ was not declared in this scope
TclModelBuilder.cpp:1083: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:1086: error: redefinition of ‘int TclModelBuilder_addGroundMotion’
TclModelBuilder.cpp:241: error: ‘int TclModelBuilder_addGroundMotion’ previously defined here
TclModelBuilder.cpp:1086: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1086: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1086: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1087: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1087: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1096: error: redefinition of ‘int TclModelBuilder_addNodalLoad’
TclModelBuilder.cpp:179: error: ‘int TclModelBuilder_addNodalLoad’ previously defined here
TclModelBuilder.cpp:1096: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1096: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1096: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1096: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1097: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1193: error: redefinition of ‘int TclModelBuilder_addElementalLoad’
TclModelBuilder.cpp:183: error: ‘int TclModelBuilder_addElementalLoad’ previously defined here
TclModelBuilder.cpp:1193: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1193: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1193: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1193: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1194: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1453: error: redefinition of ‘int TclModelBuilder_addNodalMass’
TclModelBuilder.cpp:187: error: ‘int TclModelBuilder_addNodalMass’ previously defined here
TclModelBuilder.cpp:1453: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1453: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1453: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1453: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1454: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1507: error: redefinition of ‘int TclModelBuilder_addHomogeneousBC’
TclModelBuilder.cpp:159: error: ‘int TclModelBuilder_addHomogeneousBC’ previously defined here
TclModelBuilder.cpp:1507: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1507: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1507: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1507: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1508: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1564: error: redefinition of ‘int TclModelBuilder_addHomogeneousBC_X’
TclModelBuilder.cpp:162: error: ‘int TclModelBuilder_addHomogeneousBC_X’ previously defined here
TclModelBuilder.cpp:1564: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1564: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1564: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1565: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1565: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1657: error: redefinition of ‘int TclModelBuilder_addHomogeneousBC_Y’
TclModelBuilder.cpp:165: error: ‘int TclModelBuilder_addHomogeneousBC_Y’ previously defined here
TclModelBuilder.cpp:1657: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1657: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1657: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1658: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1658: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1752: error: redefinition of ‘int TclModelBuilder_addHomogeneousBC_Z’
TclModelBuilder.cpp:168: error: ‘int TclModelBuilder_addHomogeneousBC_Z’ previously defined here
TclModelBuilder.cpp:1752: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1752: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1752: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1753: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1753: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1847: error: redefinition of ‘int TclModelBuilder_addSP’
TclModelBuilder.cpp:190: error: ‘int TclModelBuilder_addSP’ previously defined here
TclModelBuilder.cpp:1847: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1847: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1847: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1847: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1848: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:1949: error: redefinition of ‘int TclModelBuilder_addImposedMotionSP’
TclModelBuilder.cpp:194: error: ‘int TclModelBuilder_addImposedMotionSP’ previously defined here
TclModelBuilder.cpp:1949: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:1950: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:1950: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:1951: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:1952: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2038: error: redefinition of ‘int TclModelBuilder_addEqualDOF_MP’
TclModelBuilder.cpp:171: error: ‘int TclModelBuilder_addEqualDOF_MP’ previously defined here
TclModelBuilder.cpp:2038: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2038: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2038: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2039: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2039: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2122: error: redefinition of ‘int TclModelBuilder_addMP’
TclModelBuilder.cpp:175: error: ‘int TclModelBuilder_addMP’ previously defined here
TclModelBuilder.cpp:2122: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2122: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2122: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2122: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2123: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2132: error: redefinition of ‘int TclModelBuilder_doPySimple1Gen’
TclModelBuilder.cpp:200: error: ‘int TclModelBuilder_doPySimple1Gen’ previously defined here
TclModelBuilder.cpp:2132: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2132: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2132: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2132: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2133: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2154: error: redefinition of ‘int TclModelBuilder_doTzSimple1Gen’
TclModelBuilder.cpp:204: error: ‘int TclModelBuilder_doTzSimple1Gen’ previously defined here
TclModelBuilder.cpp:2154: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2154: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2154: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2154: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2155: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2178: error: redefinition of ‘int TclModelBuilder_doBlock2D’
TclModelBuilder.cpp:209: error: ‘int TclModelBuilder_doBlock2D’ previously defined here
TclModelBuilder.cpp:2178: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2178: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2178: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2178: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2179: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2382: error: redefinition of ‘int TclModelBuilder_doBlock3D’
TclModelBuilder.cpp:213: error: ‘int TclModelBuilder_doBlock3D’ previously defined here
TclModelBuilder.cpp:2382: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2382: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2382: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2382: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2383: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2550: error: redefinition of ‘int TclModelBuilder_addRemoPatch’
TclModelBuilder.cpp:217: error: ‘int TclModelBuilder_addRemoPatch’ previously defined here
TclModelBuilder.cpp:2550: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2550: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2550: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2550: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2551: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2558: error: redefinition of ‘int TclModelBuilder_addRemoFiber’
TclModelBuilder.cpp:229: error: ‘int TclModelBuilder_addRemoFiber’ previously defined here
TclModelBuilder.cpp:2558: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2558: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2558: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2558: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2559: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2566: error: redefinition of ‘int TclModelBuilder_addRemoLayer’
TclModelBuilder.cpp:223: error: ‘int TclModelBuilder_addRemoLayer’ previously defined here
TclModelBuilder.cpp:2566: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2566: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2566: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2566: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2567: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2576: error: redefinition of ‘int TclModelBuilder_addRemoGeomTransf’
TclModelBuilder.cpp:235: error: ‘int TclModelBuilder_addRemoGeomTransf’ previously defined here
TclModelBuilder.cpp:2576: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2576: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2576: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2576: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2577: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2587: warning: ‘TclModelBuilderUpdateMaterialStageCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:2587: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2588: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2588: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2589: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2590: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2591: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:2591: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:2593: error: redefinition of ‘int TclModelBuilder_UpdateMaterialStage’
TclModelBuilder.cpp:248: error: ‘int TclModelBuilder_UpdateMaterialStage’ previously defined here
TclModelBuilder.cpp:2593: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2594: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2594: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2595: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2596: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2604: warning: ‘TclModelBuilderUpdateParameterCommand’ initialized and declared ‘extern’
TclModelBuilder.cpp:2604: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2605: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2605: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2606: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2607: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:2608: error: expected primary-expression before ‘*’ token
TclModelBuilder.cpp:2608: error: initializer expression list treated as compound expression
TclModelBuilder.cpp:2610: error: redefinition of ‘int TclModelBuilder_UpdateParameter’
TclModelBuilder.cpp:256: error: ‘int TclModelBuilder_UpdateParameter’ previously defined here
TclModelBuilder.cpp:2610: error: ‘ClientData’ was not declared in this scope
TclModelBuilder.cpp:2611: error: ‘Tcl_Interp’ was not declared in this scope
TclModelBuilder.cpp:2611: error: ‘interp’ was not declared in this scope
TclModelBuilder.cpp:2612: error: expected primary-expression before ‘int’
TclModelBuilder.cpp:2613: error: expected primary-expression before ‘const’
TclModelBuilder.cpp:99: warning: ‘eleLoadTag’ defined but not used
make[1]: *** [TclModelBuilder.o] Error 1
make[1]: Leaving directory `/home/cledezma/Desktop/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
cledezma@ubuntu:~/Desktop/OpenSees$
Oh, dear. I didn't know that I can put the code like this...
Ok, I think it will be better for you to move your opensees directory from desktop into your home directory.
i.e. home/{your account}/opensees/
then, change your 'HOME' into 'HOME=/home/{your account}'
try again, and if it doesn't work try my code below there.
Ok, I think it will be better for you to move your opensees directory from desktop into your home directory.
i.e. home/{your account}/opensees/
then, change your 'HOME' into 'HOME=/home/{your account}'
try again, and if it doesn't work try my code below there.
Code: Select all
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework. Works for Linux 7.1 and
# above, modified to use the OpenGl libraries.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
GRAPHICS = UsingOpenGL
##GRAPHICS = UsingX11
PROGRAMMING_MODE = SEQUENTIAL
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY
# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.
BASE = /usr/
##BASE = /usr/local
HOME = /home/luke
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_3.0/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
SRCdir = $(HOME)/OpenSees/SRC
DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_LIBRARY = -L/usr/lib/libX11.a
else
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
endif
BLITZ_LIBRARY = $(HOME)/blitz/lib/libblitz.a
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
GRAPHICS = UsingOpenGL
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-g -pg
CFLAGS = -Wall -pg $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store
CFLAGS = -Wall -O2
FFLAGS = -Wall -O
# Linker
LINKER = $(CC++)
LINKFLAGS = -rdynamic -Wl
endif
GRAPHIC_FLAG = -D_GLX
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
-ldl -lgfortran -lpng
MACHINE_SPECIFIC_LIBS =
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Seokho Jeong
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
Mater of Earthquake Engineering and Engineering Seismology Program
University of Patras
Patras, GREECE
-
- Posts: 3
- Joined: Thu May 24, 2007 9:14 am
- Location: Pontificia Universidad Catolica de Chile
Unfortunately it did not work.
I tried both things. Now everything is under home/{your account}/opensees/, and I tried the 'Makefile.def' with the modifications you first suggested, and it did not work. Then I tried to make my Makefile.def look just like yours, but it did not work. By the way, I could not just copy&paste your Makefile.def, because when I tried to do "make" I got an error that had to do with spacing/indentation (?). I would really like to give your "original" Makefile.def a try ... could you please send it to me at cledezma@berkeley.edu? The last one I tried is below. Thanks again for all your help.
I tried both things. Now everything is under home/{your account}/opensees/, and I tried the 'Makefile.def' with the modifications you first suggested, and it did not work. Then I tried to make my Makefile.def look just like yours, but it did not work. By the way, I could not just copy&paste your Makefile.def, because when I tried to do "make" I got an error that had to do with spacing/indentation (?). I would really like to give your "original" Makefile.def a try ... could you please send it to me at cledezma@berkeley.edu? The last one I tried is below. Thanks again for all your help.
Code: Select all
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework. Works on Linux version 6.1
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
GRAPHICS = UsingOpenGL
PROGRAMMING_MODE = SEQUENTIAL
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY
# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.
BASE = /usr/
HOME = /home/cledezma
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_3.0/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
SRCdir = $(HOME)/OpenSees/SRC
DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
TCL_LIBRARY = /usr/lib/libtk8.4.so /usr/lib/libX11.a /usr/lib/libtcl8.4.so
BLITZ_LIBRARY = $(HOME)/blitz/lib/libblitz.a
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_LIBRARY = -L/usr/lib/libX11.a
else
GRAPHIC_LIBRARY = -L/usr/X11R6/lib -lX11 -lGL -lGLU
endif
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
GRAPHICS = UsingOpenGL
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-g -pg
CFLAGS = -Wall -pg $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL84 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store
CFLAGS = -Wall -O2
FFLAGS = -Wall -O
# Linker
LINKER = $(CC++)
LINKFLAGS = -rdynamic -Wl
endif
GRAPHIC_FLAG = -D_GLX
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
-ldl -lgfortran -lpng
MACHINE_SPECIFIC_LIBS =
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/usr/include/tcl8.4 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Re: Makefile.def for Ubuntu 6.10 Edgy Eft
May you please send the Makefile.def for Ubuntu 12.04 LTS.
I would be grateful.
I would be grateful.