我正在尝试在Ubuntu 16.04上从源代码构建OpenVSP。
到目前为止,我已成功地按照说明操作 - 直到我到 make package 这一行。
因此,当我运行命令make package
时,我收到错误"没有规则来构建目标"。
我的第一直觉是寻找目标'套餐'在Makefile中(如下所示):
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /opt/OpenVSP/Libraries
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /opt/OpenVSP/build
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /opt/OpenVSP/build/CMakeFiles /opt/OpenVSP/build/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /opt/OpenVSP/build/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named FLTK
# Build rule for target.
FLTK: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 FLTK
.PHONY : FLTK
# fast build rule for target.
FLTK/fast:
$(MAKE) -f CMakeFiles/FLTK.dir/build.make CMakeFiles/FLTK.dir/build
.PHONY : FLTK/fast
#=============================================================================
# Target rules for targets named CPPTEST
# Build rule for target.
CPPTEST: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 CPPTEST
.PHONY : CPPTEST
# fast build rule for target.
CPPTEST/fast:
$(MAKE) -f CMakeFiles/CPPTEST.dir/build.make CMakeFiles/CPPTEST.dir/build
.PHONY : CPPTEST/fast
#=============================================================================
# Target rules for targets named CODEELI
# Build rule for target.
CODEELI: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 CODEELI
.PHONY : CODEELI
# fast build rule for target.
CODEELI/fast:
$(MAKE) -f CMakeFiles/CODEELI.dir/build.make CMakeFiles/CODEELI.dir/build
.PHONY : CODEELI/fast
#=============================================================================
# Target rules for targets named EIGEN
# Build rule for target.
EIGEN: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 EIGEN
.PHONY : EIGEN
# fast build rule for target.
EIGEN/fast:
$(MAKE) -f CMakeFiles/EIGEN.dir/build.make CMakeFiles/EIGEN.dir/build
.PHONY : EIGEN/fast
#=============================================================================
# Target rules for targets named LIBIGES
# Build rule for target.
LIBIGES: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 LIBIGES
.PHONY : LIBIGES
# fast build rule for target.
LIBIGES/fast:
$(MAKE) -f CMakeFiles/LIBIGES.dir/build.make CMakeFiles/LIBIGES.dir/build
.PHONY : LIBIGES/fast
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... FLTK"
@echo "... rebuild_cache"
@echo "... CPPTEST"
@echo "... CODEELI"
@echo "... EIGEN"
@echo "... LIBIGES"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
目标套餐' MakeFile中不存在。
当我运行make
时,我得到以下输出:
Built target FLTK
Built target CPPTEST
Built target CODEELI
Built target EIGEN
Built target LIBIGES
但是,最终的二进制文件(vps)并未构建。有没有人能够在Ubuntu 16.0.4上构建OpenVSP - 我该如何解决这个问题?