I'm trying to create an amalgamation for duckdb with sqlite_scanner as a static extension. I'm a complete novice to building duckdb. I know that I can build the amalgamation with a command similar to this:
git clone [duckdb]
python3 scripts/amalgamation.py
But this does not include the sqlite_scanner. If I clone the duckdb-sqlite-scanner repo into the extension subdirectory, I can get DuckDB to almost build "in the usual way":
DUCKDB_EXTENSIONS='core_functions;parquet;json;sqlite_scanner' make
Although, it fails like this:
[ 65%] Building CXX object src/main/extension/CMakeFiles/duckdb_generated_extension_loader.dir///__/codegen/src/generated_extension_loader.cpp.o
In file included from /duckdb/build/release/codegen/src/generated_extension_loader.cpp:1:
In file included from /duckdb/src/include/duckdb/main/extension/generated_extension_loader.hpp:17:
/duckdb/build/release/codegen/include/generated_extension_headers.hpp:7:10: fatal error: 'sqlite_scanner_extension.hpp' file not found
Obviously, if I cross my fingers and just try to hammer on the amalgamation script (because I have no idea what I'm doing), it still doesn't drag in to sqlite-scanner functionality. (I'm searching for sqlite_scanner_init() in the generated duckdb.cpp source.)