Replies: 7 comments 1 reply
-
Hmm actually I think this might be caused by #3881 - the "Console" app has this crash report:
|
Beta Was this translation helpful? Give feedback.
-
But it is in the bundle... I have no idea what is going on now...
|
Beta Was this translation helpful? Give feedback.
-
Ah sorry ignore the previous two messages - this is the real problem:
Somehow it is still looking for |
Beta Was this translation helpful? Give feedback.
-
Aha well I figured it out. So I just naively compiled my copy of SQLite in the normal $ otool -L libsqlite3.dylib
libsqlite3.dylib:
libsqlite3.dylib (compatibility version 0.0.0, current version 0.0.0) <-- This is the install name I think.
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0) That gets copied to $ otool -L libcoreSQLiteStudio.1.dylib
libcoreSQLiteStudio.1.dylib:
libcoreSQLiteStudio.1.dylib (compatibility version 1.0.0, current version 1.0.0)
libsqlite3.dylib (compatibility version 0.0.0, current version 0.0.0) <-- It gets copied here.
@rpath/QtScript.framework/Versions/5/QtScript (compatibility version 5.15.0, current version 5.15.2)
@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.15.0, current version 5.15.2)
... However because it doesn't have a We can fix it with $ install_name_tool -id @rpath/libsqlite3.dylib libsqlite3.dylib
$ otool -L libsqlite3.dylib
libsqlite3.dylib:
@rpath/libsqlite3.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0) After doing that, and then a clean build it works! I will update the wiki with instructions. Again I can't stress enough how much easier this would have been if SQLite were just bundled by default. |
Beta Was this translation helpful? Give feedback.
-
The problem with boundled SQLite is that it makes it impossible to replace it during runtime with another binary (if anyone downloaded precompiled binary). It helped many people already, as they were able to replace SQLite with newer release and use its features, without waiting for SQLiteStudio release. I'm not sure why did you go through all of these compilation problems if you could just download a precompiled binary? Unless you wish to contribute (in which case I'm very happy). |
Beta Was this translation helpful? Give feedback.
-
I'll convert this to the GitHub Discussions item now. |
Beta Was this translation helpful? Give feedback.
-
Exactly! :-) |
Beta Was this translation helpful? Give feedback.
-
I followed these instructions and end up with the following files (I didn't build the plugins yet):
If I do this it runs correctly:
However if try to run the app bundle it fails:
So I tried running
make bundle
fromoutput/build
:(See #3881 for the
ERROR: no file at "/usr/lib/libcoreSQLiteStudio.1.dylib"
error)It did copy a load of files into the
.app
but now when I run it it just immediately exits. No error messages or anything.Beta Was this translation helpful? Give feedback.
All reactions