Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w wątku Administracja.
Wątki z problemami zamieszczone w dziale "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Autor Wątek: Błąd kompilacji  (Przeczytany 1643 razy)

CacholaPL

  • Gość
Błąd kompilacji
« dnia: Sierpień 25, 2015, 07:41:30 pm »
Witam, próbuję skompilować bibliotekę NvModel (z NVIDIA Gameworks), jednak w trakcie kompilacji wyskakuje błąd, który nie jest powiązany z kodem biblioteki:

konmateusz@Komputer:~/NVIDIAGameWorks/extensions/build/linux64$ make -f Makefile.NvModel.mk
make: clean: Polecenie nie znalezione
Makefile.NvModel.mk:58: polecenia dla obiektu 'clean_NvModel_debug' nie powiodły się
make: *** [clean_NvModel_debug] Błąd 127

Zawartość pliku Makefile:

Cytuj
# Makefile generated by XPJ for linux64
-include Makefile.custom
ProjectName = NvModel
NvModel_cppfiles   += ./../../src/NvModel/NvGLModel.cpp
NvModel_cppfiles   += ./../../src/NvModel/NvModel.cpp
NvModel_cppfiles   += ./../../src/NvModel/NvModelObj.cpp
NvModel_cppfiles   += ./../../src/NvModel/NvModelQuery.cpp
NvModel_cppfiles   += ./../../src/NvModel/NvShapes.cpp

NvModel_cpp_debug_dep    = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.debug.P, $(NvModel_cppfiles)))))
NvModel_cc_debug_dep    = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.debug.P, $(NvModel_ccfiles)))))
NvModel_c_debug_dep      = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.debug.P, $(NvModel_cfiles)))))
NvModel_debug_dep      = $(NvModel_cpp_debug_dep) $(NvModel_cc_debug_dep) $(NvModel_c_debug_dep)
-include $(NvModel_debug_dep)
NvModel_cpp_release_dep    = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.release.P, $(NvModel_cppfiles)))))
NvModel_cc_release_dep    = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.release.P, $(NvModel_ccfiles)))))
NvModel_c_release_dep      = $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.release.P, $(NvModel_cfiles)))))
NvModel_release_dep      = $(NvModel_cpp_release_dep) $(NvModel_cc_release_dep) $(NvModel_c_release_dep)
-include $(NvModel_release_dep)
NvModel_debug_hpaths    :=
NvModel_debug_hpaths    += ./../../src/NvModel
NvModel_debug_hpaths    += ./../../include
NvModel_debug_hpaths    += ./../../externals/include
NvModel_debug_hpaths    += ./../../externals/include/GLFW
NvModel_debug_lpaths    :=
NvModel_debug_defines   := $(NvModel_custom_defines)
NvModel_debug_defines   += LINUX=1
NvModel_debug_defines   += _LIB
NvModel_debug_defines   += _DEBUG
NvModel_debug_libraries :=
NvModel_debug_libraries += pthread
NvModel_debug_libraries += glfw3
NvModel_debug_common_cflags   := $(NvModel_custom_cflags)
NvModel_debug_common_cflags    += -MMD
NvModel_debug_common_cflags    += $(addprefix -D, $(NvModel_debug_defines))
NvModel_debug_common_cflags    += $(addprefix -I, $(NvModel_debug_hpaths))
NvModel_debug_common_cflags  += -m64
NvModel_debug_cflags   := $(NvModel_debug_common_cflags)
NvModel_debug_cflags  += -malign-double -funwind-tables -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-but-set-variable -Wno-switch -Wno-unused-variable -Wno-unused-function
NvModel_debug_cflags  += -funwind-tables -O0 -g -ggdb -fno-omit-frame-pointer
NvModel_debug_cppflags   := $(NvModel_debug_common_cflags)
NvModel_debug_cppflags  += -malign-double -funwind-tables -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-but-set-variable -Wno-switch -Wno-unused-variable -Wno-unused-function
NvModel_debug_cppflags  += -Wno-reorder
NvModel_debug_cppflags  += -funwind-tables -O0 -g -ggdb -fno-omit-frame-pointer
NvModel_debug_lflags    := $(NvModel_custom_lflags)
NvModel_debug_lflags    += $(addprefix -L, $(NvModel_debug_lpaths))
NvModel_debug_lflags    += -Wl,--start-group $(addprefix -l, $(NvModel_debug_libraries)) -Wl,--end-group
NvModel_debug_lflags  += -m64
NvModel_debug_lflags  += -m64
NvModel_debug_objsdir  = $(OBJS_DIR)/NvModel_debug
NvModel_debug_cpp_o    = $(addprefix $(NvModel_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(NvModel_cppfiles)))))
NvModel_debug_cc_o    = $(addprefix $(NvModel_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(NvModel_ccfiles)))))
NvModel_debug_c_o      = $(addprefix $(NvModel_debug_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(NvModel_cfiles)))))
NvModel_debug_obj      = $(NvModel_debug_cpp_o) $(NvModel_debug_cc_o) $(NvModel_debug_c_o)
NvModel_debug_bin      := ./../../lib/linux64/libNvModelD.a

clean_NvModel_debug:
   $(ECHO) clean NvModel debug
   $(RMDIR) $(NvModel_debug_objsdir)
   $(RMDIR) $(NvModel_debug_bin)

build_NvModel_debug: postbuild_NvModel_debug
postbuild_NvModel_debug: mainbuild_NvModel_debug
mainbuild_NvModel_debug: prebuild_NvModel_debug $(NvModel_debug_bin)
prebuild_NvModel_debug:

$(NvModel_debug_bin): $(NvModel_debug_obj)
   mkdir -p `dirname ./../../lib/linux64/libNvModelD.a`
   $(AR) rcs $(NvModel_debug_bin) $(NvModel_debug_obj)
   $(ECHO) building $@ complete!

NvModel_debug_DEPDIR = $(dir $(@))/$(*F)
$(NvModel_debug_cpp_o): $(NvModel_debug_objsdir)/%.o:
   $(ECHO) NvModel: compiling debug $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cppfiles))...
   mkdir -p $(dir $(@))
   $(CXX) $(NvModel_debug_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cppfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cppfiles))))))
   cp $(NvModel_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cppfiles))))).debug.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cppfiles))))).debug.P; \
     rm -f $(NvModel_debug_DEPDIR).d

$(NvModel_debug_cc_o): $(NvModel_debug_objsdir)/%.o:
   $(ECHO) NvModel: compiling debug $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_ccfiles))...
   mkdir -p $(dir $(@))
   $(CXX) $(NvModel_debug_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_ccfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_ccfiles))))))
   cp $(NvModel_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_ccfiles))))).debug.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_ccfiles))))).debug.P; \
     rm -f $(NvModel_debug_DEPDIR).d

$(NvModel_debug_c_o): $(NvModel_debug_objsdir)/%.o:
   $(ECHO) NvModel: compiling debug $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cfiles))...
   mkdir -p $(dir $(@))
   $(CC) $(NvModel_debug_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cfiles))))))
   cp $(NvModel_debug_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cfiles))))).debug.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_debug_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_debug_objsdir),, $@))), $(NvModel_cfiles))))).debug.P; \
     rm -f $(NvModel_debug_DEPDIR).d

