Necessitas is a KDE community project aimed to provide an easy way to develop Qt apps on Android platform.
Please see below link for detail.
http://necessitas.kde.org/
http://www.youtube.com/watch?v=suPeZ7XC1xk
Murmur of a rookie software engineer came from Taiwan.
(Sorry for my poor English, I just practice it here.)
Please feel free to contact me for anything: ninna.tw@gmail.com
2012年9月4日 星期二
2011年4月9日 星期六
Hello QT Creator (install QT Creator in windows XP)
Download IDE
We need an IDE for development. (Dev C++, VS .Net, QT Creator, Eclipse)
Here we choice QT Creator to achive this goal, so you have to download the QT Creator for windows in official site.
qt-creator-win-opensource-2.1.0.exe (included MinGW).
http://qt.nokia.com/downloads/qt-creator-binary-for-windows
Download QT Library
Also, you have to download the QT library for compile and make.
When you ready all materials, let work it out!
Install the QT Creator
Install the QT library
Only have to modify the MinGW install path to QT Creator install folder.
like C:\Qt\qtcreator-2.1.0\mingw
Setup Environment Variables
Hello QT
Create a test.cpp file in C:\QT\Work
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.show();
return app.exec();
}
Execute Cmd.exe for Compile and make
Chang directory to C:\QT\Work
Execute qmake -project in command line.
Execute qmake in command line.
Execute make in command line.
Run it !
Hello QT Creator
1. Execute Qt Creator
2. Select File->New File or Project on menu.
3. Choose Qt C++ Project and Qt Gui Application then click Choose.
4. Input project name and folder location.
5. Decide the 'Main Window' class infomation, then click Next and Finish.
6. Select Debug->Start Debugging->Start Debugging on menu.
Reference:
http://blogold.chinaunix.net/u3/94212/showart_2526345.html
http://qt.nokia.com/
We need an IDE for development. (Dev C++, VS .Net, QT Creator, Eclipse)
Here we choice QT Creator to achive this goal, so you have to download the QT Creator for windows in official site.
qt-creator-win-opensource-2.1.0.exe (included MinGW).
http://qt.nokia.com/downloads/qt-creator-binary-for-windows
Download QT Library
Also, you have to download the QT library for compile and make.
qt-win-opensource-4.7.2-mingw.exe (compiler, qmake, QT library)
http://qt.nokia.com/downloads/windows-cppWhen you ready all materials, let work it out!
Just click Next until it's done.
Install the QT library
Only have to modify the MinGW install path to QT Creator install folder.
like C:\Qt\qtcreator-2.1.0\mingw
Then just click Next until it's done.
Setup Environment Variables
Add Path
C:\Qt\4.7.2\bin
C:\Qt\qtcreator-2.1.0\mingw\bin
Add Variable
QMAKESPEC = C:\Qt\4.7.2\mkspecs\win32-g++
QTDIR = C:\Qt\4.7.2
Hello QT
Create a test.cpp file in C:\QT\Work
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.show();
return app.exec();
}
Execute Cmd.exe for Compile and make
Chang directory to C:\QT\Work
Execute qmake -project in command line.
Execute qmake in command line.
Execute make in command line.
Run it !
Hello QT Creator
1. Execute Qt Creator
2. Select File->New File or Project on menu.
3. Choose Qt C++ Project and Qt Gui Application then click Choose.
4. Input project name and folder location.
5. Decide the 'Main Window' class infomation, then click Next and Finish.
6. Select Debug->Start Debugging->Start Debugging on menu.
Reference:
http://blogold.chinaunix.net/u3/94212/showart_2526345.html
http://qt.nokia.com/
2011年4月8日 星期五
Hello QT (install QT in linux)
Because my system OS is win xp, so I have to use VM for establish linux enviorment.
1. Install VM station.
Choice "Typical" way and just click "next" until it has done.
Sure, you guy should restart computer after installation compeleted.
2. Install Ubuntu on Virtual Machine.
You can get lastest version of Ubuntu from official web site. (http://www.ubuntu.com/)
Create a new virtual machine in VM workstation and install from image file.
Then completed the installation by yourself, because nothing special need to metion here.
3. Make sure you can compile C/C++ file
Write a simple Hello.c file for test the function.
run it...
$ gcc -Wall Hello.c -o testc
$ ./testc
$ Hello Ubuntu!If you can't done this....type the command in terminial for install gcc.
sudo apt-get install build-essential (Recommand to do this whatever.)
4. Install QT 4 in Ubuntu
Type command below in terminal for QT 4 installation.
sudo apt-get install libqt4-dev (necessary)
sudo apt-get install qt4-doc (necessary)
sudo apt-get install qt4-designer (necessary)
sudo apt-get install libqt4-dbg (optional)
sudo apt-get install libqt4-gui (optional)
sudo apt-get install libqt4-sql (optional)
sudo apt-get install qt4-dev-tools (optional)
sudo apt-get install qt4-qtconfig (optional)
Wait about 20 minutes for download and setup automatically.
5. Write HelloQT.cpp file
6. Make and Run
Execute command below in turn for make files.
$ qmake -project
$ qmake
$ make
Then run it !
$ ./HelloQT
Reference
http://wallyjue.blogspot.com/2008/08/ubuntu-qt4.html
http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=190878
1. Install VM station.
Choice "Typical" way and just click "next" until it has done.
Sure, you guy should restart computer after installation compeleted.
2. Install Ubuntu on Virtual Machine.
You can get lastest version of Ubuntu from official web site. (http://www.ubuntu.com/)
Create a new virtual machine in VM workstation and install from image file.
Then completed the installation by yourself, because nothing special need to metion here.
3. Make sure you can compile C/C++ file
Write a simple Hello.c file for test the function.
#include<stdio.h>
int main()
{
printf("Hello Ubuntu!\n");
return 0;
}
run it...
$ gcc -Wall Hello.c -o testc
$ ./testc
$ Hello Ubuntu!If you can't done this....type the command in terminial for install gcc.
sudo apt-get install build-essential (Recommand to do this whatever.)
4. Install QT 4 in Ubuntu
Type command below in terminal for QT 4 installation.
sudo apt-get install libqt4-dev (necessary)
sudo apt-get install qt4-doc (necessary)
sudo apt-get install qt4-designer (necessary)
sudo apt-get install libqt4-dbg (optional)
sudo apt-get install libqt4-gui (optional)
sudo apt-get install libqt4-sql (optional)
sudo apt-get install qt4-dev-tools (optional)
sudo apt-get install qt4-qtconfig (optional)
Wait about 20 minutes for download and setup automatically.
5. Write HelloQT.cpp file
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.show();
return app.exec();
}
6. Make and Run
Execute command below in turn for make files.
$ qmake -project
$ qmake
$ make
Then run it !
$ ./HelloQT
Reference
http://wallyjue.blogspot.com/2008/08/ubuntu-qt4.html
http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=190878
訂閱:
文章 (Atom)











