[dgplug-users] application not working
Debayan Banerjee
debayanin at gmail.com
Tue Feb 16 21:29:11 PST 2010
On 17 February 2010 10:20, Sunny Sharma <sunny20062010 at gmail.com> 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:
debayan at deep-blur:~/Desktop/dgplugusersapplicationnotworking$ vim main.cpp
debayan at deep-blur:~/Desktop/dgplugusersapplicationnotworking$
qmake-qt4 -projectdebayan at deep-blur:~/Desktop/dgplugusersapplicationnotworking$
qmake-qt4
debayan at 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
debayan at 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
debayan at deep-blur:~/Desktop/dgplugusersapplicationnotworking$
./dgplugusersapplicationnotworking
debayan at deep-blur:~/Desktop/dgplugusersapplicationnotworking$
--
Regards,
Debayan Banerjee
More information about the Users
mailing list