All of lore.kernel.org
 help / color / mirror / Atom feed
* Making simple QTE application, cannot find libpthread_nonshared.a
@ 2009-11-25  5:33 Dmitry Vinokurov
  2009-11-26  8:53 ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitry Vinokurov @ 2009-11-25  5:33 UTC (permalink / raw)
  To: openembedded-devel

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.

-- 
Best Regards, 
Dmitry Vinokurov 
<d.vinokuroff@gmail.com>




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-11-25  5:33 Making simple QTE application, cannot find libpthread_nonshared.a Dmitry Vinokurov
@ 2009-11-26  8:53 ` Holger Hans Peter Freyther
  2009-12-02  5:55   ` Dmitry Vinokurov
  0 siblings, 1 reply; 11+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-26  8:53 UTC (permalink / raw)
  To: openembedded-devel

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.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-11-26  8:53 ` Holger Hans Peter Freyther
@ 2009-12-02  5:55   ` Dmitry Vinokurov
  2009-12-02  6:49     ` Holger Hans Peter Freyther
  2009-12-02  7:38     ` Holger Hans Peter Freyther
  0 siblings, 2 replies; 11+ messages in thread
From: Dmitry Vinokurov @ 2009-12-02  5:55 UTC (permalink / raw)
  To: openembedded-devel

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 
<d.vinokuroff@gmail.com>



Holger Hans Peter Freyther пишет:
> 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.
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>   



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02  5:55   ` Dmitry Vinokurov
@ 2009-12-02  6:49     ` Holger Hans Peter Freyther
  2009-12-02 10:00       ` Dmitry Vinokurov
  2009-12-02  7:38     ` Holger Hans Peter Freyther
  1 sibling, 1 reply; 11+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-02  6:49 UTC (permalink / raw)
  To: openembedded-devel

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.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02  5:55   ` Dmitry Vinokurov
  2009-12-02  6:49     ` Holger Hans Peter Freyther
@ 2009-12-02  7:38     ` Holger Hans Peter Freyther
  2009-12-02  8:39       ` Phil Blundell
  1 sibling, 1 reply; 11+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-02  7:38 UTC (permalink / raw)
  To: openembedded-devel

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.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02  7:38     ` Holger Hans Peter Freyther
@ 2009-12-02  8:39       ` Phil Blundell
  2009-12-02  9:22         ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 11+ messages in thread
From: Phil Blundell @ 2009-12-02  8:39 UTC (permalink / raw)
  To: openembedded-devel

On Wed, 2009-12-02 at 08:38 +0100, Holger Hans Peter Freyther wrote:
> 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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02  8:39       ` Phil Blundell
@ 2009-12-02  9:22         ` Holger Hans Peter Freyther
  0 siblings, 0 replies; 11+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-02  9:22 UTC (permalink / raw)
  To: openembedded-devel

On Wednesday 02 December 2009 09:39:26 Phil Blundell wrote:
> On Wed, 2009-12-02 at 08:38 +0100, Holger Hans Peter Freyther wrote:
> > 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.

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

z.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02  6:49     ` Holger Hans Peter Freyther
@ 2009-12-02 10:00       ` Dmitry Vinokurov
  2009-12-02 13:01         ` Dmitry Vinokurov
  2009-12-02 13:01         ` Holger Hans Peter Freyther
  0 siblings, 2 replies; 11+ messages in thread
From: Dmitry Vinokurov @ 2009-12-02 10:00 UTC (permalink / raw)
  To: openembedded-devel

Holger Hans Peter Freyther wrote:
> 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.
>   
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 
<d.vinokuroff@gmail.com>




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02 10:00       ` Dmitry Vinokurov
@ 2009-12-02 13:01         ` Dmitry Vinokurov
  2009-12-02 13:01         ` Holger Hans Peter Freyther
  1 sibling, 0 replies; 11+ messages in thread
From: Dmitry Vinokurov @ 2009-12-02 13:01 UTC (permalink / raw)
  To: openembedded-devel

Dmitry Vinokurov wrote:
> Holger Hans Peter Freyther wrote:
>> 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.
>>   
> 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 <d.vinokuroff@gmail.com>
>
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 
<d.vinokuroff@gmail.com>




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02 10:00       ` Dmitry Vinokurov
  2009-12-02 13:01         ` Dmitry Vinokurov
@ 2009-12-02 13:01         ` Holger Hans Peter Freyther
  2009-12-02 13:20           ` Dmitry Vinokurov
  1 sibling, 1 reply; 11+ messages in thread
From: Holger Hans Peter Freyther @ 2009-12-02 13:01 UTC (permalink / raw)
  To: openembedded-devel

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.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Making simple QTE application, cannot find libpthread_nonshared.a
  2009-12-02 13:01         ` Holger Hans Peter Freyther
@ 2009-12-02 13:20           ` Dmitry Vinokurov
  0 siblings, 0 replies; 11+ messages in thread
From: Dmitry Vinokurov @ 2009-12-02 13:20 UTC (permalink / raw)
  To: openembedded-devel

Holger Hans Peter Freyther wrote:
> 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.
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.

-- 
Best Regards, 
Dmitry Vinokurov 
<d.vinokuroff@gmail.com>




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-12-02 13:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25  5:33 Making simple QTE application, cannot find libpthread_nonshared.a Dmitry Vinokurov
2009-11-26  8:53 ` Holger Hans Peter Freyther
2009-12-02  5:55   ` Dmitry Vinokurov
2009-12-02  6:49     ` Holger Hans Peter Freyther
2009-12-02 10:00       ` Dmitry Vinokurov
2009-12-02 13:01         ` Dmitry Vinokurov
2009-12-02 13:01         ` Holger Hans Peter Freyther
2009-12-02 13:20           ` Dmitry Vinokurov
2009-12-02  7:38     ` Holger Hans Peter Freyther
2009-12-02  8:39       ` Phil Blundell
2009-12-02  9:22         ` Holger Hans Peter Freyther

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.