dyld: Library not loaded: QtGui.framework/Versions/4/QtGui
Referenced from: /usr/local/lib/libopencv_highgui.2.4.dylib
Reason: image not found
(lldb)
Can anyone help to fix this problem ?
The library seems to be missing. Reinstall QTGui framework.
Now I can install OpenCV but for QT I could not. Could you please list the instructions for OpenCV and QT installation? I may reinstall again to combine them together. I prefer to use QT5 if it possible if my previous work is on QT4?
Many thanks Volker.
Related
I am currently working on a QT application, however, I am unable to build due to this error which I am unable to resolve. I am currently using macOS Montery and have already installed xcode command line. I have tried searching online and tried many different solutions but to no avail. Any help or advice would be appreciated thank you!
If you have homebrew installed, try the following:
brew install graphviz
I am deploying qt application for macos so in order to create .app I am using macdeployqt tool.
My problem is that when I run the application I get this error:
dyld: Library not loaded: #rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets
Referenced from: /Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/Myapp
Reason: image not found
I have checked with otool and i have this:
#rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.9.0, current version 5.9.7)
If it matters I have used macdeployqt with option -use-debug-libs and -no-strip
Could anyone help me on this?
Thanks in advance
I finally found the solution. Since I was using debug version of the Frameworks '_debug' suffix was being appended. That was the reason why it was not being found
I just installed imagemagick and tesseract through brew, everything went well. When I try tesseract -l eng decrypted.png output, though, I get the following error:
dyld: Library not loaded: /opt/local/lib/libpng15.15.dylib
Referenced from: /usr/local/bin/tesseract
Reason: Incompatible library version: tesseract requires version 32.0.0 or later, but libpng15.15.dylib provides version 29.0.0
Trace/BPT trap: 5
I searched everywhere but I couldn't find any place where it is explained how to update that dynamic library to version 32 (or higher). Any suggestions? Thanks!
Done by cleaning my installation of both the softwares and re-installing them through brew. Mind that if there is some linking problem, you have to execute brew link --overwrite tesseract to solve them.
I'm trying to run a simple OpenGL tutorial for my class, but the C++ code was made to run for Windows and Linux. I'm trying to make it run under Mac OS X Mountain Lion.
I found the proper library headers, it now compiles OK (with scons), but the build gives this error when run:
dyld: Symbol not found: _jpeg_resync_to_restart
Referenced from: /usr/local/lib/libIL.1.dylib
Expected in: flat namespace
in /usr/local/lib/libIL.1.dylib
Trace/BPT trap: 5
Searching online gave me nothing but python imaging library problems. I have a libjpeg and DevIL installed through homebrew.
Judging from the Google searches, the built-in libjpeg library in Mac OS X has the
__cg_jpeg_resync_to_restart while if you use MacPorts, Fink, or maybe compile it yourself you get - _jpeg_resync_to_restart.
In this case the DevIL library, gotten through Homebrew was searching for the symbol not coming from the Mac OS X library, so I assumed that I should install libjpeg through homebrew. However it turns out that libjpeg was already installed through homebrew. So I guessed that maybe there were problems with the linking of libjpeg, I unlinked and linked again, and yes there were problems with the initial linking of the library.
However this did not seam to solve the problem. I again made the assumption that now that the libjpeg has symbolic links at the right places if I built the DevIL library again it will link against the proper library at the proper place. So I did a brew uninstall devil and then brew install devil which compiled with from source again. Aaand voila :)
It worked for me just changing the DYLD_LIBRARY_PATH to the correct path.
Are you guys suffered from this question when using IUP on MacOS?
Gizak-Pro:iup-3.6_MacOS107_bin Gizak$ ./iupview
dyld: Library not loaded: /sw/lib/fontconfig2/lib/libfontconfig.1.dylib
Referenced from: /Users/Gizak/Downloads/iup-3.6_MacOS107_bin/./iupview
Reason: image not found
Trace/BPT trap: 5
So..How to make it work? That would be very helpful!
OS:Mac OS X 10.7.5
install lua5.1 by port
IUP version:3.6
That application depends on some libraries that are not installed on your system.
In the IUP documentation you will be able to find a guide how to run IUP on MacOSX. The relevant section is in IUP / System / Drivers / GTK.
The binary you're using is linking to a path provided by Fink, check the README.md in the download directory of IUP sf project.
You could either:
install Fink and fullfill the dependencies
rewrite the dependency using install_name_tool
set DYLD_FALLBACK_LIBRARY_PATH to match dependencies installed by another source