Editing Mer/Build/Application Building

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 25: Line 25:
==Configure your Home Project to Build against Mer==
==Configure your Home Project to Build against Mer==
-
 
When you upload some source the build-dependencies need to be resolved.  OBS does this by looking at a build target repository; if the dependency isn't there and that repository has its own build target repository then it looks there... and so on.
When you upload some source the build-dependencies need to be resolved.  OBS does this by looking at a build target repository; if the dependency isn't there and that repository has its own build target repository then it looks there... and so on.
Line 40: Line 39:
===Setting up Build Repositories : WWW===
===Setting up Build Repositories : WWW===
-
 
* Click on "Home project" in the left navigation bar in the OBS website
* Click on "Home project" in the left navigation bar in the OBS website
* On the right click on "Add Repository"
* On the right click on "Add Repository"
Line 52: Line 50:
===Setting up Build Repositories : CLI===
===Setting up Build Repositories : CLI===
-
 
To change the build target repositories (part of the project metadata):
To change the build target repositories (part of the project metadata):
   osc meta prj home:yourname -e
   osc meta prj home:yourname -e
The XML should look like this (make sure you use your own "name=" value) paying special attention to the <code><repository></code> tags:
The XML should look like this (make sure you use your own "name=" value) paying special attention to the <code><repository></code> tags:
-
<source lang="xml">
+
<pre>
<project name="home:yourname">
<project name="home:yourname">
   <title>yourname's Home Project</title>
   <title>yourname's Home Project</title>
Line 69: Line 66:
   </repository>
   </repository>
</project>
</project>
-
</source>
+
</pre>
Here is a full set of [[/XML_Build_Targets|XML Build targets]] for Ubuntu; they aren't needed unless you're doing something clever.
Here is a full set of [[/XML_Build_Targets|XML Build targets]] for Ubuntu; they aren't needed unless you're doing something clever.
==Creating Package==
==Creating Package==
-
 
Each package has its own directory in the project and, by default, is built against any build targets for the project.
Each package has its own directory in the project and, by default, is built against any build targets for the project.
===Creating Package : WWW===
===Creating Package : WWW===
-
 
* Click on "Home project" in the left navigation bar in the OBS website
* Click on "Home project" in the left navigation bar in the OBS website
* Click on "Add Package"
* Click on "Add Package"
Line 92: Line 87:
===Creating Package : CLI===
===Creating Package : CLI===
-
 
Run
Run
  osc meta pkg -e home:<username> <package>
  osc meta pkg -e home:<username> <package>
This will tell the OBS server about the package. It pops up an editor where you can edit the name/description in XML format and then save. The XML appears like this:
This will tell the OBS server about the package. It pops up an editor where you can edit the name/description in XML format and then save. The XML appears like this:
-
<source lang="xml">
+
<pre>
<package name="merpad">
<package name="merpad">
   <title>Title of New Package</title>
   <title>Title of New Package</title>
Line 124: Line 118:
   <url>PUT_UPSTREAM_URL_HERE</url>
   <url>PUT_UPSTREAM_URL_HERE</url>
</package>
</package>
-
</source>
+
</pre>
==Uploading Source==
==Uploading Source==
-
 
===Uploading Source : WWW===
===Uploading Source : WWW===
-
 
From your Home Project, you should see a "merpad" entry under Packages.
From your Home Project, you should see a "merpad" entry under Packages.
Select merpad to go to the Package page (you may already be there if you just created it).
Select merpad to go to the Package page (you may already be there if you just created it).
Line 172: Line 164:
===Following the build log : WWW ===
===Following the build log : WWW ===
-
 
In the package page under the build target is a [Build Log] entry.
In the package page under the build target is a [Build Log] entry.
This takes you to a page showing the build log. There are tickboxes to refresh automatically and to autoscroll.
This takes you to a page showing the build log. There are tickboxes to refresh automatically and to autoscroll.
Line 187: Line 178:
==Downloading the Binaries==
==Downloading the Binaries==
-
 
Once OBS has run you can download the binaries and install them by hand.
Once OBS has run you can download the binaries and install them by hand.
Line 209: Line 199:
Then running the application manager should show your MerPad.
Then running the application manager should show your MerPad.
-
==Local Builds==
+
=Local Builds=
OBS lets you run a local build on your desktop.
OBS lets you run a local build on your desktop.
Line 241: Line 231:
and once there, run arm commands inside the chroot.
and once there, run arm commands inside the chroot.
-
=== Co-existing with Scratchbox ===
+
 
 +
== Co-existing with Scratchbox ==
If you use the OBS local build facility and the scratchbox-1 local builder then you need to know how to teach the two emulators how to co-exist.
If you use the OBS local build facility and the scratchbox-1 local builder then you need to know how to teach the two emulators how to co-exist.

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: