Skip to contentSkip to conversation

Making simple QTE application, cannot find libpthread_nonshared.a

DISCUSSION Dmitry Vinokurov 3 participants 11 messages Nov 25, 2009 – Dec 2, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

Example from manual chapter"Creating and Using a Qt Embedded SDK" fails at linking stage:
---------------------------

$ qmake2
$ make
arm-oe-linux-gnueabi-g++ -c -pipe   -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/minimal/arm/arm-oe-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -I. -I/usr/local/minimal/arm/arm-oe-linux-gnueabi//usr/include/qtopia/QtCore -I/usr/local/minimal/arm/arm-oe-linux-gnueabi//usr/include/qtopia/QtGui -I/usr/local/minimal/arm/arm-oe-linux-gnueabi//usr/include/qtopia -I. -o main.o main.cpp
arm-oe-linux-gnueabi-g++  -Wl,-rpath-link,/usr/lib -o qte-example main.o    -L/usr/local/minimal/arm/arm-oe-linux-gnueabi//usr/lib -lQtGuiE -lpng -lfreetype -lQtNetworkE -pthread -pthread -pthread -pthread -pthread -pthread -lQtCoreE -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/local/minimal/arm/lib/gcc/arm-oe-linux-gnueabi/4.4.2/../../../../arm-oe-linux-gnueabi/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi
collect2: ld returned 1 exit status
make: *** [qte-example] Ошибка 1
---------------------------

Could anybody suggest, how this issue can be solved? I even have no idea, why it searches for static library instead of dynamic.

Thanks.

Signature · 1 line
Best Regards, Dmitry Vinokurov <[email protected]>
#1 lore raw
Quoted 3 lines · On Wednesday 25 November 2009 06:33:24 Dmitry Vinokurov wrote:

Hello,

Example from manual chapter"Creating and Using a Qt Embedded SDK" fails

When did you build meta-toolchain-qte?

z.

#2 lore raw

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

--
Best Regards, Dmitry Vinokurov <[email protected]>

Holger Hans Peter Freyther пишет:

Quoted 16 lines · On Wednesday 25 November 2009 06:33:24 Dmitry Vinokurov wrote:
Quoted 5 lines

Hello,

Example from manual chapter"Creating and Using a Qt Embedded SDK" fails

When did you build meta-toolchain-qte?

z.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 5 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Could you look into the libc-dev package, or in general libc packages to see if this library is present in any package? You could use mc or Packages.filelist to figure that out.

z.

#4 lore raw
Quoted 9 lines · Holger Hans Peter Freyther
Quoted 6 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Quoted 5 lines

Could you look into the libc-dev package, or in general libc packages to see if this library is present in any package? You could use mc or Packages.filelist to figure that out.

z.

Here is search results:
--------

[14:50]raydan@t46x[build]$ find tmp | grep libpthread_nonshared.a
tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/staging-pkg/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/image/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/package/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/build-arm-oe-linux-gnueabi/nptl/libpthread_nonshared.a
--------
[10:43]raydan@t46x[qte-example]$ find /usr/local/minimal/ | grep libpthread_nonshared.a
--------

So, libpthread_nonshared.a exist in eglibc for ARM, but not present in the QtE SDK.

How do you think, is there better way to solve this issue than just copying library into QtE SDK lib dir?

--
Best Regards, Dmitry Vinokurov <[email protected]>

#5 lore raw
Quoted 12 lines · On Wednesday 02 December 2009 11:00:28 Dmitry Vinokurov wrote:

Here is search results:
--------

[14:50]raydan@t46x[build]$ find tmp | grep libpthread_nonshared.a
tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/staging-pkg/staging/armv
5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/image/usr/lib/libpthrea
d_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/package/usr/lib/libpthr
ead_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/build-arm-oe-linux-gnue
abi/nptl/libpthread_nonshared.a --------

ah eglibc... so your finding is that this library is not in any glibc-* package? So when building glibc you must get a warning like unpackaged
content... could you take a look at the log?

In high level terms. The library should be in a package (like -dev) and it should be installed. If that is not the case it must be fixed.

thanks

	z.
#6 lore raw
Quoted 17 lines · Holger Hans Peter Freyther
Quoted 13 lines · On Wednesday 02 December 2009 11:00:28 Dmitry Vinokurov wrote:

Here is search results:
--------

