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

yolov8编译完成运行报错 #34

Closed
AndroidLwk opened this issue May 21, 2023 · 3 comments
Closed

yolov8编译完成运行报错 #34

AndroidLwk opened this issue May 21, 2023 · 3 comments

Comments

@AndroidLwk
Copy link

FAILED: app_yolov8
: && /usr/bin/c++ -Wno-error=deprecated-declarations -Wno-deprecated-declarations -g CMakeFiles/app_yolov8.dir/app_yolov8.cpp.o -o app_yolov8 -Wl,-rpath,/home/hy-20/project/TensorRT-Alpha/yolov8/cmake-build-debug:/home/hy-20/TensorRT-8.5.3.1/lib:/usr/local/cuda-11.8/lib64:/home/hy-20/opencv-4.5.5/build/lib libyolov8.so /usr/local/cuda-11.8/lib64/libcudart_static.a -ldl /usr/lib/x86_64-linux-gnu/librt.so /usr/local/cuda-11.8/lib64/libcublas.so /usr/local/cuda-11.8/lib64/libnppc.so /usr/local/cuda-11.8/lib64/libnppig.so /usr/local/cuda-11.8/lib64/libnppidei.so /usr/local/cuda-11.8/lib64/libnppial.so /home/hy-20/TensorRT-8.5.3.1/lib/libnvinfer.so /home/hy-20/TensorRT-8.5.3.1/lib/libnvinfer_plugin.so /home/hy-20/TensorRT-8.5.3.1/lib/libnvonnxparser.so /home/hy-20/TensorRT-8.5.3.1/lib/libnvcaffe_parser.so /home/hy-20/opencv-4.5.5/build/lib/libopencv_stitching.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_aruco.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_barcode.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_bgsegm.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_bioinspired.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_ccalib.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_dnn_objdetect.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_dnn_superres.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_dpm.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_face.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_freetype.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_fuzzy.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_hfs.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_img_hash.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_intensity_transform.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_line_descriptor.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_mcc.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_quality.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_rapid.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_reg.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_rgbd.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_saliency.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_stereo.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_structured_light.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_superres.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_surface_matching.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_tracking.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_videostab.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_wechat_qrcode.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_xfeatures2d.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_xobjdetect.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_xphoto.so.4.5.5 -lpthread /home/hy-20/opencv-4.5.5/build/lib/libopencv_phase_unwrapping.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_optflow.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_highgui.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_datasets.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_plot.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_text.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_videoio.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_ml.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_shape.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_ximgproc.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_video.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_imgcodecs.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_objdetect.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_calib3d.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_dnn.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_features2d.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_flann.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_photo.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_imgproc.so.4.5.5 /home/hy-20/opencv-4.5.5/build/lib/libopencv_core.so.4.5.5 && :
/usr/bin/ld: libyolov8.so: undefined reference to `sample::splitToStringVec(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, char)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

请问这是因为环境版本不匹配还是因为什么啊?

@xiaohaoo
Copy link

xiaohaoo commented Jul 8, 2023

@AndroidLwk 少链接库了,sample::splitToStringVec找不到

@sang8052
Copy link

sang8052 commented Aug 3, 2023

我也遇到了这个错误,现在已经解决。已经请求合并fix
问题是作者使用的是 tensorrt 8.4.2.4 , 在 版本号 >= 8.4.2.4 (具体未知)的 tensorrt 中,将 splitToStringVec 放在了 samples/common/sampleUtils.h 因此缺少了依赖,请求修正

sang8052 pushed a commit to sang8052/TensorRT-Alpha that referenced this issue Aug 3, 2023
修正在tensorrt 8.6.1.6 中缺失的对 /samples/common/sampleUtils.h 引用导致的编译报错
@FeiYull FeiYull closed this as completed Sep 8, 2023
@FeiYull
Copy link
Owner

FeiYull commented Dec 26, 2023

solution:#47

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

4 participants