Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: error: Package requirements (sqlite3) were not met #9

Open
b2makoto opened this issue Jun 29, 2014 · 4 comments
Open

configure: error: Package requirements (sqlite3) were not met #9

b2makoto opened this issue Jun 29, 2014 · 4 comments

Comments

@b2makoto
Copy link

I replace clutter-android.modules but have same error message.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Replace this :






By this :







////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
And I use ubuntu 1404 and edit build-clutter-android.sh to this:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

set -ex

download Android NDK and create standalone toolchain

if ! test -d android-ndk-r8c; then

wget http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2

tar jxf android-ndk-r8c-linux-x86.tar.bz2

rm android-ndk-r8c-linux-x86.tar.bz2

pushd android-ndk-r8c

./build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=../toolchain

popd

fi

if ! test -d android-ndk-r9d; then
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2
tar jxf android-ndk-r9d-linux-x86.tar.bz2
rm android-ndk-r9d-linux-x86.tar.bz2
pushd android-ndk-r9d
./build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=../toolchain
popd
fi

JHB_PREFIX=$PWD/jhbuild/.local

set up patched version of jhbuild

if ! test -d jhbuild; then
git clone git://git.gnome.org/jhbuild
pushd jhbuild
patch -p1 -i ../modulesets/patches/jhbuild/disable-clean-la-files.patch
./autogen.sh --prefix=$JHB_PREFIX
make install
popd
fi

mkdir -p $JHB_PREFIX/share/aclocal
cp /usr/share/aclocal/gtk-doc.m4 $JHB_PREFIX/share/aclocal/

source ./android-env.sh

start the build

$JHB_PREFIX/bin/jhbuild -f jhbuildrc-android build -q mx libsoup

download Android SDK

if ! test -d android-sdk-linux; then
wget http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
tar zxf android-sdk_r22.6.2-linux.tgz
rm android-sdk_r22.6.2-linux.tgz
fi

android update sdk -u --filter platform-tool,tool

android update sdk --all -u --filter platform-tool,tool

android update sdk -u --filter android-19

android update sdk --all -u --filter android-19

@mrosset
Copy link
Contributor

mrosset commented Jun 29, 2014

is this a patch or a shell script? can you possibly clean it up only explaining the issue you are having?

@b2makoto
Copy link
Author

