编译elastix二进制文件时没有规则可作为目标

时间:2019-05-30 15:34:29

标签: cmake itk elastix

我正在尝试从Elastic二进制文件编译源代码。我正在使用ITK和CMAKE。我可以编译代码,但是当我导航到构建目录并运行make install时,出现以下错误

make[2]: *** No rule to make target '/Users/tony/ITK_DIR/lib/libitkdouble-conversion-4.13.a', needed by 'bin/elastix'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:5668: Core/CMakeFiles/elastix.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

这是我的一些makefile代码。我是新手,因此如果需要更多信息,请提出要求,我会提供


.PHONY : default_target

# The main recursive all target
all:

.PHONY : all

# The main recursive preinstall target
preinstall:

.PHONY : preinstall

# The main recursive clean target
clean:

.PHONY : clean

#=============================================================================
# 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 = /private/var/folders/h7/c6g9qc8j25l92b58yr_jbc2h0000gn/T/AppTranslocation/BE140EBD-E4FD-4FE0-8DAA-7526DF6251A7/d/CMake.app/Contents/bin/cmake

# The command to remove a file.
RM = /private/var/folders/h7/c6g9qc8j25l92b58yr_jbc2h0000gn/T/AppTranslocation/BE140EBD-E4FD-4FE0-8DAA-7526DF6251A7/d/CMake.app/Contents/bin/cmake -E remove -f

# Escaping for special characters.
EQUALS = =

# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /Users/tony/Downloads/InsightToolkit-4.13.2

# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /Users/tony/ITK_DIR

1 个答案:

答案 0 :(得分:0)

您是否已将ITK配置为使用系统双重转换?如果是这样,您可能对此PR中的补丁感兴趣。如果没有,您可以在Elastix forum上询问您的问题。