c++ - How to make Qt Creator add CEF framework to DEST_DIR on Mac OS X? -


i'm working on collaborative project in qt creator, , i've managed compile: linked cef framework , cef dll wrapper. however, when try run get:

dyld: library not loaded: @executable_path/chromium embedded framework reason: image not found 

as far understanding goes, framework needs copied dest_dir, .app/contents/macos or that. have not managed make work copying framework there manually. also, since development meant cross platform, wondering if there's way tell qmake how copy framework dest_dir. in understanding how deal frameworks on mac os x in qt creator appreciated.

as far understanding goes, framework needs copied dest_dir, .app/contents/macos or that.

you're there. frameworks copied into

.app/contents/frameworks

however, bundle's executable contains reference expects framework libraries residing , having copied them app bundle, need tell executable are.

using otool -l argument, you can see libraries referenced executable. you'd call full path. example

otool -l /applications/calculator.app/contents/macos/calculator 

for each dylib in framework, need fix path using command line tool install_name_tool

when deploying qt application qt, must run macdeployqt. same thing qt frameworks; copies them relevant frameworks folder , updates paths.

i've not used myself, according documentation, macdeployqt supports handling 3rd party frameworks, option -executable=< path >


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -