Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnaoumov/sqlite-lightroom-compress-fix
https://github.com/mnaoumov/sqlite-lightroom-compress-fix
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mnaoumov/sqlite-lightroom-compress-fix
- Owner: mnaoumov
- Created: 2023-08-07T14:25:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-07T14:44:12.000Z (over 1 year ago)
- Last Synced: 2023-08-07T16:23:46.034Z (over 1 year ago)
- Language: C
- Size: 2.54 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Based on https://community.adobe.com/t5/lightroom-classic-discussions/lightroom-sqlite-database-binary-xmp-format/m-p/11277989#M193377
---
This directory contains the sources and libraries necessary to build a version
of "sqlite3" on Windows and Mac that contains the sqlite3 extension functions
compress() and uncompress(), which Lightroom uses to read and write compressed
text fields in the catalog databases.To build on Mac:
sh make-sqlite.sh
To build on Windows;
make-sqlite.bat
---------------------------
To update the Sqlite source, download the Sqlite amalgamation from here:
https://sqlite.org/download.html
Unzip it and place the contents in this directory.
Modfy shell.c to have these lines:
```c
/* Register compress -- John R. Ellis 12/4/2019 */
extern void sqlite3_compress_init(void);
sqlite3_auto_extension(&sqlite3_compress_init);
```right after these lines:
```c
#else
/* All the sqlite3_config() calls have now been made. So it is safe
** to call sqlite3_initialize() and process any command line -vfs option. */
sqlite3_initialize();
#endif
```Copy `/opt/local/include/zconf.h` and `zlib.h` to here.
Download Windows zlib "Complete package":
http://gnuwin32.sourceforge.net/packages/zlib.htm
Copy `zlib1.dll` and `zlib.lib` from `c:\Program Files (x86)\GnuWin32` to here.