Jump to content

QT3 Designer issue


Recommended Posts

Wanting to write GUI for an applications *rc file so I don't have to edit w/text editor all the time so trying to learn QT3 and wanting to use QT3 Designer. So far just expiermenting with GUI design (without coding any of the actions). I get a simple design then go to the directory with the files and use qmake to generate a Makefile then run make to compile it. Here is the resultant output from my last try.. Seems like I'm missing a package but I really have NO idea why, it just looks that way for some reason..

--- this is the directory contents after running qmake ----

drwxrwxr-x 2 mike mike 4096 Jun 21 03:22 images/

-rw-rw-r-- 1 mike mike 10928 Jun 21 03:22 mainform.ui

-rw-rw-r-- 1 mike mike 9680 Jun 21 03:22 mainform.ui~

-rw-r--r-- 1 mike mike 4330 Jun 21 03:23 Makefile

-rw-rw-r-- 1 mike mike 346 Jun 21 03:22 temp.pro

 

----- now the 'make' process ----------

 

[mike@kirk temp]$ make

/usr/lib/qt3//bin/uic mainform.ui -o .ui/mainform.h

/usr/lib/qt3//bin/uic mainform.ui -i mainform.h -o .ui/mainform.cpp

g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=penti

o -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/defa

-I. -I/usr/lib/qt3//include -I.ui/ -I. -I.moc/ -o .obj/mainform.o .ui/mainfo

pp

/usr/lib/qt3//bin/uic -embed temp images/filenew images/fileopen images/fil

e images/print images/undo images/redo images/editcut images/editcopy images

tpaste images/searchfind images/xkill.png -o .ui/qmake_image_collection.cpp

g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=penti

o -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/defa

-I. -I/usr/lib/qt3//include -I.ui/ -I. -I.moc/ -o .obj/qmake_image_collectio

.ui/qmake_image_collection.cpp

/usr/lib/qt3//bin/moc .ui/mainform.h -o .moc/moc_mainform.cpp

g++ -c -pipe -Wall -W -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=penti

o -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/defa

-I. -I/usr/lib/qt3//include -I.ui/ -I. -I.moc/ -o .obj/moc_mainform.o .moc/m

ainform.cpp

g++ -o temp .obj/mainform.o .obj/qmake_image_collection.o .obj/moc_mainform.o -L/usr/lib/qt3//lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm

 

>> this is where the error occurs.. Am I missing a *devel*.rpm of some kind? <<

 

/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start':

../sysdeps/i386/elf/start.S:98: undefined reference to `main'

collect2: ld returned 1 exit status

make: *** [temp] Error 1

 

-----------------------

 

I'm baffled.. Any help at all?? (please!!)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...