-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to find shared libraries after installing DeepLabel #39
Comments
That's just a configuration file. When you build the program you'll get a binary file. Did you compile deeplabel? |
It says "Project MESSAGE: Linux" |
Apologies I misunderstood, see above. To run deeplabel once you've compiled it, a new executable will be created. The Pro file is for configuration, it's not the program. Do you see a folder called release anywhere? |
Yes there is folder called release. As I try to run ./deeplabel in it, it shows me another error of "./deeplabel: error while loading shared libraries: libopencv_core.so.4.5: cannot open shared object file: No such file or directory" even though I had installed Opencv. |
Can you paste the output from But that is indeed the file. You can also try to double check by opening the Pro file in Qt Creator and trying to run it through there. It sounds like you need to set up your PATH to include the OpenCV libraries. |
Here is the output of the same linux-vdso.so.1 (0x00007ffd99cd3000) |
Ok, couple of follow ups:
|
Sure:
cd opencv |
PATH is a system variable - it doesn't have anything to do with deelabel. It's where Linux will look for libraries when a program runs. http://www.linfo.org/path_env_var.html Can you confirm where the OpenCV library is installed to? (something like |
Ohh okay. While searching online I found a way: |
Oops, I haven't had coffee yet. PATH is used for binaries on Linux, but you
can also try setting LD_LIBRARY_PATH to the folder where your opencv
libraries are installed to.
https://www.tecmint.com/understanding-shared-libraries-in-linux/
…On Fri, 3 Mar 2023 at 11:43, absagargupta ***@***.***> wrote:
Ohh okay.
My PATH variable does not contain any opencv related variable. Here is the
output to echo $PATH
"/home/sagar/.pyenv/plugins/pyenv-virtualenv/shims:/home/sagar/.pyenv/bin:/home/sagar/miniconda3/condabin:/home/sagar/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
"
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYDMJ7YKYSPNBE6GMJP5YTW2HDO5ANCNFSM6AAAAAAVOLTREE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thanks so much it got resolved. I set the path using the LD_LIBRARY_PATH. But Now I am getting another error of "./deeplabel: symbol lookup error: ./deeplabel: undefined symbol: _ZN2cv3dnn14dnn4_v202106083Net20setPreferableBackendEi" on running it. Should I open another issue or continue here ? |
We can still continue here, that looks like we can't find some function in opencv (part of the DNN module). Can you run the build script for opencv and paste the output of cmake? It should list which modules were built. It's possible that you're missing some dependency for opencv that caused it to skip some module. See here for the options that are used on GitHub actions: https://github.com/jveitchmichaelis/deeplabel/blob/master/.github/workflows/build_ubuntu.yml |
Sorry My bad. Actually I had earlier same version of openCV installed in another path and that was in my LD_LIBRARY. I unset the variables and gave the path of the openCV that you gave along with it. It started working after that. Thank you so much. You are a saviour. Coffee is on me if and when we meet. |
Fantastic. Please feel free to post another issue if you run into trouble :) |
Hi there
After the build as soo as I tried running it from the terminal with ./DeepLabel.pro, I would get an error
"/DeepLabel.pro: line 7: QT: command not found
./DeepLabel.pro: line 9: syntax error near unexpected token
QT_MAJOR_VERSION,' ./DeepLabel.pro: line 9:
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets'"
Also I have already installed QT and is working on Ubuntu20.04. Any help will be appreciated
The text was updated successfully, but these errors were encountered: