We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-02-27 06:10:17 +0200

SailfishOS SDK installation on Windows 8/8.1 caveats

Hi,

I've been struggling recently with SDK installation on Windows 8.1 More precisely, not with SDK installation as such, but with installation guide-through, example Sailfish project "My First App" compilation: it always ended with "Project is outside shared home [folder1] and shared src [folder2]" error. Even if project was either in shared home or in shared srv - or even both!

So that was a goddamn puzzle - no matter what I changed in my SDK installation - folders, paths, names, envvars, projects, Qt parameters... - or even in VirtualBox configuration - shared folders, VM locations, various settings... - it always ended up with the same annoying "Project is outside" issue.

Comparing with another laptop I had which was running Windows 7, I finally found the discrepancy that caused all this mess: Windows logon method.

And Windows logon method is a consequence of your Windows account type. I don't mean here 'Administrator' account or 'User' account.

I mean: LOCAL account vs. MICROSOFT account

On Windows 8/8.1, you can have create a local user - I would call that legacy method, as it will behave the same as if it were created on Windows 7, Vista... - or a Microsoft account, that will be tied to your Live/MSN/Outlook/Hotmail account - for better and for worse (like in marriage - heads up : in case of Qt IDE/Sailfish SDK, that will be for worse).

So, on Windows 8/8.1, when using a local account, Windows logon method will be... regular, the old good one we're used to. You can verify that by checking the value of LOGONSERVER envvar - once logged in, of course. If you're using a local account, it will be set to "\%COMPUTERNAME%" (w/o quotes).

BUT, if using a Microsoft account - tada! - Windows logon method is changed to a brand new, more performant & efficient one - nah, I'm kidding - well, it's changed anyway to "\MicrosoftAccount". Again, you can verify this by checking value of LOGONSERVER envvar.

In this case, and I don't know exactly why but this is the way it is, Qt IDE/Sailfish SDK couple goes berserk and is unable to properly locate its own home, hence "Project is outside" error thrown into your face.

Switch to local account - that will magically compile & run without any trouble!

To be thorough, since I had to compare a Windows 8.1 environment with a Microsoft account to a Windows 7 installation with a local account, anyone - I would have been the first - could have argued that Windows logon method was not the sole discrepancy one could spot.

So I made similar tests on a VM running Windows 10 Technical Preview. Results remain the same.

Conclusion: DO NOT USE A MICROSOFT ACCOUNT WHEN INSTALLING & USING SAILSFISHOS SDK (and also VirtualBox dependancy, obviously). That will help you save an awful amount of time - and sanity.

I do think this finding is worht a BIG, FAT, RED warning in SailfishOS SDK installation guide-through, and more specifically on this page https://sailfishos.org/develop/sdk-overview/develop-installation-article/, in Windows paragraph.

Thanks,

SailfishOS SDK installation on Windows 8/8.1 caveats

Hi,

I've been struggling recently with SDK installation on Windows 8.1 More precisely, not with SDK installation as such, but with installation guide-through, example Sailfish project "My First App" compilation: it always ended with "Project is outside shared home [folder1] and shared src [folder2]" error. Even if project was either in shared home or in shared srv - or even both!

So that was a goddamn puzzle - no matter what I changed in my SDK installation - folders, paths, names, envvars, projects, Qt parameters... - or even in VirtualBox configuration - shared folders, VM locations, various settings... - it always ended up with the same annoying "Project is outside" issue.

Comparing with another laptop I had which was running Windows 7, I finally found the discrepancy that caused all this mess: Windows logon method.

And Windows logon method is a consequence of your Windows account type. I don't mean here 'Administrator' account or 'User' account.

I mean: LOCAL account vs. MICROSOFT account

On Windows 8/8.1, you can have create a local user - I would call that legacy method, as it will behave the same as if it were created on Windows 7, Vista... - or a Microsoft account, that will be tied to your Live/MSN/Outlook/Hotmail account - for better and for worse (like in marriage - heads up : in case of Qt IDE/Sailfish SDK, that will be for worse).

So, on Windows 8/8.1, when using a local account, Windows logon method will be... regular, the old good one we're used to. You can verify that by checking the value of LOGONSERVER envvar - once logged in, of course. If you're using a local account, it will be set to "\%COMPUTERNAME%" "\\%COMPUTERNAME%" (w/o quotes).

BUT, if using a Microsoft account - tada! - Windows logon method is changed to a brand new, more performant & efficient one - nah, I'm kidding - well, it's changed anyway to "\MicrosoftAccount". Again, you can verify this by checking value of LOGONSERVER envvar.

In this case, and I don't know exactly why but this is the way it is, Qt IDE/Sailfish SDK couple goes berserk and is unable to properly locate its own home, hence "Project is outside" error thrown into your face.

Switch to local account - that will magically compile & run without any trouble!

To be thorough, since I had to compare a Windows 8.1 environment with a Microsoft account to a Windows 7 installation with a local account, anyone - I would have been the first - could have argued that Windows logon method was not the sole discrepancy one could spot.

So I made similar tests on a VM running Windows 10 Technical Preview. Results remain the same.

Conclusion: DO NOT USE A MICROSOFT ACCOUNT WHEN INSTALLING & USING SAILSFISHOS SDK (and also VirtualBox dependancy, obviously). That will help you save an awful amount of time - and sanity.

I do think this finding is worht a BIG, FAT, RED warning in SailfishOS SDK installation guide-through, and more specifically on this page https://sailfishos.org/develop/sdk-overview/develop-installation-article/, in Windows paragraph.

Thanks,

SailfishOS SDK installation on Windows 8/8.1 caveats

Hi,

I've been struggling recently with SDK installation on Windows 8.1 More precisely, not with SDK installation as such, but with installation guide-through, example Sailfish project "My First App" compilation: it always ended with "Project is outside shared home [folder1] and shared src [folder2]" error. Even if project was either in shared home or in shared srv - or even both!

So that was a goddamn puzzle - no matter what I changed in my SDK installation - folders, paths, names, envvars, projects, Qt parameters... - or even in VirtualBox configuration - shared folders, VM locations, various settings... - it always ended up with the same annoying "Project is outside" issue.

Comparing with another laptop I had which was running Windows 7, I finally found the discrepancy that caused all this mess: Windows logon method.

And Windows logon method is a consequence of your Windows account type. I don't mean here 'Administrator' account or 'User' account.

I mean: LOCAL account vs. MICROSOFT account

On Windows 8/8.1, you can have create a local user - I would call that legacy method, as it will behave the same as if it were created on Windows 7, Vista... - or a Microsoft account, that will be tied to your Live/MSN/Outlook/Hotmail account - for better and for worse (like in marriage - heads up : in case of Qt IDE/Sailfish SDK, that will be for worse).

So, on Windows 8/8.1, when using a local account, Windows logon method will be... regular, the old good one we're used to. You can verify that by checking the value of LOGONSERVER envvar - once logged in, of course. If you're using a local account, it will be set to "\\%COMPUTERNAME%" (w/o quotes).

BUT, if using a Microsoft account - tada! - Windows logon method is changed to a brand new, more performant & efficient one - nah, I'm kidding - well, it's changed anyway to "\MicrosoftAccount". Again, you can verify this by checking value of LOGONSERVER envvar.

In this case, and I don't know exactly why but this is the way it is, Qt IDE/Sailfish SDK couple goes berserk and is unable to properly locate its own home, hence "Project is outside" error thrown into your face.

Switch to local account - that will magically compile & run without any trouble!

To be thorough, since I had to compare a Windows 8.1 environment with a Microsoft account to a Windows 7 installation with a local account, anyone - I would have been the first - could have argued that Windows logon method was not the sole discrepancy one could spot.

So I made similar tests on a VM running Windows 10 Technical Preview. Results remain the same.

Conclusion: DO NOT USE A MICROSOFT ACCOUNT WHEN INSTALLING & USING SAILSFISHOS SDK (and also VirtualBox dependancy, obviously). That will help you save an awful amount of time - and sanity.

I do think this finding is worht a BIG, FAT, RED warning in SailfishOS SDK installation guide-through, and more specifically on this page https://sailfishos.org/develop/sdk-overview/develop-installation-article/, in Windows paragraph.

Thanks,

SailfishOS SDK installation on Windows 8/8.1 caveats

Hi,

I've been struggling recently with SDK installation on Windows 8.1 More precisely, not with SDK installation as such, but with installation guide-through, example Sailfish project "My First App" compilation: it always ended with "Project is outside shared home [folder1] and shared src [folder2]" error. Even if project was either in shared home or in shared srv - or even both!

So that was a goddamn puzzle - no matter what I changed in my SDK installation - folders, paths, names, envvars, projects, Qt parameters... - or even in VirtualBox configuration - shared folders, VM locations, various settings... - it always ended up with the same annoying "Project is outside" issue.

Comparing with another laptop I had which was running Windows 7, I finally found the discrepancy that caused all this mess: Windows logon method.

And Windows logon method is a consequence of your Windows account type. I don't mean here 'Administrator' account or 'User' account.

I mean: LOCAL account vs. MICROSOFT account

