Problems running qmake inside scratchbox (and outside)

Problems running qmake inside scratchbox (and outside)

<pedro.larroy at nokia.com>

2010-10-20 09:10 UTC
Hi

I'm having trouble running qmake, could it be related to libraries?

Here's the results of qmake invocation:

Thanks. Pedro.

piotr@gominola-deb32:1:~/.maemo-sdk/rootstraps/armel/fremantle5.0minimal_armel/usr/bin$ strace ./qmake
execve("./qmake", ["./qmake"], [/* 64 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb778c000
_llseek(3, 0, 0xbfe735b8, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3) = 0
munmap(0xb778c000, 4096) = 0
exit_group(1) = ?
piotr@gominola-deb32:1:~/.maemo-sdk/rootstraps/armel/fremantle5.0minimal_armel/usr/bin$ ldd qmake
linux-gate.so.1 => (0xb788a000)
libstdc++.so.5 => not found
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7851000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7832000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb76ec000)
/scratchbox/host_shared/lib/ld.so => /lib/ld-linux.so.2 (0xb788b000)
piotr@gominola-deb32:0:~/.maemo-sdk/rootstraps/armel/fremantle5.0minimal_armel/usr/bin$ cd /tmp/
piotr@gominola-deb32:0:/tmp$ sb2
[SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $ qmake
bash: /usr/bin/qmake: No such file or directory
[SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $ file /usr/bin/qmake
/usr/bin/qmake: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped
[SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $
  •  Reply

Re: Problems running qmake inside scratchbox (and outside)

Aapo Rantalainen
Karma: 724
2010-10-21 13:09 UTC
> [SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $ qmake
> bash: /usr/bin/qmake: No such file or directory
> [SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $ file /usr/bin/qmake
> /usr/bin/qmake: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped
> [SB2 devel fremantle5.0minimal_armel] piotr@gominola-deb32 tmp $

qmake installed from repositories is i386 binary (as you show). So it
can't be run inside SB2. Once I have successful compiled qmake inside
SB2.
E.g. fetching sources from ubuntus repository contains all needed
packeting which can be used without modifications for maemo. (Actually
running sb2 -e ./configure will compile qmake-binary on that step).

This is not guaranteed that it will work, but at least you then have
runnable qmake-binary inside SB2. (If armel-package contains i386
binary there might be some other messing too)

-Aapo Rantalainen
  •  Reply