[Qt-interest] [SOLVED] undefined symbol on Linux/ubuntu

M. Bashir Al-Noimi mbnoimi at gmx.com
Wed Jul 22 23:30:05 CEST 2009


Thiago Macieira wrote:

> Em Domingo 19 Julho 2009, �s 10:38:51, M. Bashir Al-Noimi escreveu:
>   
>> Hi All,
>>
>> I tried to run QCat software on my ubuntu but it gave me the following
>> error message:
>>
>> ./qcat: symbol lookup error: ./qcat: undefined symbol: _Z13qFlagLocationPKc
>>
>>
>> How I can fix this issue for running my executable? is there any missing
>> libs?
>>     
>
> You're missing Qt 4.5. Your program was compiled for that version but it's 
> finding an earlier version.
>
>   
>>     * my system path is:
>>
>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/op
>> t/qtsdk-2009.03/qt/bin:/opt/qtsdk-2009.03/qt/lib
>>     
>
> PATH is for finding executables.
>
> For finding libraries, it's LD_LIBRARY_PATH. 
>
>   
>>     * The ldd output for qcat executable is:
>>
>> 	linux-gate.so.1 =>  (0xb8014000)
>> 	libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0xb7fa2000)
>> 	libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb7f5e000)
>> 	libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb765a000)
>>     
> [snip]
>
> As you can see, your executable found the system library, which is most likely 
> Qt 4.4.
>
> Your options are:
> 1) upgrade your system to Qt 4.5
> 2) set LD_LIBRARY_PATH to point to the SDK-provided Qt 4.5
> 3) use RPATH when linking your executable
> 4) any combination of the above.
>
> From the options available, the combination 1 & 2 is the best.
>
>   
Hi All,

Solved ;-)  thanks Thiago.


-----
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090723/1041cf2d/attachment.html 


More information about the Qt-interest-old mailing list