Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems when i use the command:make #4

Open
banqimiao opened this issue Mar 30, 2018 · 6 comments
Open

some problems when i use the command:make #4

banqimiao opened this issue Mar 30, 2018 · 6 comments

Comments

@banqimiao
Copy link

I installed opencv3.3.0 on my ubuntu(14.04),and caffe without CUDA.
I followed the installtation instuction. When I use the command "make",it appears some problems on my terminal,like this:
/usr/bin/ld: 当搜索用于 /usr/local/AID/Caffe-HRT/lib/libcaffe.so 时跳过不兼容的 -lcaffe
/usr/bin/ld: 当搜索用于 /usr/local/AID/Caffe-HRT/lib/libcaffe.a 时跳过不兼容的 -lcaffe
/usr/bin/ld: 找不到 -lcaffe
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute.so 时跳过不兼容的 -larm_compute
/usr/bin/ld: 找不到 -larm_compute
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute_core.so 时跳过不兼容的 -larm_compute_core
/usr/bin/ld: 找不到 -larm_compute_core
/usr/bin/ld: 当搜索用于 /usr/local/AID/ComputeLibrary/lib/libarm_compute_graph.so 时跳过不兼容的 -larm_compute_graph
/usr/bin/ld: 找不到 -larm_compute_graph
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_dnn.so 时跳过不兼容的 -lopencv_dnn
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_ml.so 时跳过不兼容的 -lopencv_ml
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_objdetect.so 时跳过不兼容的 -lopencv_objdetect
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_shape.so 时跳过不兼容的 -lopencv_shape
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_stitching.so 时跳过不兼容的 -lopencv_stitching
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_superres.so 时跳过不兼容的 -lopencv_superres
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_videostab.so 时跳过不兼容的 -lopencv_videostab
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_calib3d.so 时跳过不兼容的 -lopencv_calib3d
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_features2d.so 时跳过不兼容的 -lopencv_features2d
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_highgui.so 时跳过不兼容的 -lopencv_highgui
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_videoio.so 时跳过不兼容的 -lopencv_videoio
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so 时跳过不兼容的 -lopencv_imgcodecs
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_video.so 时跳过不兼容的 -lopencv_video
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_photo.so 时跳过不兼容的 -lopencv_photo
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_imgproc.so 时跳过不兼容的 -lopencv_imgproc
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_flann.so 时跳过不兼容的 -lopencv_flann
/usr/bin/ld: 当搜索用于 /usr/local/AID/opencv3.3.0/lib/libopencv_core.so 时跳过不兼容的 -lopencv_core
collect2: error: ld returned 1 exit status
make: *** [build/bin/camera] 错误 1
what's the matter?
I don't have ideas.

@xcls1117
Copy link
Contributor

xcls1117 commented Apr 2, 2018

Change ./detect/Makefile may solver your problem. It seems that you don't have caffe-hrt and arm computelibrary installed in /usr/local/AID. See readme for the target platform.

@sejal-gupta
Copy link

I followed the installation instructions but I get the following error during the make command.
g++ -std=c++11 pkg-config caffe-hrt --cflags -DCPU_ONLY=1 -Wno-sign-compare pkg-config --cflags opencv -Wall -g -I./include -DMODEL_DIR="/home/sony/FaceRecognition-master/models" -c detect/caffe_mtcnn.cpp -o build/detect/caffe_mtcnn.o
In file included from /usr/local/AID/Caffe-HRT/include/caffe/blob.hpp:9:0,
from /usr/local/AID/Caffe-HRT/include/caffe/caffe.hpp:13,
from ./include/caffe_mtcnn.hpp:7,
from detect/caffe_mtcnn.cpp:5:
/usr/local/AID/Caffe-HRT/include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
/usr/local/AID/Caffe-HRT/include/caffe/proto/caffe.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
/usr/local/AID/Caffe-HRT/include/caffe/proto/caffe.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
^
Makefile:71: recipe for target 'build/detect/caffe_mtcnn.o' failed
make: *** [build/detect/caffe_mtcnn.o] Error 1

