目标''的配方失败了

时间:2017-05-24 13:50:37

标签: makefile compiler-errors cmake lib

这是我target_link_libraries文件中的CMakeLists包含,我认为错误来自:

target_link_libraries(RUNETagGenerator Qt5::Widgets Qt5::Gui Qt5::PrintSupport
                                 ${OpenCV_LIBS} 
                                 "${PROJECT_SOURCE_DIR}/../../dist/lib/libRUNETag.lib"
                                 "${PROJECT_SOURCE_DIR}/../../dist/lib/WinNTL.lib"
                                 #${Boost_LIBRARIES} 
                                 #${QWT_LIBRARY}
                                 #${POCO_FOUNDATION_LIBRARY}
                                 )

RUNETag是我成功编译的另一个包。

这是我的终端:

jaouadh100@jaouadHP:~/RUNEtag/RUNETagGenerator/build$ make
[  9%] Automatic moc for target RUNETagGenerator
[  9%] Built target RUNETagGenerator_automoc
make[2]: ***  No rule to make the target « /home/jaouadh100/RUNEtag/RUNETagGenerator/RUNETagGenerator/../../dist/lib/libRUNETag.lib », needed by « RUNETagGenerator ». Stop.
CMakeFiles/Makefile2:67 : recipe for the target  « CMakeFiles/RUNETagGenerator.dir/all » failed
make[1]: *** [CMakeFiles/RUNETagGenerator.dir/all] Erreur 2
Makefile:127 : recipe for target « all » failed
make: *** [all] Erreur 2

我的Makefile2:

#=============================================================================
# Target rules for target CMakeFiles/RUNETagGenerator_automoc.dir

# All Build rule for target.
CMakeFiles/RUNETagGenerator_automoc.dir/all:
    $(MAKE) -f CMakeFiles/RUNETagGenerator_automoc.dir/build.make CMakeFiles/RUNETagGenerator_automoc.dir/depend
    $(MAKE) -f CMakeFiles/RUNETagGenerator_automoc.dir/build.make CMakeFiles/RUNETagGenerator_automoc.dir/build
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/jaouadh100/RUNEtag/RUNETagGenerator/build/CMakeFiles --progress-num=11 "Built target RUNETagGenerator_automoc"
.PHONY : CMakeFiles/RUNETagGenerator_automoc.dir/all

# Build rule for subdir invocation for target.
CMakeFiles/RUNETagGenerator_automoc.dir/rule: cmake_check_build_system
    $(CMAKE_COMMAND) -E cmake_progress_start /home/jaouadh100/RUNEtag/RUNETagGenerator/build/CMakeFiles 1
    $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/RUNETagGenerator_automoc.dir/all
    $(CMAKE_COMMAND) -E cmake_progress_start /home/jaouadh100/RUNEtag/RUNETagGenerator/build/CMakeFiles 0
.PHONY : CMakeFiles/RUNETagGenerator_automoc.dir/rule

# Convenience name for target.
RUNETagGenerator_automoc: CMakeFiles/RUNETagGenerator_automoc.dir/rule

.PHONY : RUNETagGenerator_automoc

# clean rule for target.
CMakeFiles/RUNETagGenerator_automoc.dir/clean:
    $(MAKE) -f CMakeFiles/RUNETagGenerator_automoc.dir/build.make CMakeFiles/RUNETagGenerator_automoc.dir/clean
.PHONY : CMakeFiles/RUNETagGenerator_automoc.dir/clean

# clean rule for target.
clean: CMakeFiles/RUNETagGenerator_automoc.dir/clean

.PHONY : clean

#=============================================================================

这是我正在尝试编译LINK的项目。我正在使用Ubuntu 16.04

缺少什么?

0 个答案:

没有答案
相关问题