Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QDB and SQLite: (6 Items)
   
QDB and SQLite  
Hi,

I am setting up aviage on arm target.
 I am getting a conflict while setting QDB 

its giving me :

qdb: QDB requires SQLite version "3.6.12", found "3.6.23.1"


I know its something to do with the some libraries. But can anybody point me the correct libraries I need to get this 
going ?

or can I upgrade QDB ? 

what can be a solution to this ?
Re: QDB and SQLite  
Could you provide the use -i for qdb and sqlite?

On 11-11-30 10:36 AM, "Arun Johnson" <community-noreply@qnx.com> wrote:

>Hi,
>
>I am setting up aviage on arm target.
> I am getting a conflict while setting QDB
>
>its giving me :
>
>qdb: QDB requires SQLite version "3.6.12", found "3.6.23.1"
>
>
>I know its something to do with the some libraries. But can anybody point
>me the correct libraries I need to get this going ?
>
>or can I upgrade QDB ?
>
>what can be a solution to this ?
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post90356
>
Re: QDB and SQLite  
I am so sorry I couldnt understand the use of -i

I am new to this and trying to run this on arm.

I am using 

qdb -c /db/qdb.cfg -v -Otempstore=/fs/tmpfs -Rset

to set it up ..everything else I got from the multimedia package (Aviage core 1.2)

Thanks,
Arun
Re: QDB and SQLite  
Find "qdb" and "libsqlite.so.1" on the target and run:
  "use -i /path/to/qdb /path/to/libsqlite.so.1"

Most likely they will be from different builds and the use information
will not match.

-- 
Ryan J. Allen
QNX Software Systems

Re: QDB and SQLite  
This is what I got : I was using the source file from trunk: to get this 


use -i /tmp/qdb /tmp/libsqlite3.so.1
NAME=qdb
DESCRIPTION=QNX SQL Database Server
DATE=2011/11/29-11:42:24-EST
STATE=Experimental
HOST=pc138
USER=ajohnson


NAME=libsqlite3.so
DESCRIPTION=SQLite Library
DATE=2011/11/16-12:20:39-EST
STATE=Experimental
HOST=pc138
USER=ajohnson
Re: QDB and SQLite  
At compile time QDB saves SQLITE_VERSION_NUMBER (from the sqlite header);
at run-time it compares this to the sqlite library's version number.  If
it doesn't match, qdb exits.  So, fundamentally, you have a version
mis-match here.

Either:
  A) the sqlite header file qdb is being built against doesn't match the
sqlite library that you're building (perhaps you forgot to "make hinstall"
in lib/sqlite before building qdb); or
  B) qdb isn't using the libsqlite library you are putting on your target
(another library may be in the library search path).

To test for (B), you could start QDB with the DL_DEBUG environment
variable to determine where qdb is loading libsqlite from:
  DL_DEBUG=libs qdb -c ...

If qdb is loading the correct library then it's likely that (a) is the
problem and qdb is being built against a different sqlite header.

(As an aside: if you can, I would recommend using qnx-provided binaries
rather than binaries you've built yourself.)

-- 
Ryan J. Allen
QNX Software Systems