0

这是我认为错误来自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

缺少什么?

4

0 回答 0