Go to the path where the executable is and type ./t1. It should work.
Go to the path where the executable is and type ./t1. It should work.
Thanks a lot. i got the command but still....
[root@localhost t1]# ./t1
./t1: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
[root@localhost t1]#
it gives the above error on executing the exe.
one thing i noticed is when i run "make" then it gives as :
[root@localhost t1]# make
g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/linux-g++ -I. -I../../../include/QtCore -I../../../include/QtCore -I../../../include/QtGui -I../../../include/QtGui -I../../../include -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/main.o main.cpp
g++ -Wl,-rpath,/usr/local/Trolltech/Qt-4.2.2/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.2.2/lib -o t1 .obj/release-shared/main.o -L/root/qt-x11-opensource-src-4.2.2/lib -lQtGui -L/root/qt-x11-opensource-src-4.2.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lglib-2.0 -ldl -lpthread
(test -z "" || cd "" ; targ=`basename t1`; objcopy --only-keep-debug "$targ" "$targ.debug" && objcopy --strip-debug "$targ" && objcopy --add-gnu-debuglink="$targ.debug" "$targ" && chmod -x "$targ.debug" ) ;
[root@localhost t1]#
can u tel me why it is taking the path which i have bolded above and how can i correct it?
there is no such folder "trolltech" in /usr/local
i have installed Qt in root.but i think g++ compiler has other settings of qt installation. m i right?
I worked on windows Xp with Qt 4.2.2(Open Source Version) and MinGw
now i am trying the same things on Fedora Core 5 (linux-gcc) and Qt 4.2.2 open source edition.
Right use something like this
Qt Code:
export QTDIR="PATH WHERE qt is installed" (example: /usr/lib/qt4) export PATH=$QTDIR/bin:$PATHTo copy to clipboard, switch view to plain text mode
Follow this thread...
http://www.qtcentre.org/forum/f-inst...paths-822.html
Thanks :-)
its working now :-)
i didnt followed "install make"
Thanks a lot
I worked on windows Xp with Qt 4.2.2(Open Source Version) and MinGw
now i am trying the same things on Fedora Core 5 (linux-gcc) and Qt 4.2.2 open source edition.
Bookmarks