[Top][All Lists]

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

smsd build issue with sqlite

From: Bornet Romain
Subject: smsd build issue with sqlite
Date: Mon, 12 Aug 2013 11:42:20 +0000


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 ./ --prefix=<my_cross_root>/target/usr 
--host=arm-linux-gnueabihf --without-x --disable-irda 
$ 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 = 
smsd/Makefile:SQLITE3_LIBS = 
smsd/Makefile:SQLITE_CFLAGS = 

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/, 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 
Uncommenting it didn't help.

Any hint to fix this ?



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

  Type 'make' for compilation and then 'make install', to
  install gnokii.

reply via email to

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