How to compile and run qwt-6.1-multiaxes for Mac using Qt5.14.2 Translate to English
-
I'm running qwt-6.1-multiaxes with Qt5.14.2 and I'm getting the following error, I've tried many ways to solve it, I hope someone can help me.
dyld[2673]: Library not loaded: libqwt.so.6.4 Referenced from: <814D5A65-3344-3D89-9277-D492D2DACE19> /Users/Desktop/build-qwt-Desktop_Qt_5_14_2_clang_64bit-Release/examples/bin/animation.app/Contents/MacOS/animation Reason: tried: '/Users/Qt5.14.2/5.14.2/clang_64/lib/libqwt.so.6.4' (no such file), 'libqwt.so.6.4' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibqwt.so.6.4' (no such file), 'libqwt.so.6.4' (no such file), '/usr/local/lib/libqwt.so.6.4' (no such file), '/usr/lib/libqwt.so.6.4' (no such file, not in dyld cache), '/Users/Qt5.14.2/5.14.2/clang_64/lib/libqwt.so.6.4' (no such file), '/Users/Desktop/build-qwt-Desktop_Qt_5_14_2_clang_64bit-Release/examples/bin/animation.app/Contents/MacOS/libqwt.so.6.4' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/Desktop/build-qwt-Desktop_Qt_5_14_2_clang_64bit-Release/examples/bin/animation.app/Contents/MacOS/libqwt.so.6.4' (no such file), '/Users/Desktop/build-qwt-Desktop_Qt_5_14_2_clang_64bit-Release/examples/bin/animation.app/Contents/MacOS/libqwt.so.6.4' (no such file), '/usr/local/lib/libqwt.so.6.4' (no such file), '/usr/lib/libqwt.so.6.4' (no such file, not in dyld cache)
-
@SGaist Hi,
Firstly, Qwt-6.4.0-svn is compiled from Qwt-6.1-multiaxes.To build Qwt-6.4.0-svn, I followed these steps:
I used the qmake command with the qwt.pro file to generate the necessary build files.
Then, I ran the make command to compile the source code.
After that, I used sudo make install to install the Qwt library.
As for the library placement, I placed the Qwt-6.4.0-svn files in the following path: /usr/local/.To check if the library is properly linked, I used the ls command.
I have previously used Qwt versions 6.1.2 and 6.2.0 successfully. However, in this case, I needed to use Qwt-6.1-multiaxes because it was used by the previous developer. Unfortunately, I'm facing issues with linking Qwt-6.1-multiaxes, and the problem keeps persisting.
Thanks -
@SGaist said in How to compile and run qwt-6.1-multiaxes for Mac using Qt5.14.2 Translate to English:
Use otool on your binary to check where it is looking for for that library.
Hi,I'm sorry I don't particularly understand which binary you are referring to. If it's "qmake" and "make", then it's in "/Users/XXXXXX/Qt5.14.2/5.14.2/clang_64/bin/ ".
Thanks for your reply