On 17 February 2010 10:20, Sunny Sharma <[email protected]> wrote:
> Hello sir,
>
> The program given is compiling properly forming a proper GUI but its not
> finding the word in an editor.In other words the program is not running
> properly
> Please have a look at it.

I could build it on my machine. I have qt4. You are probably using
qmake -project instead of using qmake-qt4 -project. Be sure to use qt4
and not qt3. Here is the series of commands and output:

deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$ vim main.cpp
deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$
qmake-qt4 -projectdeba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$
qmake-qt4
deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. -o FindDialog.o FindDialog.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. -o main.o main.cpp
/usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. FindDialog.h -o
moc_FindDialog.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. -o moc_FindDialog.o moc_FindDialog.cpp
g++ -Wl,-O1 -o dgplugusersapplicationnotworking FindDialog.o main.o
moc_FindDialog.o    -L/usr/lib -lQtGui -lQtCore -lpthread
deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$ ls
dgplugusersapplicationnotworking      FindDialog.o  moc_FindDialog.cpp
dgplugusersapplicationnotworking.pro  main.cpp      moc_FindDialog.o
FindDialog.cpp                        main.o
FindDialog.h                          Makefile
deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$
./dgplugusersapplicationnotworking
deba...@deep-blur:~/Desktop/dgplugusersapplicationnotworking$


-- 
Regards,
Debayan Banerjee
_______________________________________________
Users mailing list
[email protected]
http://lists.dgplug.org/listinfo.cgi/users-dgplug.org

Reply via email to