Dear fmk,
Thanks for your reply. I tried as you suggested and got the following error:
===========================
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
g++: error: unrecognized command line option ‘-Wl’
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
=======================
It appears that it has something to do with gcc compiler. BTW I am having gcc 4.8.2 installed my system.
Please suggest the way out for present compilation in ubuntu 14.04. Further, my makefile.def is adopted from the one *.EC2 only.
Meanwhile, I want to share another information which might help in supplying OpenSees binaries: I have copied the libs and OpenSees binary from my Ubuntu 12.04 to Ubuntu 14.04 (in ~/lib and in ~/bin) and it is working without any issue. I have tested it with few of my earlier scripts related to beam and soil-wall models.
Regards
Search found 151 matches
- Tue Feb 03, 2015 1:49 am
- Forum: Framework
- Topic: Compiling Error in Ubuntu 14.04 LTS, 64 bit
- Replies: 5
- Views: 2529
- Sat Jan 31, 2015 7:39 am
- Forum: Framework
- Topic: Compiling Error in Ubuntu 14.04 LTS, 64 bit
- Replies: 5
- Views: 2529
Compiling Error in Ubuntu 14.04 LTS, 64 bit
Dear all,
I tried to compile OpenSees (2.4.4, rev 5760) in Ubuntu 14.04 LTS and got the following error:
====================
make[1]: Leaving directory `/home/sukumar/OpenSees/OTHER/Triangle'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
/bin/sh: 1: ./OSverCreate.sh: Permission denied
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
/bin/sh: 1: ./OSverRemove.sh: Permission denied
make: *** [all] Error 126
====================
When I invoke make in OpenSees/SRC or OpenSees/SRC/tcl no error is shown.
my makefile.def is the same as that of Ubuntu 12.04, where I had successfully compiled. Also note that I have write permission in /my_home/OpenSees and also I have the bin and lib directories. All the libraries are already built.
Kindly help
Thanks and regards.
I tried to compile OpenSees (2.4.4, rev 5760) in Ubuntu 14.04 LTS and got the following error:
====================
make[1]: Leaving directory `/home/sukumar/OpenSees/OTHER/Triangle'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
/bin/sh: 1: ./OSverCreate.sh: Permission denied
make[1]: Entering directory `/home/sukumar/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/sukumar/OpenSees/SRC/tcl'
/bin/sh: 1: ./OSverRemove.sh: Permission denied
make: *** [all] Error 126
====================
When I invoke make in OpenSees/SRC or OpenSees/SRC/tcl no error is shown.
my makefile.def is the same as that of Ubuntu 12.04, where I had successfully compiled. Also note that I have write permission in /my_home/OpenSees and also I have the bin and lib directories. All the libraries are already built.
Kindly help
Thanks and regards.
- Wed Jul 30, 2014 3:55 am
- Forum: OpenSees.exe Users
- Topic: Use of Viscoelastic material in quad elements
- Replies: 5
- Views: 1724
Re: Use of Viscoelastic material in quad elements
Dear Frank and all,
Do any one has any answer to my questions? I need them urgently to start the Masters dissertation of one of my students.
Thanks
Do any one has any answer to my questions? I need them urgently to start the Masters dissertation of one of my students.
Thanks
- Tue Jul 15, 2014 7:05 am
- Forum: OpenSees.exe Users
- Topic: Question concerning earthquake directions
- Replies: 2
- Views: 801
Re: Question concerning earthquake directions
You can express the Eqke load in a prticular direction as vector sum of eqke loads in the two or three orthogonal directions.
- Fri Jul 11, 2014 6:45 am
- Forum: OpenSees.exe Users
- Topic: Input of 6x6 matrix for foundation stiffness.
- Replies: 2
- Views: 1726
Re: Input of 6x6 matrix for foundation stiffness.
Dear fmk and gopaladhikari,
It will be intersting to have such an element to include foundation impedances in all modes at one go. (I am sure, the frequency dependance of the same can be approximately handled in time domain). I think in such a case, the input parameters for the element may be the shear wave velocity and poisson's ratio of the associated nDMaterial from which the foundation impedances in six DOFs may be computed. In order to write such element can you please guide me how to handle the new/existing classes? I will be happy to contribute in this.
It will be intersting to have such an element to include foundation impedances in all modes at one go. (I am sure, the frequency dependance of the same can be approximately handled in time domain). I think in such a case, the input parameters for the element may be the shear wave velocity and poisson's ratio of the associated nDMaterial from which the foundation impedances in six DOFs may be computed. In order to write such element can you please guide me how to handle the new/existing classes? I will be happy to contribute in this.
- Fri Jul 11, 2014 6:28 am
- Forum: OpenSees.exe Users
- Topic: Useful Undocumented Commands
- Replies: 2
- Views: 2919
Re: Useful Undocumented Commands
Dear Smith
Thanks for this very useful post. I think there should be a page in the Command Manual replicating your post.
Regards.
Thanks for this very useful post. I think there should be a page in the Command Manual replicating your post.
Regards.
- Tue Feb 11, 2014 7:31 am
- Forum: OpenSees.exe Users
- Topic: Use of Viscoelastic material in quad elements
- Replies: 5
- Views: 1724
Re: Use of Viscoelastic material in quad elements
Dear Frank and all,
I have the following questions:
1. Does FEAP Material 02 is a viscoelastic material?
2. Is Feap Material02, obtained in svn trunk is operational?
3. If yes where can I get the documentation?
Thanks and Regards
I have the following questions:
1. Does FEAP Material 02 is a viscoelastic material?
2. Is Feap Material02, obtained in svn trunk is operational?
3. If yes where can I get the documentation?
Thanks and Regards
- Mon Feb 10, 2014 9:00 am
- Forum: OpenSees.exe Users
- Topic: Simple 3D building model - Linear Transformations problem?
- Replies: 9
- Views: 11018
Re: Simple 3D building model - Linear Transformations proble
Hi,
The following post may be of use. http://opensees.berkeley.edu/community/ ... =2&t=29144
Thanks.
The following post may be of use. http://opensees.berkeley.edu/community/ ... =2&t=29144
Thanks.
- Mon Feb 10, 2014 8:56 am
- Forum: OpenSees.exe Users
- Topic: the problem of installation
- Replies: 15
- Views: 14154
Re: the problem of installation
Possibly u should reinstall Tcl and while installing specufy the path as c:\ProgramFiles\Tcl.
- Mon Feb 10, 2014 8:53 am
- Forum: OpenSees.exe Users
- Topic: Question Regarding Parallel Material and Viscous Material
- Replies: 5
- Views: 1130
Re: Question Regarding Parallel Material and Viscous Materia
I believe no.Let $mat 1 be some material, $mat2 be viscous. $mat3 be the parallel of $mat1 and $mat2, and $mat4 is in series with $mat3. In such a case, the strainrate of $mat4 will not pass to $mat3 which has the viscous one ( $mat2). So finally strain rate of $mat4 will not pass to $mat2.
Hope I m correct. fmk may enlighten us in this regard.
Thanks.
Hope I m correct. fmk may enlighten us in this regard.
Thanks.
- Sun Feb 09, 2014 12:35 pm
- Forum: OpenSees.exe Users
- Topic: Question Regarding Parallel Material and Viscous Material
- Replies: 5
- Views: 1130
Re: Question Regarding Parallel Material and Viscous Materia
Dear Frank ,
Thanks a lot for your reply.
Regards.
Thanks a lot for your reply.
Regards.
- Fri Feb 07, 2014 12:36 am
- Forum: OpenSees.exe Users
- Topic: Question Regarding Parallel Material and Viscous Material
- Replies: 5
- Views: 1130
Question Regarding Parallel Material and Viscous Material
Dear all,
I have a querry regarding viscous material. The wiki page (http://opensees.berkeley.edu/wiki/index ... s_Material) says, " This material \[B]cannot be combined in parallel/series with other materials. When defined in parallel with other materials it is ignored.\[B] "
On the other other hand wiki on Parallel Material (http://opensees.berkeley.edu/wiki/index ... l_Material) says, " This command is used to construct a parallel material object made up of an arbitrary number of previously-constructed UniaxialMaterial objects."
In a recent publication (http://www.saitama-u.ac.jp/saity/items/ ... 0final.pdf), the author has proposed using parallel material in zerolength elements in which one of the materials is viscous. I think this is a promising approach to model frequency dependent impedance functions in time domain analysis of soil-structure interactions.
So would any one clarify whether the wiki on viscous material is correct or that on Parallel Material is correct?
I need an answer to start the work of one of my phD students.
Thank. Regards.
I have a querry regarding viscous material. The wiki page (http://opensees.berkeley.edu/wiki/index ... s_Material) says, " This material \[B]cannot be combined in parallel/series with other materials. When defined in parallel with other materials it is ignored.\[B] "
On the other other hand wiki on Parallel Material (http://opensees.berkeley.edu/wiki/index ... l_Material) says, " This command is used to construct a parallel material object made up of an arbitrary number of previously-constructed UniaxialMaterial objects."
In a recent publication (http://www.saitama-u.ac.jp/saity/items/ ... 0final.pdf), the author has proposed using parallel material in zerolength elements in which one of the materials is viscous. I think this is a promising approach to model frequency dependent impedance functions in time domain analysis of soil-structure interactions.
So would any one clarify whether the wiki on viscous material is correct or that on Parallel Material is correct?
I need an answer to start the work of one of my phD students.
Thank. Regards.
- Fri Dec 27, 2013 3:56 am
- Forum: OpenSees.exe Users
- Topic: Use of Viscoelastic material in quad elements
- Replies: 5
- Views: 1724
Use of Viscoelastic material in quad elements
Hi all,
This question although fits to Soil Modelling forum I am posting it here as the above forum is currently locked.
I want to find dynamic response of a backfill retained by a retaining wall. For this I want to use visco-elastic soil material. Is it possible to use visco-elastic material in quad element, which needs ndMaterial otherwise? The usual viscoelastic damper is formed as a parallel material from two uniaxial materials. I think viscoelastic planestrain material is available in ABAQUS. What should be done to extend this facility to OpenSees?
Regards and thanks
This question although fits to Soil Modelling forum I am posting it here as the above forum is currently locked.
I want to find dynamic response of a backfill retained by a retaining wall. For this I want to use visco-elastic soil material. Is it possible to use visco-elastic material in quad element, which needs ndMaterial otherwise? The usual viscoelastic damper is formed as a parallel material from two uniaxial materials. I think viscoelastic planestrain material is available in ABAQUS. What should be done to extend this facility to OpenSees?
Regards and thanks
- Tue Dec 24, 2013 7:01 am
- Forum: Framework
- Topic: Reg Download Problem (Source Code of Version 2.4.0)
- Replies: 4
- Views: 3644
Re: Reg Download Problem (Source Code of Version 2.4.0)
Dear Thomas.
Thanks a lot and sorry for delayed reply. I have successfully made OpenSees 2.4.3 in Ubuntu 12.04 LTS using your instruction.
I am pasting my makefile.def below hoping this may be useful for someone.
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework on Ubuntu 12.04 LTS, 64 bit.
#
# Written: Based on Linux 6.1 version by fmk (10.99)
# Created: (5.19.2011)
# Modified: 24.12.2013
#
############################################################################
# %---------------------------------%
# | 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 = NONE
#GRAPHIC_FLAG = -D_NOGRAPHICS
#PROGRAMMING_MODE = SEQUENTIAL
#DEBUG_MODE = NO_DEBUG
#RELIABILITY = NO_RELIABILITY
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 = /local
HOME = /home/sukumar
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
#LAPACKdir =
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
SRCdir = $(HOME)/OpenSees/SRC
AMDdir = $(HOME)/OpenSees/OTHER/AMD
DIRS = $(AMDdir) $(BLASdir) $(CBLASdir) $(LAPACKdir) $(CSPARSEdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
#DIRS = $(AMDdir) $(BLASdir) $(CBLASdir) \
# $(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
#LAPACK_LIBRARY =
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
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
#TCL_LIBRARY = /usr/lib/libtk8.5.so /usr/lib/libX11.a /usr/lib/libtcl8.5.so
TCL_LIBRARY = /usr/lib/libtk8.5.so /usr/lib/libtcl8.5.so
BLITZ_LIBRARY = /usr/lib/libblitz.a
#BLITZ_LIBRARY =
GRAPHIC_LIBRARY =/usr/lib/x86_64-linux-gnu/libGLU.a /usr/lib/x86_64-linux-gnu/libGL.so
#GRAPHIC_LIBRARY = -L/usr/lib/X11 -lX11 -lGL -lGLU
#GRAPHIC_LIBRARY = -L/usr/lib/X11 -lX11
AMD_LIBRARY = $(HOME)/lib/libAmd.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 =
# 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
#
GRAPHIC_FLAG = -D_GLX
#GRAPHIC_FLAG = -D_X11
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 \
$(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_TCL85 \
$(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
#GRAPHIC_FLAG = -D_X11
# 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) $(CSPARSE_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY) $(AMD_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.5 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
##################################################
Regards.
Thanks a lot and sorry for delayed reply. I have successfully made OpenSees 2.4.3 in Ubuntu 12.04 LTS using your instruction.
I am pasting my makefile.def below hoping this may be useful for someone.
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework on Ubuntu 12.04 LTS, 64 bit.
#
# Written: Based on Linux 6.1 version by fmk (10.99)
# Created: (5.19.2011)
# Modified: 24.12.2013
#
############################################################################
# %---------------------------------%
# | 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 = NONE
#GRAPHIC_FLAG = -D_NOGRAPHICS
#PROGRAMMING_MODE = SEQUENTIAL
#DEBUG_MODE = NO_DEBUG
#RELIABILITY = NO_RELIABILITY
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 = /local
HOME = /home/sukumar
FE = $(HOME)/OpenSees/SRC
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
#LAPACKdir =
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
SRCdir = $(HOME)/OpenSees/SRC
AMDdir = $(HOME)/OpenSees/OTHER/AMD
DIRS = $(AMDdir) $(BLASdir) $(CBLASdir) $(LAPACKdir) $(CSPARSEdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)
#DIRS = $(AMDdir) $(BLASdir) $(CBLASdir) \
# $(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
#LAPACK_LIBRARY =
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
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
#TCL_LIBRARY = /usr/lib/libtk8.5.so /usr/lib/libX11.a /usr/lib/libtcl8.5.so
TCL_LIBRARY = /usr/lib/libtk8.5.so /usr/lib/libtcl8.5.so
BLITZ_LIBRARY = /usr/lib/libblitz.a
#BLITZ_LIBRARY =
GRAPHIC_LIBRARY =/usr/lib/x86_64-linux-gnu/libGLU.a /usr/lib/x86_64-linux-gnu/libGL.so
#GRAPHIC_LIBRARY = -L/usr/lib/X11 -lX11 -lGL -lGLU
#GRAPHIC_LIBRARY = -L/usr/lib/X11 -lX11
AMD_LIBRARY = $(HOME)/lib/libAmd.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 =
# 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
#
GRAPHIC_FLAG = -D_GLX
#GRAPHIC_FLAG = -D_X11
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 \
$(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_TCL85 \
$(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
#GRAPHIC_FLAG = -D_X11
# 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) $(CSPARSE_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY) $(AMD_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.5 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
##################################################
Regards.
- Wed Oct 31, 2012 12:16 am
- Forum: Framework
- Topic: Error Compiling version 2.4.0 on Ubuntu 10.04
- Replies: 2
- Views: 2010
Re: Error Compiling version 2.4.0 on Ubuntu 10.04
Dear All,
I still need help. I have tried to change the compiler to gcc-4.1, 4.3 and 4.4. But the same error persists.
Hope some one will help me out.
Thanks.
I still need help. I have tried to change the compiler to gcc-4.1, 4.3 and 4.4. But the same error persists.
Hope some one will help me out.
Thanks.