Open programmeddeath1 opened 1 year ago
@programmeddeath1 It seems that the ncnn-yolov8s-seg
cannot find ncnn library. Please check the following setting in CMakeLists.txt
:
include_directories(/usr/local/include)
include_directories(/usr/local/include/ncnn)
link_directories(/usr/local/lib)
BTW, make sure you build and install ncnn with the following commands:
# build part
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ ..
$ make -j$(nproc)
$ sudo make install
Hi I have already installed ncnn on the board and it is present on /usr/local/include/ncnn.
Hi I have already installed ncnn on the board and it is present on /usr/local/include/ncnn.
You could set ncnn library in CMakeLists.txt
like the following:
# Lib files
file(GLOB NCNNLIB /usr/local/lib/libncnn.a)
target_link_libraries(ncnn-yolov8s-seg ${NCNNLIB} ${OpenCV_LIBS})
I have installed ncnn and ran the ncnn examples but while running the build on the yolov8seg.cpp, i get the following error.
What could be the issue here?