make命令无法识别.o文件格式

时间:2016-06-21 13:38:43

标签: ubuntu makefile g++

我正在尝试在Ubuntu上使用make安装软件。该软件名为Kakadu。我正在跟踪here中的安装指导员。在命令make -f Makefile-Linux-x86-64-gcc上,我收到此错误:

ar -rv ../../lib/Linux-x86-64-gcc/libkdu.a *.o
r - analysis.o
r - avx2_colour_local.o
r - avx2_dwt_local.o
r - avx_coder_local.o
r - avx_colour_local.o
r - block_coding_common.o
r - block_decoder.o
r - block_encoder.o
r - blocks.o
r - codestream.o
r - colour.o
r - compressed.o
r - decoder.o
r - encoder.o
r - kdu_arch.o
r - kdu_threads.o
r - kernels.o
r - messaging.o
r - mq_decoder.o
r - mq_encoder.o
r - multi_transform.o
r - params.o
r - roi.o
r - ssse3_coder_local.o
r - ssse3_colour_local.o
r - ssse3_dwt_local.o
r - synthesis.o
ranlib ../../lib/Linux-x86-64-gcc/libkdu.a
g++ -I../common -O2 -DNDEBUG -Wall -Wno-unused-function   -fPIC -m64 -msse2 -DKDU_X86_INTRINSICS  -shared -o ../../lib/Linux-x86-64-gcc/libkdu_v77R.so *.o
params.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [libkdu_v77R.so] Error 1

由于我安装了g ++,为什么params.o无法识别,但其他.o文件还可以?

1 个答案:

答案 0 :(得分:1)

执行命令

make -f Makefile-Linux-x86-64-gcc clean