what's wrong?

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
duanliang
Posts: 6
Joined: Tue Oct 24, 2006 8:51 pm
Location: jsptpd

what's wrong?

Post by duanliang »

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
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: what's wrong?

Post by fmk »

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) \
Post Reply