Open rehovicova opened 2 years ago
This is the command we use to install sqlite3 on Ubuntu 20.04 LTS for our ATAK dev environments:
sudo apt install ant sqlite3 dos2unix automake swig cmake tcl tk build-essential autoconf libtool
@matt-msi this leads to the exact same result.
Package sqlite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sqlite3' has no installation candidate
EDIT: I upgraded to Ubuntu 20.04 and I was able to install sqlite3, but I am still getting
../../../../../src/main/cpp/db/Database2.cpp:13:76: fatal error: sqlite3.h: No such file or directory
#include "sqlite3.h" // Must appear before spatialite.h.
^
compilation terminated.
when trying to run assembleCivDebug
.
It sounds like apt is possibly missing what it needs to install sqlite3, suggest to try this and then retry sqlite3 install:
sudo apt-get update
I have installed sqlite3
$ sudo apt install sqlite3
Reading package lists... Done
Building dependency tree
Reading state information... Done
sqlite3 is already the newest version (3.31.1-4ubuntu0.2).
But while building ATAK apk it tells me that sqlite3.h
cannot be found.
@rehovicova Assuming master
. I'm not sure where the build process is breaking down, so I'll provide some insights that may help you troubleshoot the issue.
libsqlite
is distributed as part of the ATAK GitHub monorepo in the SQLCipher tarball (https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/blob/master/takthirdparty/distfiles/sqlcipher.tar.gz). The current build system is fully closed for library type dependencies, meaning you should not have to install any library development packages, only tools.
Following the prebuild step (aka https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/blob/master/scripts/prebuild.sh), you should find sqlite3.h
under takthirdparty/builds/android-[armeabi-v7a|arm64-v8a|x86]-release/include/sqlite3.h
. Starting with ATAK 4.4, libtakengine
pulls in the TAK Third Party (aka TTP) dependencies via Conan. prebuild will install TTP to the local Conan repo (~/.conan
) as the package, ttp-dist
. You can inspect the package in Conan local to ensure that the includes appear to be in place.
Please compare the build process that you followed against one of the GitHub Actions -- the actions do a build from scratch in a pristine environment. You should be able to follow the same steps to get a build going in your local environment.
@takdeveloper That was actually helpful. There is only zconf.h
and zlib.h
in the include/
folder. I ran the prebuild.sh
script previously but I didnt notice this error:
configure: error: in `/home/kristyna/Downloads/atak4.5/AndroidTacticalAssaultKit-CIV-4.4.0.15/takthirdparty/builds/android-arm64-v8a-release/libiconv':
configure: error: C preprocessor "aarch64-linux-android-cpp" fails sanity check
See `config.log' for more details
yes
checking for style of include used by make... configure: error: in `/home/kristyna/Downloads/atak4.5/AndroidTacticalAssaultKit-CIV-4.4.0.15/takthirdparty/builds/android-x86-release/libiconv':
configure: error: C preprocessor "i686-linux-android-cpp" fails sanity check
See `config.log' for more details
GNU
checking dependency style of arm-linux-androideabi-gcc... none
checking how to run the C preprocessor... arm-linux-androideabi-cpp
configure: error: in `/home/kristyna/Downloads/atak4.5/AndroidTacticalAssaultKit-CIV-4.4.0.15/takthirdparty/builds/android-armeabi-v7a-release/libiconv':
configure: error: C preprocessor "arm-linux-androideabi-cpp" fails sanity check
See `config.log' for more details
make: *** [mk/libiconv.mk:11: /home/kristyna/Downloads/atak4.5/AndroidTacticalAssaultKit-CIV-4.4.0.15/takthirdparty/builds/android-arm64-v8a-release/libiconv/.configured] Error 1
make: *** [mk/libiconv.mk:11: /home/kristyna/Downloads/atak4.5/AndroidTacticalAssaultKit-CIV-4.4.0.15/takthirdparty/builds/android-x86-release/libiconv/.configured] Error 1
It seems like a problem with my NDK.
$ANDROID_NDK points to /home/kristyna/Android/Sdk/ndk/12.1.2977051/
which is the version noted in BUILDING.md. Is there anything else I am forgetting?
Hi, I am having this problem while trying to run
assembleCivDebug
.I tried to install
sqlite3
andlibsqlite3-dev
packages but it says they are not available (I am building it on Ubuntu 18). How do I fix this error?