NvModel_release_hpaths    :=
NvModel_release_hpaths    += ./../../src/NvModel
NvModel_release_hpaths    += ./../../include
NvModel_release_hpaths    += ./../../externals/include
NvModel_release_hpaths    += ./../../externals/include/GLFW
NvModel_release_lpaths    :=
NvModel_release_defines   := $(NvModel_custom_defines)
NvModel_release_defines   += LINUX=1
NvModel_release_defines   += _LIB
NvModel_release_defines   += NDEBUG
NvModel_release_libraries :=
NvModel_release_libraries += pthread
NvModel_release_libraries += glfw3
NvModel_release_common_cflags   := $(NvModel_custom_cflags)
NvModel_release_common_cflags    += -MMD
NvModel_release_common_cflags    += $(addprefix -D, $(NvModel_release_defines))
NvModel_release_common_cflags    += $(addprefix -I, $(NvModel_release_hpaths))
NvModel_release_common_cflags  += -m64
NvModel_release_cflags   := $(NvModel_release_common_cflags)
NvModel_release_cflags  += -malign-double -funwind-tables -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-but-set-variable -Wno-switch -Wno-unused-variable -Wno-unused-function
NvModel_release_cflags  += -funwind-tables -O2 -fno-omit-frame-pointer
NvModel_release_cppflags   := $(NvModel_release_common_cflags)
NvModel_release_cppflags  += -malign-double -funwind-tables -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-but-set-variable -Wno-switch -Wno-unused-variable -Wno-unused-function
NvModel_release_cppflags  += -Wno-reorder
NvModel_release_cppflags  += -funwind-tables -O2 -fno-omit-frame-pointer
NvModel_release_lflags    := $(NvModel_custom_lflags)
NvModel_release_lflags    += $(addprefix -L, $(NvModel_release_lpaths))
NvModel_release_lflags    += -Wl,--start-group $(addprefix -l, $(NvModel_release_libraries)) -Wl,--end-group
NvModel_release_lflags  += -m64
NvModel_release_lflags  += -m64
NvModel_release_objsdir  = $(OBJS_DIR)/NvModel_release
NvModel_release_cpp_o    = $(addprefix $(NvModel_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cpp, %.cpp.o, $(NvModel_cppfiles)))))
NvModel_release_cc_o    = $(addprefix $(NvModel_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.cc, %.cc.o, $(NvModel_ccfiles)))))
NvModel_release_c_o      = $(addprefix $(NvModel_release_objsdir)/, $(subst ./, , $(subst ../, , $(patsubst %.c, %.c.o, $(NvModel_cfiles)))))
NvModel_release_obj      = $(NvModel_release_cpp_o) $(NvModel_release_cc_o) $(NvModel_release_c_o)
NvModel_release_bin      := ./../../lib/linux64/libNvModel.a

clean_NvModel_release:
   $(ECHO) clean NvModel release
   $(RMDIR) $(NvModel_release_objsdir)
   $(RMDIR) $(NvModel_release_bin)

build_NvModel_release: postbuild_NvModel_release
postbuild_NvModel_release: mainbuild_NvModel_release
mainbuild_NvModel_release: prebuild_NvModel_release $(NvModel_release_bin)
prebuild_NvModel_release:

$(NvModel_release_bin): $(NvModel_release_obj)
   mkdir -p `dirname ./../../lib/linux64/libNvModel.a`
   $(AR) rcs $(NvModel_release_bin) $(NvModel_release_obj)
   $(ECHO) building $@ complete!

NvModel_release_DEPDIR = $(dir $(@))/$(*F)
$(NvModel_release_cpp_o): $(NvModel_release_objsdir)/%.o:
   $(ECHO) NvModel: compiling release $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cppfiles))...
   mkdir -p $(dir $(@))
   $(CXX) $(NvModel_release_cppflags) -c $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cppfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cppfiles))))))
   cp $(NvModel_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cppfiles))))).release.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cpp.o,.cpp, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cppfiles))))).release.P; \
     rm -f $(NvModel_release_DEPDIR).d

$(NvModel_release_cc_o): $(NvModel_release_objsdir)/%.o:
   $(ECHO) NvModel: compiling release $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_ccfiles))...
   mkdir -p $(dir $(@))
   $(CXX) $(NvModel_release_cppflags) -c $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_ccfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_ccfiles))))))
   cp $(NvModel_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_ccfiles))))).release.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .cc.o,.cc, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_ccfiles))))).release.P; \
     rm -f $(NvModel_release_DEPDIR).d

$(NvModel_release_c_o): $(NvModel_release_objsdir)/%.o:
   $(ECHO) NvModel: compiling release $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cfiles))...
   mkdir -p $(dir $(@))
   $(CC) $(NvModel_release_cflags) -c $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cfiles)) -o $@
   mkdir -p $(dir $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cfiles))))))
   cp $(NvModel_release_DEPDIR).d $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cfiles))))).release.P; \
     sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
      -e '/^$$/ d' -e 's/$$/ :/' < $(NvModel_release_DEPDIR).d >> $(addprefix $(DEPSDIR)/, $(subst ./, , $(subst ../, , $(filter %$(strip $(subst .c.o,.c, $(subst $(NvModel_release_objsdir),, $@))), $(NvModel_cfiles))))).release.P; \
     rm -f $(NvModel_release_DEPDIR).d

clean_NvModel:  clean_NvModel_debug clean_NvModel_release
   rm -rf $(DEPSDIR)

export VERBOSE
ifndef VERBOSE
.SILENT:
endif