I have configured qtopia with the -embedded bfin option, which is required for running my applications on blackfin boards under embedded linux. When I compile my programs with the commands
$ qmake -project
$ qmake -o Makefile project.pro
$ make
All the applications I get are about 7Mb size, which is far too big. The programs I have started to compile are very simple, so I must be doing something wrong.
Also, those files I get are not executable because when I try to execute them I get the message
|
PHP Source code
|
1
|
bash: ./program: cannot execute binary file
|
Both problems must be related, but I don't know how to get small executable files.
One example of a program that I try to compile correctly is one of the tutorials:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <qapplication.h>
#include <qpushbutton.h>
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
hello.show();
return a.exec();
}
|