Library not found on Mac OS
-
Can you remind me what these .tx files are ?
-
In my case .tx is a lib provided by ODA library.
When my app start, I use a function "loadapp" from ODA, to load my .tx. After debugging it seams that this function is looking for the tx into <myapp.app>/Contents/MacOS directory, so I placed my lib here but it still doesn't detect it -
macdeployqt won't handle them because it currently only targets .framework and .dylib.
If we want to nitpick, putting "plugin" in the MacOS folder is wrong from a bundle point of view.
You have to write a script that copies these .tx file at the right place and call install_name_tool on them to update the paths to all their dependencies (excluding the system libraries)
-
Not necessarily. I was more thinking about a post-macdeployqt script that would handle the .tx files.
-
-
What do you mean by everything ? Run macdeployqt or build your application + macdeployqt + .tx deployment ?
-
It's been a long time since I've done this but IIRC you should be able to do that adding a custom target.
See qmake's adding custom targets documentation.