← Back to team overview

unity-dev team mailing list archive

Re: [Ayatana-dev] Debugging Unity-2d QML

 

On 04/12/2011 02:31 PM, Richard Dale wrote:
On Monday, April 11, 2011 04:57:44 PM Ugo Riboni wrote:
  >  On the other hand, if I try and run unity-2d-spread from qt creator it

doesn't start properly, and doesn't log anything in the Application
Output pane to explain why either. I had assumed this was because it
wasn't running as root.

I normally run all the unity-2d-* applications from qtcreator in debug
or non debug mode without trouble.
What do you mean that "it doesn't start properly" ? There's no process
launched or the process is there but you see no output ? Or something else
?
The problem was that I was building unity-2d outside of the source tree, in
unity-2d/build. The code for isRunningInstalled() and unity2dDirectory() is
assuming that the project has been built 'in situ' in the source tree. I
needed to copy the qmldir files, qml files and icons across to the build area.
It should be possible to add some statements to the CMakeLists.txt files to do
that automatically (or I'll just switch to building in the source tree).

Well, we support running installed, or running from a build inside the source directory itself.
We don't currently support running from separate build directories.

I suggest you pick one of the two choices above instead of changing the environment so much, as it makes it more difficult to figure out what problems are caused by your changes and what are actual bugs.

I would personally like running from separate build dirs, but this is at present not supported and not a priority, so I just run from the same source dir. If you do so, "bzr clean-tree" and "bzr clean-tree --ignored" are your friend in case you want to return to a pristine state.

Just my 2 cents.
--
Ugo



Follow ups

References