[SailfishDevel] Fwd: Fwd: mb gives error "sb2: Error: Invalid target specified, aborting.": Part 3
christopher.lamb at thurweb.ch
christopher.lamb at thurweb.ch
Mon Apr 22 11:21:20 UTC 2013
David, Vesku
"Now this is not the end. It is not even the beginning of the end. But
it is, perhaps, the end of the beginning!"
Using a different user was just so obvious that it did not occur to me
:-). I kind of knew it had to be something ultra simple.
As you have correctly pointed out, until now I was doing everything in
the SDK with the user root. Thus sb2 was looking in the wrong place
because I was using the wrong instance of sb2 ......
I will try with the user MERDSK on the train on the way home this evening.
As I get the same errors when building on the command line, and from
QtCreator, I guess QtCreator is making the same mistake?
Grüsse
Chris
Zitat von "David Greaves" <david.greaves at jollamobile.com>:
> Hi Chris
>
>
> On 22/04/13 09:16, christopher.lamb at thurweb.ch wrote:
>> The problem seems to be that ether:
>> a) /root/.scratchbox2/SailfishOS-i486-x86/sb2.config is missing or
>> b) sb2 is looking for this file in the wrong place
>
> or ... :)
>
> Well found and you are actually 100% correct with a) however you should be
> building as the mersdk user. This is not terribly clear in the docs;
> in general
> root is only used for admin tasks like system software installation.
>
> The mersdk user is 'you'; we don't know in advance what your username will be
> and it could contain spaces etc so the (usually hidden) mersdk
> username is used
> inside the build engine. The mersdk home directory is mapped to your
> home directory.
>
> ie /home/mersdk/.scratchbox2/SailfishOS-i486-x86/sb2.config should
> be present in
> the build engine and should correspond to
> ~/.scratchbox2/SailfishOS-i486-x86/sb2.config in the host machine.
>
> ssh -p 2222 -i ~/.ssh/mer-qt-creator-rsa mersdk at localhost
>
> You *may* have problems with permissions in which case you may need
> to login as
> root and run make distclean in your project.
>
> David
>
>
More information about the Devel
mailing list