Error: File format not recognized
Error: File format not recognized
我正在使用 Raspberry Pi 2 运行ning Ubuntu MATE 15.10 来处理一个项目。
我正在尝试 运行 生成文件并遇到此错误
/home/dpanagou/Quadrotors/Vicon/libs/libViconDataStreamSDK_CPP.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target '../bin/Vicon_state' failed
make[1]: *** [../bin/Vicon_state] Error 1
make[1]: Leaving directory '/home/dpanagou/Quadrotors/HLP/Vicon'
Makefile:40: recipe for target 'Vicon' failed
make: *** [Vicon] Error 2
我在 make
之前也尝试过 make clean
。
根据研究,很多人认为目标文件可能已损坏。所以我从开发人员那里下载了新文件并再次 运行 生成文件。我仍然遇到同样的错误。
这是我的 makefile:
CUR_DIR = $(shell pwd)
CFLAGS = `pkg-config --cflags lcm`
LDFLAGS = `pkg-config --libs lcm` ../src/filter_util.o ../src/util.o
vicon_lib = $(CUR_DIR:%/HLP/Vicon=%/Vicon/libs)
../bin/Vicon_state:
g++ $(CFLAGS) Vicon_state_data.cpp -o ../bin/Vicon_state -Wl,- rpath=../../Vicon/libs -L$(vicon_lib) -lViconDataStreamSDK_CPP -lDebugServices $(LDFLAGS)
请帮助提供具体说明,因为我对 Linux 和编程还很陌生。
用"file"命令检查文件格式,并与rpi自带的任何.so格式进行比较。
我不是 100% 确定,但可能是这个库是针对 raspbian 的,它的 v6 兼容 HF 与 debian 中的通用 V7-only HF?
我正在使用 Raspberry Pi 2 运行ning Ubuntu MATE 15.10 来处理一个项目。 我正在尝试 运行 生成文件并遇到此错误
/home/dpanagou/Quadrotors/Vicon/libs/libViconDataStreamSDK_CPP.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:8: recipe for target '../bin/Vicon_state' failed
make[1]: *** [../bin/Vicon_state] Error 1
make[1]: Leaving directory '/home/dpanagou/Quadrotors/HLP/Vicon'
Makefile:40: recipe for target 'Vicon' failed
make: *** [Vicon] Error 2
我在 make
之前也尝试过 make clean
。
根据研究,很多人认为目标文件可能已损坏。所以我从开发人员那里下载了新文件并再次 运行 生成文件。我仍然遇到同样的错误。
这是我的 makefile:
CUR_DIR = $(shell pwd)
CFLAGS = `pkg-config --cflags lcm`
LDFLAGS = `pkg-config --libs lcm` ../src/filter_util.o ../src/util.o
vicon_lib = $(CUR_DIR:%/HLP/Vicon=%/Vicon/libs)
../bin/Vicon_state:
g++ $(CFLAGS) Vicon_state_data.cpp -o ../bin/Vicon_state -Wl,- rpath=../../Vicon/libs -L$(vicon_lib) -lViconDataStreamSDK_CPP -lDebugServices $(LDFLAGS)
请帮助提供具体说明,因为我对 Linux 和编程还很陌生。
用"file"命令检查文件格式,并与rpi自带的任何.so格式进行比较。
我不是 100% 确定,但可能是这个库是针对 raspbian 的,它的 v6 兼容 HF 与 debian 中的通用 V7-only HF?