Replies: 13 comments 1 reply
-
@MjiS why don't you use cmake/make build ? I see that you doing manually ? |
Beta Was this translation helpful? Give feedback.
-
Thank you for replying. I actually did use cmake. But I'm still unable to fix this issue. I tried fixing the linking issue of OpenCV but I'm still unable to resolve it. |
Beta Was this translation helpful? Give feedback.
-
@MjiS what is your distro ? Because I have CI on repo is basically compile for ubuntu system You can clearly see how I got Vulkan and install Opencv. I didn't compile opencv and I used what ubuntu offer me in their repo. Also Ubuntu on github uses Ubuntu 22.04. I did not use olders systems since they are EOL. |
Beta Was this translation helpful? Give feedback.
-
I am also using Ubuntu 22.04.2 LTS. Thanks for pointing out the workflow. |
Beta Was this translation helpful? Give feedback.
-
We have workflow for windows but I did not tested fully yet. We just compile it. |
Beta Was this translation helpful? Give feedback.
-
I tried it on windows and Ubuntu but I am still stuck with the issues. Can you provide an .exe file so I can test it on my hardware. |
Beta Was this translation helpful? Give feedback.
-
OpenCV errors are gone and now I'm getting these error related to NCNN. Command I used: Error Log: |
Beta Was this translation helpful? Give feedback.
-
Do not include opencv twice from 2 different source and please USE "cmake" it will make easier. just install cmake and
If you already install opencv and vulkanSDK , which I can see that you have opencv part done you should be able to install without problem. |
Beta Was this translation helpful? Give feedback.
-
I did use cmake and here are the log for cmake .. CMake Warning at external/ncnn/CMakeLists.txt:503 (message): -- Target arch: x86 64bit Here is the command for compilation: g++ -o main gfpgan-ncnn-vulkan-demo.cpp face.cpp gfpgan.cpp realesrgan.cpp -L/home/mji/Documents/ncnn/build/install/lib -lncnn -fopenmp -lvulkan -L/home/mji/opencv-4.0.0/build/lib -lopencv_gapi -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_dnn -lopencv_flann -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_core -I/home/mji/Music/GFPGAN-ncnn-vulkan/src/external/ncnn/src -I/home/mji/Music/GFPGAN-ncnn-vulkan/src/build/external/ncnn/src -I/home/mji/Music/GFPGAN-ncnn-vulkan/src/include -I/usr/include/opencv4 -L/usr/lib/x86_64-linux-gnu/ -lglslang Here are the logs: |
Beta Was this translation helpful? Give feedback.
-
Update: Error Log: |
Beta Was this translation helpful? Give feedback.
-
Did you type this yourself ? |
Beta Was this translation helpful? Give feedback.
-
First please remove that opencv 4.0.0 from path and do this commands. I see that you have vulkan so that should be fine. sudo apt update
sudo apt install libopencv-dev python3-opencv -y
git clone --recursive https://github.com/onuralpszr/GFPGAN-ncnn-vulkan.git
cd GFPGAN-ncnn-vulkan
mkdir build && cd build
cmake ../src
cmake --build . -j 2 |
Beta Was this translation helpful? Give feedback.
-
I used gpt for this command as per gpt's suggestion, order of import matters. Previous commands were typed by me. Don't use this and use what I sent and also please install opencv via commands I typed as well. Use "cmake" it is so much easier to control and compile, you don't need to think THOSE commands at all. And remove opencv 4.0.0 from your path and etc. Re-check my workflow and my commands I sent you. |
Beta Was this translation helpful? Give feedback.
-
Hi,


I have tried building and running your repository. When I compile it on Ubuntu I get the following errors which I think are related to my OpenCV version or NCNN.
Can you specify the version you have used or recommend?
Currently, I'm using the latest OpenCV and NCNN versions.
Beta Was this translation helpful? Give feedback.
All reactions