[Buildroot] Build qt failed after update to 2011.05

Bob Liu lliubbo at gmail.com
Tue May 31 03:36:10 UTC 2011


On Mon, May 30, 2011 at 10:35 PM, Christopher Boumenot
<boumenot at gmail.com> wrote:
> On Mon, May 30, 2011 at 3:47 AM, Bob Liu <lliubbo at gmail.com> wrote:
>>
>> Hi, folks
>>
>> After I updated to 2011.05 release, I failed to build qt.
>>
> [snip]
>
>>
>> Any ideas is welcome, Thanks!
>>
>
> I figured if it worked for ruby it would work for qt.  I was able to build
> with this commit reverted.

Thanks for you reply.

After revert this commit the error disappeared, but I got another issue.

linking ../../lib/libQtCore.so.4.7.1
/lib/libpthread.so.0: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[2]: *** [../../lib/libQtCore.so.4.7.1] Error 1

It seems qt find the wrong libpthread, but I don't know why.

root # file ./output/host/usr/arm-unknown-linux-gnueabi/sysroot/lib/libpthread-2.11.1.so
./output/host/usr/arm-unknown-linux-gnueabi/sysroot/lib/libpthread-2.11.1.so:
ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.16, not stripped


>  commit 7e3e8ec040b06d6e2fb69e55c004f1ebc02c76d0
> Author: Peter Korsgaard <jacmet at sunsite.dk>
> Date:   Fri Apr 29 15:40:58 2011 +0200
>     package/Makefile.in: CFLAGS/LDFLAGS: don't add -I / -L args for
> STAGING_DIR
>     Now that we use sysroot for all toolchains, the explicit -I / -L
> arguments
>     in CFLAGS / LDFLAGS aren't needed anymore (And having them makes the
> build
>     quite noisy for certain packages as STAGING_DIR/include normally doesn't
>     exist).
>     Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
>
> Chris
>

-- 
Regards,
--Bob



More information about the buildroot mailing list