[14:50]raydan@t46x[build]$ find tmp | grep libpthread_nonshared.a
tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/staging-pkg/staging/armv
5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/image/usr/lib/libpthrea
d_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/package/usr/lib/libpthr
ead_nonshared.a
 tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/build-arm-oe-linux-gnue
abi/nptl/libpthread_nonshared.a --------
Quoted 7 lines

ah eglibc... so your finding is that this library is not in any glibc-* package? So when building glibc you must get a warning like unpackaged content... could you take a look at the log?

In high level terms. The library should be in a package (like -dev) and it should be installed. If that is not the case it must be fixed.

thanks

	z.

Following commands show no output (though log files exist there):
--------
grep -i unpackaged tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/temp/* grep -i "not shipped" tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/temp/*
--------

"When building glibc" -- you meant eglibc? glibc wasn't build at all.

Signature · 1 line
Best Regards, Dmitry Vinokurov <[email protected]>
#7 lore raw
In reply to Dmitry Vinokurov
Quoted 27 lines · Dmitry Vinokurov
Quoted 9 lines · Holger Hans Peter Freyther
Quoted 6 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Quoted 5 lines

Could you look into the libc-dev package, or in general libc packages to see if this library is present in any package? You could use mc or Packages.filelist to figure that out.

z.

Here is search results:
--------

[14:50]raydan@t46x[build]$ find tmp | grep libpthread_nonshared.a
tmp/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a
tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/staging-pkg/staging/armv5te-oe-linux-gnueabi/usr/lib/libpthread_nonshared.a 

tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/image/usr/lib/libpthread_nonshared.a

tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/package/usr/lib/libpthread_nonshared.a

tmp/work/armv5te-oe-linux-gnueabi/eglibc-2.10-r7.5/build-arm-oe-linux-gnueabi/nptl/libpthread_nonshared.a

Quoted 11 lines

--------

[10:43]raydan@t46x[qte-example]$ find /usr/local/minimal/ | grep libpthread_nonshared.a
--------

So, libpthread_nonshared.a exist in eglibc for ARM, but not present in the QtE SDK.

How do you think, is there better way to solve this issue than just copying library into QtE SDK lib dir?

Signature · 1 line
Best Regards, Dmitry Vinokurov <[email protected]>

Copied libpthread_nonshared.a from eglibc dir to /usr/local/minimal/arm/arm-oe-linux-gnueabi/usr/lib. Tried 'make' -- similar trouble with libc_nonshared.a. Copied it too, 'make' succeed, binary ready. For the present I can't test it on the board, hope I'll do it at this week.

Maybe this two libraries should be copied from libc to QtE SDK during it's build?

--
Best Regards, Dmitry Vinokurov <[email protected]>

#8 lore raw
In reply to Dmitry Vinokurov
Quoted 5 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Oh you are using minimal? So all these files are installed into /lib? So you actually do have a libpthread_nonshared.a but it is in lib/ and not usr/lib? Could you confirm this?

z.

#9 lore raw
Quoted 10 lines · Holger Hans Peter Freyther
Quoted 5 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Oh you are using minimal? So all these files are installed into /lib? So you actually do have a libpthread_nonshared.a but it is in lib/ and not usr/lib? Could you confirm this?

I think you're thinking of micro, not minimal. AFAIK, minimal uses the "normal" filesystem layout, complete with /usr.

p.

#10 lore raw
Quoted 8 lines · On Wednesday 02 December 2009 09:39:26 Phil Blundell wrote:
Quoted 7 lines · Holger Hans Peter Freyther
Quoted 5 lines · On Wednesday 02 December 2009 06:55:19 Dmitry Vinokurov wrote:

Yesterday pulled from dev branch (git describe output is pre-nov2009-core-updates-606-g237cbb4) and made meta-toolchain-qte rebuild, then tried again to build example -- same error "cannot find /usr/lib/libpthread_nonshared.a inside /usr/local/minimal/arm/arm-oe-linux-gnueabi"

Quoted 6 lines
Quoted 3 lines

Oh you are using minimal? So all these files are installed into /lib? So you actually do have a libpthread_nonshared.a but it is in lib/ and not usr/lib? Could you confirm this?

I think you're thinking of micro, not minimal. AFAIK, minimal uses the "normal" filesystem layout, complete with /usr.

Yeah... confusion on my side... I know that DISTRO=micro is broken for gcc targets (on the device, on the SDK).

z.