I installed Qt 5.4 on MacOSX Darwin Kernel version 14.3.0 and I am trying to configure LLDB Debugger since GDB was cleaned up from MacOSX (since I did not find it by default).
When I try to configure the debugger option in the build and run in Qt Creator, follow these steps mentioned in the Qt documentation:
- Choose Tools> Options> Build & Run> Kits.
- Select an automatically created set in the list, and then select Clone to create a copy of the set.
- In the Debugger field, select LLDB Engine. If the LLDB Engine is not listed, select Manage to add it to Tools> Options> Build and Run> Debuggers.
For more information, see Adding Debuggers. To use the debugger, add the kit to the project build settings.
I install Debugger as "/ usr / bin / lldb" in the Build & Run collection. After correctly following all the steps, as mentioned in various forums, when I try to set a breakpoint and run the Qt project in debug mode, it does not fall into the breakpoint. It works as the Run option. Does not work as the DEBUG mode.
I have one small question, or maybe ask to offer the following error message, which I decided, but I do not know whether to do it correctly.
When I try to run an executable file that was sent on Mac OS X, I get the following error:
dyld: library not loaded: libLocalIPC.1.dylib
Link to: / Users / "The directory of my executable file is located in
Reason: image not found. I fixed this problem with setting the DYLD_LIBRARY_PATH environment in the section "Project Settings / Starting the Environment" from the library path, which indicates the debut version of the library. Therefore, to create my application in the release, I must again set the path to the library with the release library pool. Therefore, this decision is Wrong.
Another solution that I tried before is using otool -L @ executable_Path / XXX.exe and checking the dylib path and changing it with the install_name Xcode tool, but that didn't work either.
Example: MacOS xxx $ otool -L check abc
libLocalIPC.1.dylib (compatibility version 1.0.0, current version 1.0.0) libxxx.1.dylib (compatibility version 1.0.0, current version 1.0.0) libqyyy.1.dylib (compatibility version 1.0.0, current version 1.0.0) libzzz.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Users/spandey/Qt/5.4/clang_64/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.4.0, current version 5.4.1) /Users/spandey/Qt/5.4/clang_64/lib/QtWebEngine.framework/Versions/5/QtWebEngine (compatibility version 5.4.0, current version 5.4.1) /Users/spandey/Qt/5.4/clang_64/lib/QtQuick.framework/Versions/5/QtQuick (compatibility version 5.4.0, current version 5.4.1) /Users/spandey/Qt/5.4/clang_64/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.4.0, current version 5.4.1)
After that, I set the path to libs libxxx.1.dylib, libyyy.1.dylib and libzzz.1.dylib and run otool -L abc again
Results: Administrators-Mac-Pro: MacOS spandey $ otool -L abc
a: /Users/spandey/Desktop/Perforce/launcher/xxx/libxxx.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/Users/spandey/Desktop/Perforce/launcher/ThirdParty/yyy/lib_osx/libqyyy.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Users/spandey/Desktop/Perforce/launcher/ThirdParty/zzz/debug_osx/libzzz.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Users/spandey/Qt/5.4/clang_64/lib/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.4.0, current version 5.4.1
MacOS xxx $. / Abc dyld: library not loaded: libzzz.1.dylib Link from: /Users/spandey/Desktop/Perforce/launcher/xxx/libxxx.1.dylib Reason: image not found Trace / BPT trap: 5
Please help me in both problems, as I have been trying this for the last 3 days without success.