c++ - Error deploying Qt application on OS X -


i'm trying deploy qt application on os x using macdeployqt:

macdeployqt myapplication.app -dmg

the application uses qwt library, being included in pro file follows:

macx: qwt_root = /usr/local/qwt-6.1.0 include ( $${qwt_root}/features/qwt.prf )

when run macdeployqt command following error message:

error: no file @ "/library/frameworks/qwt.framework/versions/6/qwt.framework/versions/6/qwt"

i'm not sure seems deployment step looking qwt library on wrong path, example:

"/library/frameworks/qwt.framework/versions/6/qwt.framework/versions/6/qwt"

when should be:

"/library/frameworks/qwt.framework/versions/6/qwt"

how can solve it?

i have uninstalled other qt versions using brew list, brew remove qt , brew remove qt5. noted had pyqt installed (and not using it), remove using brew remove pyqt.

then, have reinstalled qt 5.3.2 , had other issues:

project error: xcode not set properly. may need confirm license agreement running /usr/bin/xcodebuild.

which solved changing isempty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))) command qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf file isempty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))), explained here: qt creator - project error: xcode not set properly. may need confirm license agreement running /usr/bin/xcodebuild

and

could not resolve sdk path 'macosx10.8'

that solved changing qtpath/5.3/clang_64/mkspecs/qdevice.pri !host_build:qmake_mac_sdk = macosx10.8 !host_build:qmake_mac_sdk = macosx10.12, explained here: error: not resolve sdk path 'macosx10.8'

so, run command qt directory:

/users/kuser/qt5.3.2/5.3/clang_64/bin/macdeployqt myapplication.app -dmg 

and worked.

i found these solutions in comments following question:

qt5 cannot find platform plugins mac os x

note: not solve macdeployqt error directly, part of qt installation, reinstalling solved problem.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -