When you realize you sent an email too soon =/ The driver not being loaded was just that it was missing in the .pro file += sql
Em Mon Feb 09 2015 at 11:09:39 PM, Daniel França <daniel.fra...@gmail.com> escreveu: > Thanks for the tip René, for now I'm trying to really understand > install_name_tool. > > I thought I did :P > > But then after run the script that fixes the dylibs, and copy the > libsqlite.dylib to /MyBundle.app/Contents/PlugIns/sqlidrivers/ > > otool -L output: > MyBundle.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib: > libqsqlite.dylib (compatibility version 0.0.0, current version 0.0.0) > /Users/username/Qt5.4.0/5.4/clang_64/lib/QtSql.framework/Versions/5/QtSql > (compatibility version 5.4.0, current version 5.4.0) > /Users/username/Qt5.4.0/5.4/clang_64/lib/QtCore.framework/Versions/5/QtCore > (compatibility version 5.4.0, current version 5.4.0) > /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration > (compatibility version 1.0.0, current version 1.0.0) > /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility > version 1.0.0, current version 275.0.0) > /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version > 120.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version > 1213.0.0) > > The error is that it's referencing my local Qt for QtCore and QtSql, > right? So I supposed I should run install_name_tool to change that. > > So I did: > *install_name_tool -change > ~/Qt5.4.0/5.4/clang_64/lib/QtSql.framework/QtSql > @executable_path/../Frameworks/QtSql.framework/QtSql > MyBundle.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib* > > *install_name_tool -change > ~/Qt5.4.0/5.4/clang_64/lib/QtCore.framework/QtCore > @executable_path/../Frameworks/QtCore.framework/QtCore > MyBundle.app/Contents/PlugIns/sqldrivers/libqsqlite.dylib* > > I don't receive any output running those commands, not failure neither > successful > But didn't work =/ I keep getting the same error message when I run the > bundled app: > > *dataStorage.js:33: Error: Driver not loaded Driver not loaded* > Any idea what can solve this issue? > > Em Mon Feb 09 2015 at 7:08:59 PM, René J.V. <rjvber...@gmail.com> > escreveu: > > On Monday February 09 2015 18:41:06 Till Oliver Knoll wrote: >> >> > Just recently there was a discussion that some pre-build Qt library >> errorneously links with libz located in /opt (Mac Ports), instead of /usr >> (=Apple). >> > You apparently just hit that same problem with Qt 5.4. >> >> That discussion *was* about Qt 5.4 . Until Digia releases a new package, >> you can correct the dependency yourself: >> >> %> install_name_tool -change /opt/local/lib/libz.1.dylib >> /usr/lib/libz.1.dylib /path/to/Qt5/5.4/clang_64/lib/ >> QtCore.framework/QtCore >> >> R. >> _______________________________________________ >> Interest mailing list >> Interest@qt-project.org >> http://lists.qt-project.org/mailman/listinfo/interest >> >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest