← Back to team overview

unity-dev team mailing list archive

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

 

On 12/04/2011 14:31, 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).

As Ugo said, if you want to use a separate build tree, you have to use "make install". This is what I do, installing in a dir inside $HOME.

Aurélien



References