You are not logged in.

1

Thursday, January 25th 2007, 9:36am

why cann`t produce .exe file?

I compile and run under CodeBlock, When my project has no slot and signal, it is ok to display the interface. But when I add Slots to my project, it can be compiled and run with no error, but it cann`t produce .exe file, i can not see the outcome of interface, why?

Manivannan_1984

Intermediate

  • "Manivannan_1984" is male

Posts: 305

Location: chennai

Occupation: Software Engineer

  • Send private message

2

Thursday, January 25th 2007, 9:41am

RE: why cann`t produce .exe file?

When u add slots is it linking properly..?

Did u get any link errors..? Also pls post some of your code, so that we can help you in better..
[PHP]

Quoted

U can make anything, but nothing can make U.

3

Thursday, January 25th 2007, 9:49am

RE: why cann`t produce .exe file?

I try to compile and run the example in QT4.1.2, it is the same problem,

4

Thursday, January 25th 2007, 10:16am

RE: why cann`t produce .exe file?

after i compile it says:
make.exe[1]:Leaving directory`D:/Qt/MyExample/MyTextEdit`(it is my directory)
make.exe[1]:***[release\qrc_application.cpp] Error 2
make.exe:***[release] Error2

after i run it says:
make.exe:***No rule to make target 'default'. Stop

can somebody help me? I am an beginner, thank you!

Manivannan_1984

Intermediate

  • "Manivannan_1984" is male

Posts: 305

Location: chennai

Occupation: Software Engineer

  • Send private message

5

Thursday, January 25th 2007, 10:29am

RE: why cann`t produce .exe file?

It is something related with your project settings and path settings it seems..

which platform u r working on...?

U r using .pro file right...?




Regards,
Mani
[PHP]

Quoted

U can make anything, but nothing can make U.

6

Thursday, January 25th 2007, 11:05am

RE: why cann`t produce .exe file?

I work on windowXP . I try several examples, and find if the there are resources of images , it will not produce .exe file, cause the problem above.
But if the example has no resources of images, it is OK to produce the .exe file.
In the main.cpp it is:
int main(int argc, char* argv[])
{
Q_INIT_RESOURCE(configdialog);
..........

}

and in the configdialog.qrc file , it is:
<!DOCTYPE RCC><RCC version=¨1.0¨>
<qresourece>
<file>image/config.png</file>
</qresource>
</RCC>

is it the problem of the rcc version?

7

Thursday, January 25th 2007, 11:23am

RE: why cann`t produce .exe file?

I find the mistake,it says:
process_begin:CreateProcess((null), d:Qt4.1.2binrcc.exe -name configdialog configdialog.qrc -o releaseqrc_configdialog.cpp,...) failed.

OK , now how to solve it?

i have tried to change the rcc version , it does not work

saubue

Trainee

Posts: 129

Location: Germany

  • Send private message

8

Thursday, January 25th 2007, 11:26am

Are you sure that the image files listed in the resource file are existing?

9

Thursday, January 25th 2007, 11:52am

yes, i put the main.cpp , *.cpp, *.h and configdialog.qrc, images file under the same directory.
in the images file , there are *.png files

huzefar

Trainee

  • "huzefar" is male

Posts: 101

Location: London, UK

Occupation: software engineer

  • Send private message

10

Friday, January 26th 2007, 3:34pm

Looks like a problem with you .pro file ...

u have to specify :-

target = app

and check if all ur .h and .cpp files are present in the .pro file
Regards
Huzy...

11

Friday, January 26th 2007, 10:04pm

well, my .pro file is following:
TEMPLATE = app
TARGET +=
DEPENDPATH += .
INCLUDEPATH += .

# Input
HEADERS += configdialog.h pages.h
SOURCES += configdialog.cpp main.cpp pages.cpp
RESOURCES += configdialog.qrc

12

Saturday, January 27th 2007, 6:46am

Hi!
It may seem a silly question of me, but have you included the related graphics header(e.g. qpixmap.h)?
Another thing is that you can find what the error is if you look upper lines of the make output.Somewehere up there the first error has occured and announced.

Have a nice day!
Pooria

13

Saturday, January 27th 2007, 11:25am

i have include <QtGui>,