On Windows 8/8.1, you can create a local user - I would call that legacy method, as it will behave the same as if it were created on Windows 7, Vista... - or a Microsoft account, that will be tied to your Live/MSN/Outlook/Hotmail account - for better and for worse (like in marriage - heads up : in case of Qt IDE/Sailfish SDK, that will be for worse).

So, on Windows 8/8.1, when using a local account, Windows logon method will be... regular, the old good one we're used to. You can verify that by checking the value of LOGONSERVER envvar - once logged in, of course. If you're using a local account, it will be set to "\\%COMPUTERNAME%" (w/o quotes).

BUT, if using a Microsoft account - tada! - Windows logon method is changed to a brand new, more performant & efficient one - nah, I'm kidding - well, it's changed anyway to "\MicrosoftAccount". "\\MicrosoftAccount". Again, you can verify this by checking value of LOGONSERVER envvar.

In this case, and I don't know exactly why but this is the way it is, Qt IDE/Sailfish SDK couple goes berserk and is unable to properly locate its own home, hence "Project is outside" error thrown into your face.

Switch to local account - that will magically compile & run without any trouble!

To be thorough, since I had to compare a Windows 8.1 environment with a Microsoft account to a Windows 7 installation with a local account, anyone - I would have been the first - could have argued that Windows logon method was not the sole discrepancy one could spot.

So I made similar tests on a VM running Windows 10 Technical Preview. Results remain the same.

Conclusion: DO NOT USE A MICROSOFT ACCOUNT WHEN INSTALLING & USING SAILSFISHOS SDK (and also VirtualBox dependancy, obviously). That will help you save an awful amount of time - and sanity.

I do think this finding is worht a BIG, FAT, RED warning in SailfishOS SDK installation guide-through, and more specifically on this page https://sailfishos.org/develop/sdk-overview/develop-installation-article/, in Windows paragraph.

Thanks,

SailfishOS SDK installation on Windows 8/8.1 caveats

Hi,

I've been struggling recently with SDK installation on Windows 8.1 More precisely, not with SDK installation as such, but with installation guide-through, example Sailfish project "My First App" compilation: it always ended with "Project is outside shared home [folder1] and shared src [folder2]" error. Even if project was either in shared home or in shared srv - or even both!

So that was a goddamn puzzle - no matter what I changed in my SDK installation - folders, paths, names, envvars, projects, Qt parameters... - or even in VirtualBox configuration - shared folders, VM locations, various settings... - it always ended up with the same annoying "Project is outside" issue.

Comparing with another laptop I had which was running Windows 7, I finally found the discrepancy that caused all this mess: Windows logon method.

And Windows logon method is a consequence of your Windows account type. I don't mean here 'Administrator' account or 'User' account.

I mean: LOCAL account vs. MICROSOFT account

On Windows 8/8.1, you can create a local user - I would call that legacy method, as it will behave the same as if it were created on Windows 7, Vista... - or a Microsoft account, that will be tied to your Live/MSN/Outlook/Hotmail account - for better and for worse (like in marriage - heads up : in case of Qt IDE/Sailfish SDK, that will be for worse).

So, on Windows 8/8.1, when using a local account, Windows logon method will be... regular, the old good one we're used to. You can verify that by checking the value of LOGONSERVER envvar - once logged in, of course. If you're using a local account, it will be set to "\\%COMPUTERNAME%" (w/o quotes).

BUT, if using a Microsoft account - tada! - Windows logon method is changed to a brand new, more performant & efficient one - nah, I'm kidding - well, it's changed anyway to "\\MicrosoftAccount". Again, you can verify this by checking value of LOGONSERVER envvar.

In this case, and I don't know exactly why but this is the way it is, Qt IDE/Sailfish SDK couple goes berserk and is unable to properly locate its own home, hence "Project is outside" error thrown into your face.

Switch to local account - that will magically compile & run without any trouble!

To be thorough, since I had to compare a Windows 8.1 environment with a Microsoft account to a Windows 7 installation with a local account, anyone - I would have been the first - could have argued that Windows logon method was not the sole discrepancy one could spot.

So I made similar tests on a VM running Windows 10 Technical Preview. Results remain the same.

Conclusion: DO NOT USE A MICROSOFT ACCOUNT WHEN INSTALLING & USING SAILSFISHOS SDK (and also VirtualBox dependancy, obviously). That will help you save an awful amount of time - and sanity.

I do think this finding is worht worth a BIG, FAT, RED warning in SailfishOS SDK installation guide-through, and more specifically on this page https://sailfishos.org/develop/sdk-overview/develop-installation-article/, in Windows paragraph.

Thanks,