Can someone please help me solve this error

@xcls1117
Copy link
Contributor

xcls1117 commented Apr 8, 2018

@sejal-gupta You may have the newer version of Proto-buf, use protoc --version to check. We recommend libprotoc 2.6.1

@sejal-gupta
Copy link

Thank you @xcls1117
I got another error but the previous one was fixed.
g++ build/bin/camera.o ./build/detect/mtcnn.o ./build/detect/comm_lib.o ./build/detect/caffe_mtcnn.o ./build/align/face_align.o ./build/align/svd.o ./build/align/scale_angle.o ./build/lib/utils.o ./build/lib/network_shell.o ./build/lib/telnet_buf.o ./build/lib/json.o ./build/lib/log.o ./build/lib/perf.o ./build/extract/feature_extractor.o ./build/extract/lightened_cnn.o ./build/verify/face_verify.o ./build/verify/simple_verifier.o ./build/store/face_mem_store.o -o build/bin/camera pkg-config caffe-hrt --libs pkg-config computelibrary --libs pkg-config --libs opencv -lprotobuf -lboost_system -lglog -lreadline -lpthread
/usr/bin/ld: skipping incompatible /usr/local/AID/Caffe-HRT/lib/libcaffe.so when searching for -lcaffe
/usr/bin/ld: skipping incompatible /usr/local/AID/Caffe-HRT/lib/libcaffe.a when searching for -lcaffe
/usr/bin/ld: cannot find -lcaffe
/usr/bin/ld: skipping incompatible /usr/local/AID/ComputeLibrary/lib/libarm_compute.so when searching for -larm_compute
/usr/bin/ld: cannot find -larm_compute
/usr/bin/ld: skipping incompatible /usr/local/AID/ComputeLibrary/lib/libarm_compute_core.so when searching for -larm_compute_core
/usr/bin/ld: cannot find -larm_compute_core
/usr/bin/ld: skipping incompatible /usr/local/AID/ComputeLibrary/lib/libarm_compute_graph.so when searching for -larm_compute_graph
/usr/bin/ld: cannot find -larm_compute_graph
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_dnn.so when searching for -lopencv_dnn
/usr/bin/ld: cannot find -lopencv_dnn
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_ml.so when searching for -lopencv_ml
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_objdetect.so when searching for -lopencv_objdetect
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_shape.so when searching for -lopencv_shape
/usr/bin/ld: cannot find -lopencv_shape
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_stitching.so when searching for -lopencv_stitching
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_superres.so when searching for -lopencv_superres
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_videostab.so when searching for -lopencv_videostab
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_calib3d.so when searching for -lopencv_calib3d
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_features2d.so when searching for -lopencv_features2d
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_highgui.so when searching for -lopencv_highgui
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_videoio.so when searching for -lopencv_videoio
/usr/bin/ld: cannot find -lopencv_videoio
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_imgcodecs.so when searching for -lopencv_imgcodecs
/usr/bin/ld: cannot find -lopencv_imgcodecs
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_video.so when searching for -lopencv_video
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_photo.so when searching for -lopencv_photo
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_imgproc.so when searching for -lopencv_imgproc
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_flann.so when searching for -lopencv_flann
/usr/bin/ld: skipping incompatible /usr/local/AID/opencv3.3.0/lib/libopencv_core.so when searching for -lopencv_core
collect2: error: ld returned 1 exit status
Makefile:75: recipe for target 'build/bin/camera' failed
make: *** [build/bin/camera] Error 1

@xcls1117
Copy link
Contributor

xcls1117 commented Apr 8, 2018

@sejal-gupta See the answer to @banqimiao question. As a reminder, install Caffe-HRT first can pretty mush solve all the dependency problems! https://github.com/OAID/Caffe-HRT.

@sejal-gupta
Copy link

Thank you so much @xcls1117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants