gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smsd build issue with sqlite


From: Pedro Aguilar
Subject: Re: smsd build issue with sqlite
Date: Fri, 23 Aug 2013 17:36:01 +0200

The link:

http://www.paguilar.org/blog/?p=201

I just came back from holidays :)

-- 
Pedro Aguilar
http://www.paguilar.org/blog


On Mon, 2013-08-12 at 11:42 +0000, Bornet Romain wrote:
> Hi,
> 
> I'm new in gnokii and I'm cross-compiling it for ARM with SQLite support.
> I had an issue to have smsd compiled correctly with SQLite support. I tried 
> with 0.6.31 release tarball and git master. Both fail with the same error 
> (sqlite3.h not found).
> 
> I configure and build with
> 
> $ ./configure or ./autogen.sh --prefix=<my_cross_root>/target/usr 
> --host=arm-linux-gnueabihf --without-x --disable-irda 
> PKG_CONFIG=<my_cross_root>/host/usr/bin/pkg-config
> $ make && make install
> 
> sqlite support is detected by my pkg-config and correct values are given to 
> SQLITE3_LIBS and SQLITE3_CFLAGS but the SQLITE_CFLAGS var is not set 
> correctly.
> 
> $  grep SQLITE smsd/Makefile
> smsd/Makefile:SQLITE3_CFLAGS = 
> -I/home/bornetr/dev/buildroot/buildroot-2013.05/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include
>   
> smsd/Makefile:SQLITE3_LIBS = 
> -L/home/bornetr/dev/buildroot/buildroot-2013.05/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
>  -lsqlite3  
> smsd/Makefile:SQLITE_CFLAGS = 
> smsd/Makefile:SQLITE_LIBS = SQLITE3_LIBS
> 
> SQLITE_CFLAGS is not set but used further in AM_CFLAGS with $(SQLITE_CFLAGS)
> 
> As a workaround  I changed $(SQLITE_CFLAGS) to $(SQL3_CFLAGS) in 
> smsd/Makefile.am, re-configured the package and built it successfully.
> There must be a more elegant way to solve this but I'm not familiar enough 
> with autotools to solve it differently.
> 
> I noticed that SQLITE_CFLAGS assignment is commented out in configure.in 
> (http://git.savannah.gnu.org/cgit/gnokii.git/tree/configure.in#n751). 
> Uncommenting it didn't help.
> 
> Any hint to fix this ?
> 
> Regards,
>     Romain
> 
> -------------------------------------------
> 
> My configure/autogen output:
> 
>   G N O K I I
> 
>   A toolset and driver for the mobile phones.
> 
>   Copyright (C) 1999-2011  The Gnokii Development Team.
> 
>   This program is free software; you can redistribute it and/or modify
>   it under the terms of the GNU General Public License as published by
>   the Free Software Foundation; either version 2 of the License, or
>   (at your option) any later version.
> 
>   See file COPYING for more details.
> 
>     Host system:        linux-gnueabihf
>     Gnokii version:     0.6.32git
>     Xgnokii version:    1.0
>     SMSD version:       1.5.3
>     X (GTK+) support:   no
>     smsd support:       yes
>     Postgres support:   no
>     SQLite support:     yes
>     MySQL support:      no
>     Debug:              yes
>     XDebug:             yes
>     RLPDebug:           yes
>     NLS:                yes
>     IrDA:               no
>     ical read support:  no
>     Bluetooth:          no
>     libusb support:     no
>     phonet support:     yes
>     libpcsclite support:no
>     readline support:   no
>     Build Shared Lib:   yes
>     Build Static Lib:   yes
>     Windows:            no
>     Prefix:             
> /home/bornetr/dev/buildroot/buildroot-2013.05/output/target/usr
> 
>   Type 'make' for compilation and then 'make install', to
>   install gnokii.
> 
> 
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gnokii-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]