Compiling for flatpak


I’m trying to build an application with flatpak where sqlcipher is one of the dependencies.

When I try to compile sqlcipher in flatpaks build environment, it fails on:
ld: cannot find -ltclstub8.6
collect2: error: ld returned 1 exit status
make: *** [Makefile:613:] Error 1

and I can’t figure out how to solve it. Some help would be greatly appreciated.

Flatpak build string:
flatpak-builder --verbose --repo=repo --force-clean --disable-cache --build-shell=sqlcipher sqlcipher org.kde.sqlcipher_wip.json

Flatpak manifest:
“app-id”: “org.flatpak.qtox”,
“runtime”: “org.kde.Platform”,
“runtime-version”: “5.10”,
“sdk”: “org.kde.Sdk”,
“command”: “”,
“finish-args”: [
“modules”: [
“name”: “sqlcipher”,
“config-opts”: ["–enable-tempstore=yes"],
“build-options”: {
“cflags”: “-DSQLITE_HAS_CODEC”,
“ldflags”: “-lcrypto”
“sources”: [
“type”: “archive”,
“url”: “”,
“sha256”: “2824ab1238b706bc66127320afbdffb096361130e23291f26928a027b885c612”

				                       "type": "archive",
				                       "url": "",
				                       "sha256": "69897a5167f34e8a84c7069f1b283aba88cdfa8ec183165c4a5da2c816cfaadb"



Hi @Jonathan_Anderson

It looks like it’s picking up a dependency on tcl. I’m not familiar with Flatpak, are you able to modify the cofig-opts within the sqlcipher module and add --disable-tcl?