MeeGo development command line note

Source: Internet
Author: User


First, assume that the MeeGo SDK has been installed and the terminal is enabled (enable madde terminal in Windows, enable terminal in Linux, where sudo exists, which is not required in widows, here I use linux as an example ):

1. Set the default target

First, check the current target list.

$ Mad list target

Meego-core-armv7l-1.1 (installable)
Meego-core-armv7l-1.1.2 (installable)
Meego-core-armv7l-trunk (installable)
Meego-core-ia32-1.1 (installable)
Meego-core-ia32-1.1.2 (installable)
Meego-core-ia32-trunk (installable)
Meego-handset-ia32-1.1.2 (installed)
Meego-handset-ia32-1.1.2-4.7.1 (installable)
Meego-handset-ia32-1.1 (installable)
Meego-handset-ia32-w32-1.1 (installable)
Meego-handset-ia32-trunk (installable)
Meego-netbook-ia32-1.1.2 (installed)
Meego-netbook-ia32-1.1.2-4.7.1 (installable)
Meego-netbook-ia32-1.1 (installable)
Meego-netbook-ia32-w32-1.1 (installable)
Meego-netbook-ia32-trunk (installable)
Meego-tablet-ia32-1.1.99.0.20110329.5 (installed)

Then, call the following command to set one of them as the default target

$ Sudo mad set meego-netbook-ia32-1.1.2

2. Compile the Qt Program (you can call the following command to generate the default. pro file)

$ Mad qmake-project

3. perform cross-compilation (various qmake and make commands are preceded by mad, which is equivalent to calling the qmake and make commands in the corresponding cross-compilation tool chain)

$ Mad qmake

$ Mad make

$ Mad make clean

$ Mad make distclean

4. rpm Packaging

First, write a. spec file (such as test. spec), and then call the following command to package it:

$ Mad rrpmbuild-bb test. spec

In this way, an rrpmbuild directory can be generated under the current directory, which contains a packaged. rpm file.

5. Run the command in the local qemu simulator.

First, call the following command to start the simulator.

$ Mad remote poweron

Next, copy the program to the simulator (assuming a copy of the executable file test)

$ Scp-P 6666 test root @ localhost:/usr/local/bin

Of course, you can copy the. rpm file.

$ Scp-P 6666 rrpmbuild/*. rpm root @ localhost:/root

Then log on to and run it using ssh.

$ Ssh-p 6666 root @ localhost

Now that you have logged on to the simulator, you can install the rpm file:

# Rpm-ivh test-*. rpm

You can also execute a program on the simulator and set the display first.

# Export DISPLAY =: 0

Then execute:

#/Usr/local/bin/test

6. Run on a remote real machine

Copy the program to a remote machine (assuming a copy of the executable file test)

$ Scp test root@192.168.1.101:/usr/local/bin

Of course, you can copy the. rpm file.

$ Scp rrpmbuilt/*. rpm root@192.168.1.101:/root

Then log on to and run it using ssh.

$ Ssh root @ localhost

You have logged on to the remote machine and can install the rpm file:

# Rpm-ivh test-*. rpm

You can also run the program on a remote machine, su to the meego user, and then set the display

# Su meego

$ Export DISPLAY =: 0

Then execute:

$/Usr/local/bin/te


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.