The problem was that some packages have not been installed. Afther installing libx11-dev and libxext-dev all works fine.
I have compiled Qt with ptions "-static -prefix /qt". The first means statically linked program, and second to be installed in directory /qt.
Quote:
But what you probably mean, is that you want to create 'a statically linked program'
which is your program linked into one executable, including all dependencies ?
|
Yes, I want to create statically linked program with qt. And I made it, but I have error on server (targeted) machine:
./test: /lib/libc.so.6: version `GLIBC_2.4' not found (required by ./test)
ldd gives:
./test: /lib/libc.so.6: version `GLIBC_2.4' not found (required by ./test)
librt.so.1 => /lib/librt.so.1 (0x00002b50ec837000)
libdl.so.2 => /lib/libdl.so.2 (0x00002b50ec940000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00002b50eca44000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002b50ecb59000)
libm.so.6 => /lib/libm.so.6 (0x00002b50ecd57000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002b50eceda000)
libc.so.6 => /lib/libc.so.6 (0x00002b50ecfe7000)
/lib64/ld-linux-x86-64.so.2 (0x00002b50ec712000)
So, all qt libraries are staticly linked but the libm.so.6 is not suitible. Afther "googling" I figured out that on target machine mentioned library is the old.
How could I solve this problem? If I build my program on some older distribution will that make some diference?
Or is it possible to staticly link and that library?