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

张超 201031220001 at mail.bnu.edu.cn
Tue Dec 18 02:43:16 CET 2012


Dear Bálint,

     Thank you for your answer. The ROOT variable has been pointed to the source diretory of DFTB+ with the Makefile.common file in it, 
     and the make command has be executed in the src directory of Waveplot. But still error :   No such file or 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
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

Thank you!
chao


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.dftb-plus.info/pipermail/dftb-plus-user/attachments/20121218/30246d00/attachment-0001.html>


More information about the DFTB-Plus-User mailing list