there is no Qt libarary file in /usr/local/

hani
when i want run my program in mini2440. i seen this error: 
./armNEW: error while loading shared libraries: libQtGui.so.4: cannot open
shared object file: No such file or directory

and when i googling i see this link:
http://www.friendlyarm.net/forum/topic/1403#9580

that they say look for libs in /usr/local/Qt / libraries but i dont have Qt
folder that contains Qt libs.

now what can i do now?

davef
Google <ini2440vietnam> and read through his tutorial on Qt.

hani
Hi and thanx for yuor reply.
I saw that, and i do those :
3. Loading automatically my own program before qtopia 
The first thing we should do is to stop qtopia, do this:
$cd /etc/init.d/ $vi rcS 
Comment last three lines:
#bin/qtopia& 
#echo" "> /dev/tty1 
#echo"Starting Qtopia, please waiting..." > /dev/tty1
Reset the board, you will see that there is no qtopia desktop anymore but a
black screen. 

The second thing we do is to add the code to run our own program, for
example, our program has a name as "ex1" and it is located in /mnt/ex1. In
this step, we will make some changes from the files in article Upgrade
Qt4.6.2
$cd /etc/ 
$vi profile
Cut those line:
export LD_LIBRARY_PATH=/usr/local/tslib/lib
export QTDIR=/usr/local/Qt                 
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal        
export TSLIB_CONFFILE=/usr/local/etc/ts.conf  
export TSLIB_CONSOLEDEVICE=none               
export TSLIB_FBDEVICE=/dev/fb0              
export TSLIB_PLUGINDIR=/usr/local/tslib/lib/ts
export TSLIB_TSDEVICE=/usr/local/tslib/lib/ts 
export TSLIB_TSEVENTTYPE=INPUT                
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140
Close and save it. Then:
$cd /etc/init.d/
$vi rcS
Paste above lines into the end of this rcS file, and add following line
into the end of rcS file too
./mnt/ex1 -qws

i mean when i open "profile" at the first, there is no command like the
site says.
but i copy them from site to /etc/init.d/rcS
but i have that error :./armNEW: error while loading shared libraries:
libQtGui.so.4: cannot open
shared object file: No such file or directory (i change my app name from
ex1 to armNEW)


helppppppppppppppppp meeeeeeeeee plzzzzzzzzzzzzzz :(

davef
Well, looking at the error msg .... where is libQtGui.so.4 located on your
target?

hani
hi
i do at first again
1: install linux on mini2440
2: copy the libs (tslib and /usr/local/Qt/lib (my first problem is solved
and i find i should copy that directory from pc to board to make
/usr/local/Qt/lib))
3: when i run my program i see this error again : 
[root@FriendlyARM usb]# ./armNEW -qws
./armNEW: error while loading shared libraries: libQtGui.so.4: cannot open
shared object file: No such file or directory

libQtGui.so.4 is placed in :
[root@FriendlyARM /]# find -name "libQtGui.so.4"  
./usr/local/Qt/lib/libQtGui.so.4
./usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/libQtGui.so.4

but i dont know what is the meaning of this error?

davef
Going back a post or two ...

> i mean when i open "profile" at the first, there is no command like the
> site says.

I think you mean no file like that.  I think you are doing the right thing
putting those environment variables into /etc/init.d/rcS

You seem to have the correct library path

  export QTDIR=/usr/local/Qt

http://www.friendlyarm.net/forum/topic/4853

near the bottom was a solution? to someone's problem.

You did do a readelf on the cross-compiled libQtGui.so.4 as per the other
recent QT thread?

Can you do a ts_calibrate?

davef
Another tutorial:
https://suchakra.wordpress.com/2011/05/17/qt-on-mini2440/

davef
Try this ... libQtGui.so.4 is a link to libQtGui.so.4.8.4 on my system.

Is libQtGui.so.4 a link to libQtGui.so.4.x.x on your system?

I read something about copying symbolic links from your host to your
target, ie maybe something gets messed up.  Does libQtGui.so.4 show as a
valid link on your target?