ubuntu1404@ubuntu:/opt/clutter-android-master$ ./build-clutter-android.sh
++ test -d android-ndk-r9d
++ JHB_PREFIX=/opt/clutter-android-master/jhbuild/.local
++ test -d jhbuild
++ mkdir -p /opt/clutter-android-master/jhbuild/.local/share/aclocal
++ cp /usr/share/aclocal/gtk-doc.m4 /opt/clutter-android-master/jhbuild/.local/share/aclocal/
++ source ./android-env.sh
+++ '[' '!' -d /opt/clutter-android-master/install ']'
+++ SOURCES=/opt/clutter-android-master/sources
+++ PREFIX=/opt/clutter-android-master/install
+++ LIBDIR=/opt/clutter-android-master/install/lib
+++ export CFLAGS=
+++ CFLAGS=
+++ export CC=arm-linux-androideabi-gcc
+++ CC=arm-linux-androideabi-gcc
+++ export CXX=arm-linux-androideabi-g++
+++ CXX=arm-linux-androideabi-g++
+++ export C_INCLUDE_PATH=/opt/clutter-android-master/install/include
+++ C_INCLUDE_PATH=/opt/clutter-android-master/install/include
+++ export CPLUS_INCLUDE_PATH=/opt/clutter-android-master/install/include
+++ CPLUS_INCLUDE_PATH=/opt/clutter-android-master/install/include
+++ [[ ! -n isset ]]
+++ [[ ! -n isset ]]
+++ [[ ! -n isset ]]
+++ export gl_cv_header_working_stdint_h=yes
+++ gl_cv_header_working_stdint_h=yes
+++ export LINGUAS=C
+++ LINGUAS=C
+++ export PKG_CONFIG_LIBDIR=/foo/bar
+++ PKG_CONFIG_LIBDIR=/foo/bar
+++ export PKG_CONFIG_PATH=/opt/clutter-android-master/install/lib/pkgconfig
+++ PKG_CONFIG_PATH=/opt/clutter-android-master/install/lib/pkgconfig
+++ pathadd '/opt/clutter-android-master/android-ndk-r8c
/opt/clutter-android-master/android-ndk-r9d'
+++ '[' -d '/opt/clutter-android-master/android-ndk-r8c
/opt/clutter-android-master/android-ndk-r9d' ']'
+++ pathadd /opt/clutter-android-master/toolchain/bin
+++ '[' -d /opt/clutter-android-master/toolchain/bin ']'
+++ [[ :/opt/clutter-android-master/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/clutter-android-master/toolchain/bin:/opt/clutter-android-master/android-sdk-linux/tools:/opt/clutter-android-master/android-sdk-linux/platform-tools: != :/\o\p\t/\c\l\u\t\t\e\r-\a\n\d\r\o\i\d-\m\a\s\t\e\r/\t\o\o\l\c\h\a\i\n/\b\i\n: ]]
+++ pathadd /opt/clutter-android-master/android-sdk-linux/tools
+++ '[' -d /opt/clutter-android-master/android-sdk-linux/tools ']'
+++ [[ :/opt/clutter-android-master/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/clutter-android-master/toolchain/bin:/opt/clutter-android-master/android-sdk-linux/tools:/opt/clutter-android-master/android-sdk-linux/platform-tools: != :/\o\p\t/\c\l\u\t\t\e\r-\a\n\d\r\o\i\d-\m\a\s\t\e\r/\a\n\d\r\o\i\d-\s\d\k-\l\i\n\u\x/\t\o\o\l\s: ]]
+++ pathadd /opt/clutter-android-master/android-sdk-linux/platform-tools
+++ '[' -d /opt/clutter-android-master/android-sdk-linux/platform-tools ']'
+++ [[ :/opt/clutter-android-master/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/clutter-android-master/toolchain/bin:/opt/clutter-android-master/android-sdk-linux/tools:/opt/clutter-android-master/android-sdk-linux/platform-tools: != :/\o\p\t/\c\l\u\t\t\e\r-\a\n\d\r\o\i\d-\m\a\s\t\e\r/\a\n\d\r\o\i\d-\s\d\k-\l\i\n\u\x/\p\l\a\t\f\o\r\m-\t\o\o\l\s: ]]
+++ export NDK_MODULE_PATH=/opt/clutter-android-master
+++ NDK_MODULE_PATH=/opt/clutter-android-master
+++ export GLIB_BIN=/usr/bin
+++ GLIB_BIN=/usr/bin
++++ uname
+++ [[ Linux == \D\a\r\w\i\n ]]
+++ export 'PKG_CONFIG=pkg-config --define-variable=glib_genmarshal=/usr/bin/glib-genmarshal --define-variable=gobject_query=/usr/bin/gobject-query --define-variable=glib_mkenums=/usr/bin/glib-mkenums --define-variable=glib_compile_resources=/usr/bin/glib-compile-resources'
+++ PKG_CONFIG='pkg-config --define-variable=glib_genmarshal=/usr/bin/glib-genmarshal --define-variable=gobject_query=/usr/bin/gobject-query --define-variable=glib_mkenums=/usr/bin/glib-mkenums --define-variable=glib_compile_resources=/usr/bin/glib-compile-resources'
++ /opt/clutter-android-master/jhbuild/.local/bin/jhbuild -f jhbuildrc-android build -q mx libsoup
[==================================================--] [21/21] Configuring libsoup autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR,build-aux'.
libtoolize: copying file build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR,m4'.
libtoolize: copying file m4/libtool.m4' libtoolize: copying filem4/ltoptions.m4'
libtoolize: copying file m4/ltsugar.m4' libtoolize: copying filem4/ltversion.m4'
libtoolize: copying file m4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make sets $(MAKE)... (cached) yes
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-androideabi-gcc accepts -g... yes
checking for arm-linux-androideabi-gcc option to accept ISO C89... none needed
checking whether arm-linux-androideabi-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-linux-androideabi-gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by arm-linux-androideabi-gcc... /opt/clutter-android-master/toolchain/arm-linux-androideabi/bin/ld
checking if the linker (/opt/clutter-android-master/toolchain/arm-linux-androideabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /opt/clutter-android-master/toolchain/bin/arm-linux-androideabi-nm -B
checking the name lister (/opt/clutter-android-master/toolchain/bin/arm-linux-androideabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to arm-unknown-linux-androideabi format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/clutter-android-master/toolchain/arm-linux-androideabi/bin/ld option to reload object files... -r
checking for arm-linux-androideabi-objdump... arm-linux-androideabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-androideabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar
checking for archiver @file support... @
checking for arm-linux-androideabi-strip... (cached) arm-linux-androideabi-strip
checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib
checking command to parse /opt/clutter-android-master/toolchain/bin/arm-linux-androideabi-nm -B output from arm-linux-androideabi-gcc object... ok
checking for sysroot... no
checking for arm-linux-androideabi-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... arm-linux-androideabi-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-linux-androideabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-linux-androideabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-linux-androideabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-linux-androideabi-gcc static flag -static works... yes
checking if arm-linux-androideabi-gcc supports -c -o file.o... yes
checking if arm-linux-androideabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-linux-androideabi-gcc linker (/opt/clutter-android-master/toolchain/arm-linux-androideabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.36.0... ./configure: line 12108: test: too many arguments
cross compiling; assumed OK...
yes (version 2.37.0)
checking for XML... yes
checking for SQLITE... no
configure: error: Package requirements (sqlite3) were not met:

No package 'sqlite3' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SQLITE_CFLAGS
and SQLITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

@mrosset
Copy link
Contributor

mrosset commented Jun 29, 2014

make sure you have libsqlite3-dev installed. Or w/e version 14.04 has. sorry I dont have an ubuntu machine handy right now. if that doest work. I'll look into it more.

@b2makoto
Copy link
Author

ubuntu1404@ubuntu:/opt/android-ndk-r9d$ sudo apt-get install libsqlite3-dev
[sudo] password for ubuntu1404:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsqlite3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

I already install libsqlite,but also fail.
I will try ubuntu 1204,thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants