[Qt-interest] 答复: 答复: database exec sql

Gopalakrishna Bhat gopalakbhat at gmail.com
Wed Sep 1 11:40:27 CEST 2010


Hi,

One more thing by default the installation goes to /usr/local/lib either
adds this to LIBS +=-L/usr/local/lib or install it by
* ./configure -prefix=/usr
* make
* make install

With regards,
Gopalakrishna Bhat

2010/9/1 Gopalakrishna Bhat <gopalakbhat at gmail.com>

> Hi,
>
>
> http://theitdepartment.wordpress.com/2009/03/15/centos-qt-fcfreetypequeryface/
>
> The above link might help you.
>
> With regards
> Gopalakrishna Bhat
>
>
> On Wed, Sep 1, 2010 at 2:51 PM, pengliang(ÅíÁÁ) <pengliang at founder.com>wrote:
>
>>  Hi:
>>
>> Still failed, whether It maybe fontconfig-2.6.0.tar.gz problem?
>>
>>           Information:
>>
>> g++ -m64 -Wl,-rpath,/opt/qtsdk-2010.04/qt/lib -o database_test main.o
>> mainwindow.o moc_mainwindow.o -L/opt/qtsdk-2010.04/qt/lib
>> /opt/qtsdk-2010.04/qt/lib/libQtGui.so -L/opt/qtsdk-2010.04/qt/lib
>> -L/usr/X11R6/lib64 -lQtSql -lQtGui -lQtCore -lpthread
>>
>> /opt/qtsdk-2010.04/qt/lib/libQtGui.so: undefined reference to
>> `FcFreeTypeQueryFace'
>>
>> collect2:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Thanks*
>>
>> * **Ken*
>>
>>
>>
>>
>>  ------------------------------
>>
>> *·¢¼þÈË:* Gopalakrishna Bhat [mailto:gopalakbhat at gmail.com]
>> *·¢ËÍʱ¼ä:* 2010Äê9ÔÂ1ÈÕ 16:40
>> *ÊÕ¼þÈË:* pengliang(ÅíÁÁ)
>> *³­ËÍ:* qt-interest at trolltech.com
>> *Ö÷Ìâ:* Re: [Qt-interest] ´ð¸´: database exec sql
>>
>>
>>
>> Hi,
>> It looks like a linker error. Just check your pro file to check that it
>> added in the LIBS section. If not just add it.
>>
>> With regards,
>> Gopalakrishna Bhat
>>
>>  On Wed, Sep 1, 2010 at 1:59 PM, pengliang(ÅíÁÁ) <pengliang at founder.com>
>> wrote:
>>
>> Hi
>>
>>     I have installed fontconfig-2.6.0.tar.gz, but still warning, looks
>> below:
>> OS: linux 2.6.18-92.el5 x86_64
>> Qt: 4.6.3
>>
>>
>> Please help me, thanks.
>> --------------------------------------------------------------------
>> L/opt/qtsdk-2010.04/qt/lib -lQtGui -L/opt/qtsdk-2010.04/qt/lib
>> -L/usr/X11R6/lib64 -lQtCore -lpthread
>> /opt/qtsdk-2010.04/qt/lib/libQtGui.so: undefined reference to
>> `FcFreeTypeQueryFace'
>> collect2: ld 返回 1
>> make: *** [untitled8] 错误 1
>> make: Leaving directory `/home/incam/testQ/untitled8-build-desktop'
>> The process "/usr/bin/make" exited with code %2.
>> Error while building project untitled8 (target: Desktop)
>> When executing build step 'Make'
>> --------------------------------------------------------------------
>>
>> -----ÓʼþÔ­¼þ-----
>> ·¢¼þÈË: qt-interest-bounces at trolltech.com [mailto:
>> qt-interest-bounces at trolltech.com] ´ú±í Nikolay Moskvichev
>> ·¢ËÍʱ¼ä: 2010Äê8ÔÂ31ÈÕ 15:59
>> ÊÕ¼þÈË: qt-interest at trolltech.com
>> Ö÷Ìâ: Re: [Qt-interest] database exec sql
>>
>>
>> Hello, pengliang(ÅíÁÁ)
>> 31.08.2010 8:02 you wrote:
>> > Hi All:
>> >
>> >      Please see the below picture, I don¡¯t know why can not execute sql
>> > but open is true?
>> >
>> > And I execute sql in terminal, all are ok.
>> >
>> > Thanks
>> >
>>
>> In your terminal it looks like you use mysql, but in your code you use
>> SQLITE. Are you shure that SQLITE supports "show databases"?
>> Looks like not:
>>
>> SQLite version 3.2.8
>> Enter ".help" for instructions
>> sqlite> show databases;
>> SQL error: near "show": syntax error
>> sqlite>
>>
>>
>> > Ken
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>>
>>
>> --
>> My blog http://gkbhat.blogspot.com
>>
>
>
>
> --
> My blog http://gkbhat.blogspot.com
>



-- 
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100901/dd6fd1a3/attachment.html 


More information about the Qt-interest-old mailing list