简体   繁体   中英

Cannot open shared object file which is known

I am trying to execute a program I made on Qt throughout cygwin. It works that way on my development computer. Here I want to try it on a "new" environment.

When I type in cygwin the command : ./pm.exe -qws it returns path/to/executable/pm.exe: error while loading shared libraries: libQtXml.dll.4.8.7: cannot open shared object file: No such file or directory

What I don't understand is that this library exists and is well set : When I do which libQtXml.dll.4.8.7 it returns the right path where this file is... (this path is set in the $PATH and in the $LD_LIBRARY_PATH variables.)

I don't see what could cause the fact that the executable don't take this library into account.

Thanks for your help !

Problem solved : The error was related to missing *.dll files.

In order to know which dll is missing, run the command cygcheck ./your_exe.exe (Thanks to Benjamin T for the solution).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM