I want to compile OS with UBUNTU,but there is something wrong:
make[1]:正在离开目录 `/home/duanliang/OpenSees/SRC/tcl'
make[1]: 正在进入目录 `/home/duanliang/OpenSees/SRC/modelbuilder/tcl'
make[2]: 正在进入目录 `/home/duanliang/OpenSees/SRC/tcl'
make[2]: 没有什么可以做的为 `tk'。
make[2]:正在离开目录 `/home/duanliang/OpenSees/SRC/tcl'
/home/duanliang/OpenSees/SRC/tcl/commands.o: In function `optimization(void*, Tcl_Interp*, int, char const**)':
commands.cpp:(.text+0x12123): undefined reference to `TclOptimizationBuilder::TclOptimizationBuilder(Domain&, Tcl_Interp*)'
/home/duanliang/lib/libOpenSees.a(AMDNumberer.o): In function `AMD::number(Graph&, int)':
AMDNumberer.cpp:(.text+0x18e): undefined reference to `amd_order'
collect2: ld returned 1 exit status
make[1]: *** [tk] 错误 1
make[1]:正在离开目录 `/home/duanliang/OpenSees/SRC/modelbuilder/tcl'
make: *** [tk] 错误 2
what's wrong?
thanks
what's wrong?
Moderators: silvia, selimgunay, Moderators
Re: what's wrong?
new source code was added for AMD in the OTHER since the Makefile.def you used was created .. seach in the MAKES directory for one that uses AMD and make the same changes to your code, basically
1) define the directory
AMDdir = $(HOME)/OpenSees/OTHER/AMD
2) add it to the list of directories to be compiled:
DIRS =
$(AMDdir) \
$(AMDdir) \
3) define a library
AMD_LIBRARY = $(HOME)/lib/libAMD.a
4) and the lib to the MACHINE_LIBS
$(AMD_LIBRARY) \
1) define the directory
AMDdir = $(HOME)/OpenSees/OTHER/AMD
2) add it to the list of directories to be compiled:
DIRS =
$(AMDdir) \
$(AMDdir) \
3) define a library
AMD_LIBRARY = $(HOME)/lib/libAMD.a
4) and the lib to the MACHINE_LIBS
$(AMD_LIBRARY) \