[DFTB-Plus-User] How to install waveplot?

张超 201031220001 at mail.bnu.edu.cn
Mon Dec 17 10:15:45 CET 2012


Dear Bálint,

     Thank you for your answer.
     What means for "the SRC variable in the makefile points to the DFTB+ source directory"?
     The dftb+ is put in the /public/home/zhangchao/mnt/DFTB/dftb+_1.2_src   
     The waveplot is put in the /public/home/zhangchao/mnt/DFTB/src
     
     The GNUmakefile in the waveplot(src) is as follow,
 
      # Build and test main dftb application.
############################################################################
#  Global variables
############################################################################

# Source root directory (containing Makefile.common, Makefile.objdir, etc.)
ROOT = /public/home/zhangchao/mnt/DFTB/dftb+_1.2_src

# target executables (have to be defined, if you want to use make (un)install)
TARGETS = waveplot

############################################################################
#  Put objects in separate dir
############################################################################

ifeq (,$(filter _obj%,$(notdir $(CURDIR))))
include $(ROOT)/Makefile.objdir
else

############################################################################
# Usual Makefile (executed in the object directory)
############################################################################

# Default target (declared *before* importing global makefiles).
.PHONY: all
all: $(TARGETS)

# Include global dependencies, global rules, and local dependencies.
include $(ROOT)/Makefile.common
include Makefile.dep

# Target definitions (declared *after* importing necessary makefiles).
waveplot: $(waveplot.o)
        $(link-target)

############################################################################
endif


Then, 
cd  /public/home/zhangchao/mnt/DFTB/src
zhangchao at ibnode31:~/public/home/zhangchao/mnt/DFTB/src> make

make[1]: Entering directory `/public/home/zhangchao/mnt/DFTB/dftb+_1.2_src/_obj_x86_64-linux-ifort'
/public/home/zhangchao/mnt/DFTB/src/GNUmakefile:30: 

/public/home/zhangchao/mnt/DFTB/src//public/home/zhangchao/mnt/DFTB/dftb+_1.2_src/Makefile.common: No such file or directory
make[1]: *** No rule to make target `/public/home/zhangchao/mnt/DFTB/src//public/home/zhangchao/mnt/DFTB/dftb+_1.2_src/Makefile.common'.  

Stop.
make[1]: Leaving directory `/public/home/zhangchao/mnt/DFTB/dftb+_1.2_src/_obj_x86_64-linux-ifort'
make: *** [/public/home/zhangchao/mnt/DFTB/dftb+_1.2_src/_obj_x86_64-linux-ifort] Error 2

why Error?

Thank you!
chao

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.dftb-plus.info/pipermail/dftb-plus-user/attachments/20121217/94239366/attachment.html>


More information about the DFTB-Plus-User mailing list