First let's edit your user's .bashrc file so that we can call qmake without having to specify the entire path:
Open ~/.bashrc in the text editor of your choice and add the following to it:
alias ts-qmake='/usr/local/Trolltech/QtEmbedded-4.5.3-arm/bin/qmake'Once that's done you can call qmake for the Arm-Compiled QT Embedded as ts-qmake
So let's say you have a simple 'Hello World' QT application with just a main.cpp file. How do you compile it?
In your terminal:
$ cd ~/YOUR-PROJECT-DIRECTORY
$ ts-qmake -project
$ ts-qmake
$ make
Now you will have a binary file that you can transfer over to your 7395 and run.
To run your program, kill the X server (if one is running) via ctrl+alt+backspace (or if you don't have a keyboard hooked up you can always kill the process via a terminal).
Then just navigate to the directory containing your binary and run it like this:
$ ./YOURBINARY -qws
No comments:
Post a Comment