Difference between revisions of "Getting Started"

From WebOS-Ports
Jump to navigation Jump to search
(Installation instructions for QtCreator)
(Detailed steps to install luneos-components (still in progress))
Line 7: Line 7:
 
What you will need:
 
What you will need:
  
* QtCreator (included with Qt which can be downloaded from https://www.qt.io/download/) or installed on Linux using one of these commands:
+
* Qt Creator (included with Qt which can be downloaded from https://www.qt.io/download/) or installed on Linux using one of these commands:
 
*; Ubuntu/Debian
 
*; Ubuntu/Debian
*: sudo apt-get install qtcreator
+
*: <pre>sudo apt-get install qtcreator</pre>
 
*; Fedora
 
*; Fedora
*: yum install qt-creator
+
*: <pre>yum install qt-creator</pre>
 
*; Gentoo
 
*; Gentoo
*: emerge dev-qt/qt-creator
+
*: <pre>emerge dev-qt/qt-creator</pre>
  
 
* luneos-components (This is our shared library of components used across various QML apps and can be found at https://github.com/webOS-ports/luneos-components)
 
* luneos-components (This is our shared library of components used across various QML apps and can be found at https://github.com/webOS-ports/luneos-components)
 +
*# <pre>git clone https://github.com/webOS-ports/luneos-components.git</pre>
 +
*# Open the luneos-components.pro file in Qt Creator.
 +
*# Under Projects (on the left side), go to the Build tab (should be the default) and change the following settings:
 +
*## Deactivate Shadow Build.
 +
*## For the qmake build steps, click on Details to expand the edit area.
 +
*## Set Additional Arguments to: <pre>CONFIG+=desktop</pre>
 +
*# Now, under the Run tab at the top:
 +
*## Set Executable to <pre>qmlscene</pre>
 +
*## Set Additional Arguments to <pre>-l modules -l test/imports examples/gallery/main.qml</pre>
 +
*## Under Run Environment, click Details to expand the settings.
 +
*## Add a setting called <pre>QT_QUICK_CONTROLS_STYLE</pre> and give it a value of <pre>LuneOS</pre>
 +
 
* Our QML apps being:
 
* Our QML apps being:
  

Revision as of 21:56, 1 January 2016

How to get started as a developer?

QML Apps

We have various apps and components written in QML. By using stub data you'll be able to use most of them on a desktop for agile development :)

What you will need:

  • Qt Creator (included with Qt which can be downloaded from https://www.qt.io/download/) or installed on Linux using one of these commands:
    Ubuntu/Debian
    sudo apt-get install qtcreator
    Fedora
    yum install qt-creator
    Gentoo
    emerge dev-qt/qt-creator
  • luneos-components (This is our shared library of components used across various QML apps and can be found at https://github.com/webOS-ports/luneos-components)
    1. git clone https://github.com/webOS-ports/luneos-components.git
    2. Open the luneos-components.pro file in Qt Creator.
    3. Under Projects (on the left side), go to the Build tab (should be the default) and change the following settings:
      1. Deactivate Shadow Build.
      2. For the qmake build steps, click on Details to expand the edit area.
      3. Set Additional Arguments to:
        CONFIG+=desktop
    4. Now, under the Run tab at the top:
      1. Set Executable to
        qmlscene
      2. Set Additional Arguments to
        -l modules -l test/imports examples/gallery/main.qml
      3. Under Run Environment, click Details to expand the settings.
      4. Add a setting called
        QT_QUICK_CONTROLS_STYLE
        and give it a value of
        LuneOS
  • Our QML apps being:
  • FirstUse
  • Browser
  • Phone
  • webos-keyboard